All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 
        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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 getParserForType() { return PARSER; } public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.BeginRequest) 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(); /** *
     * single_db specifies if the transaction should be restricted
     * to a single database.
     * 
* * optional bool single_db = 2; */ boolean getSingleDb(); } /** *
   * BeginRequest is the payload to Begin.
   * 
* * Protobuf type {@code vtgate.BeginRequest} */ public static final class BeginRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.BeginRequest) BeginRequestOrBuilder { // Use BeginRequest.newBuilder() to construct. private BeginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginRequest() { singleDb_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginRequest( 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 16: { singleDb_ = 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.BeginRequest.class, com.youtube.vitess.proto.Vtgate.BeginRequest.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 SINGLE_DB_FIELD_NUMBER = 2; private boolean singleDb_; /** *
     * single_db specifies if the transaction should be restricted
     * to a single database.
     * 
* * optional bool single_db = 2; */ public boolean getSingleDb() { return singleDb_; } 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 (singleDb_ != false) { output.writeBool(2, singleDb_); } } 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 (singleDb_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, singleDb_); } 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.BeginRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.BeginRequest other = (com.youtube.vitess.proto.Vtgate.BeginRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && (getSingleDb() == other.getSingleDb()); 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(); } hash = (37 * hash) + SINGLE_DB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSingleDb()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.BeginRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.BeginRequest 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.BeginRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.BeginRequest 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.BeginRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.BeginRequest 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.BeginRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.BeginRequest 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.BeginRequest 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.BeginRequest 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.BeginRequest 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; } /** *
     * BeginRequest is the payload to Begin.
     * 
* * Protobuf type {@code vtgate.BeginRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.BeginRequest) com.youtube.vitess.proto.Vtgate.BeginRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.BeginRequest.class, com.youtube.vitess.proto.Vtgate.BeginRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.BeginRequest.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; } singleDb_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.BeginRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.BeginRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.BeginRequest build() { com.youtube.vitess.proto.Vtgate.BeginRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.BeginRequest buildPartial() { com.youtube.vitess.proto.Vtgate.BeginRequest result = new com.youtube.vitess.proto.Vtgate.BeginRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.singleDb_ = singleDb_; 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.BeginRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.BeginRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.BeginRequest other) { if (other == com.youtube.vitess.proto.Vtgate.BeginRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (other.getSingleDb() != false) { setSingleDb(other.getSingleDb()); } 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.BeginRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.BeginRequest) 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 boolean singleDb_ ; /** *
       * single_db specifies if the transaction should be restricted
       * to a single database.
       * 
* * optional bool single_db = 2; */ public boolean getSingleDb() { return singleDb_; } /** *
       * single_db specifies if the transaction should be restricted
       * to a single database.
       * 
* * optional bool single_db = 2; */ 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 = 2; */ public Builder clearSingleDb() { singleDb_ = 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.BeginRequest) } // @@protoc_insertion_point(class_scope:vtgate.BeginRequest) private static final com.youtube.vitess.proto.Vtgate.BeginRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.BeginRequest(); } public static com.youtube.vitess.proto.Vtgate.BeginRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginRequest(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.BeginRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.BeginResponse) com.google.protobuf.MessageOrBuilder { /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ boolean hasSession(); /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ com.youtube.vitess.proto.Vtgate.Session getSession(); /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder(); } /** *
   * BeginResponse is the returned value from Begin.
   * 
* * Protobuf type {@code vtgate.BeginResponse} */ public static final class BeginResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.BeginResponse) BeginResponseOrBuilder { // Use BeginResponse.newBuilder() to construct. private BeginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginResponse( 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.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; } } } } 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_BeginResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.BeginResponse.class, com.youtube.vitess.proto.Vtgate.BeginResponse.Builder.class); } public static final int SESSION_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtgate.Session session_; /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ public boolean hasSession() { return session_ != null; } /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ public com.youtube.vitess.proto.Vtgate.Session getSession() { return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_; } /** *
     * session is the initial session information to use for subsequent queries.
     * 
* * optional .vtgate.Session session = 1; */ public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() { return getSession(); } 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 (session_ != null) { output.writeMessage(1, getSession()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (session_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSession()); } 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.BeginResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.BeginResponse other = (com.youtube.vitess.proto.Vtgate.BeginResponse) obj; boolean result = true; result = result && (hasSession() == other.hasSession()); if (hasSession()) { result = result && getSession() .equals(other.getSession()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSession()) { hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.BeginResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.BeginResponse 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.BeginResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.BeginResponse 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.BeginResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.BeginResponse 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.BeginResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.BeginResponse 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.BeginResponse 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.BeginResponse 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.BeginResponse 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; } /** *
     * BeginResponse is the returned value from Begin.
     * 
* * Protobuf type {@code vtgate.BeginResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.BeginResponse) com.youtube.vitess.proto.Vtgate.BeginResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.BeginResponse.class, com.youtube.vitess.proto.Vtgate.BeginResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.BeginResponse.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 (sessionBuilder_ == null) { session_ = null; } else { session_ = null; sessionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BeginResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.BeginResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.BeginResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.BeginResponse build() { com.youtube.vitess.proto.Vtgate.BeginResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.BeginResponse buildPartial() { com.youtube.vitess.proto.Vtgate.BeginResponse result = new com.youtube.vitess.proto.Vtgate.BeginResponse(this); if (sessionBuilder_ == null) { result.session_ = session_; } else { result.session_ = sessionBuilder_.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.BeginResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.BeginResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.BeginResponse other) { if (other == com.youtube.vitess.proto.Vtgate.BeginResponse.getDefaultInstance()) return this; if (other.hasSession()) { mergeSession(other.getSession()); } 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.BeginResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.BeginResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ public boolean hasSession() { return sessionBuilder_ != null || session_ != null; } /** *
       * session is the initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ public Builder clearSession() { if (sessionBuilder_ == null) { session_ = null; onChanged(); } else { session_ = null; sessionBuilder_ = null; } return this; } /** *
       * session is the initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() { onChanged(); return getSessionFieldBuilder().getBuilder(); } /** *
       * session is the initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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 initial session information to use for subsequent queries.
       * 
* * optional .vtgate.Session session = 1; */ 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_; } 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.BeginResponse) } // @@protoc_insertion_point(class_scope:vtgate.BeginResponse) private static final com.youtube.vitess.proto.Vtgate.BeginResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.BeginResponse(); } public static com.youtube.vitess.proto.Vtgate.BeginResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginResponse(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.BeginResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.CommitRequest) 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 to commit.
     * 
* * optional .vtgate.Session session = 2; */ boolean hasSession(); /** *
     * session carries the current transaction data to commit.
     * 
* * optional .vtgate.Session session = 2; */ com.youtube.vitess.proto.Vtgate.Session getSession(); /** *
     * session carries the current transaction data to commit.
     * 
* * optional .vtgate.Session session = 2; */ com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder(); /** *
     * atomic specifies if the commit should go through the
     * 2PC workflow to ensure atomicity.
     * 
* * optional bool atomic = 3; */ boolean getAtomic(); } /** *
   * CommitRequest is the payload to Commit.
   * 
* * Protobuf type {@code vtgate.CommitRequest} */ public static final class CommitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.CommitRequest) CommitRequestOrBuilder { // Use CommitRequest.newBuilder() to construct. private CommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitRequest() { atomic_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CommitRequest( 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 24: { atomic_ = 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.CommitRequest.class, com.youtube.vitess.proto.Vtgate.CommitRequest.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 to commit.
     * 
* * optional .vtgate.Session session = 2; */ public boolean hasSession() { return session_ != null; } /** *
     * session carries the current transaction data to commit.
     * 
* * 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 to commit.
     * 
* * optional .vtgate.Session session = 2; */ public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() { return getSession(); } public static final int ATOMIC_FIELD_NUMBER = 3; private boolean atomic_; /** *
     * atomic specifies if the commit should go through the
     * 2PC workflow to ensure atomicity.
     * 
* * optional bool atomic = 3; */ public boolean getAtomic() { return atomic_; } 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 (atomic_ != false) { output.writeBool(3, atomic_); } } 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 (atomic_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, atomic_); } 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.CommitRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.CommitRequest other = (com.youtube.vitess.proto.Vtgate.CommitRequest) 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 && (getAtomic() == other.getAtomic()); 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(); } hash = (37 * hash) + ATOMIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAtomic()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.CommitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.CommitRequest 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.CommitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.CommitRequest 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.CommitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.CommitRequest 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.CommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.CommitRequest 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.CommitRequest 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.CommitRequest 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.CommitRequest 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; } /** *
     * CommitRequest is the payload to Commit.
     * 
* * Protobuf type {@code vtgate.CommitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.CommitRequest) com.youtube.vitess.proto.Vtgate.CommitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.CommitRequest.class, com.youtube.vitess.proto.Vtgate.CommitRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.CommitRequest.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; } atomic_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.CommitRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.CommitRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.CommitRequest build() { com.youtube.vitess.proto.Vtgate.CommitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.CommitRequest buildPartial() { com.youtube.vitess.proto.Vtgate.CommitRequest result = new com.youtube.vitess.proto.Vtgate.CommitRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } if (sessionBuilder_ == null) { result.session_ = session_; } else { result.session_ = sessionBuilder_.build(); } result.atomic_ = atomic_; 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.CommitRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.CommitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.CommitRequest other) { if (other == com.youtube.vitess.proto.Vtgate.CommitRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (other.hasSession()) { mergeSession(other.getSession()); } if (other.getAtomic() != false) { setAtomic(other.getAtomic()); } 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.CommitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.CommitRequest) 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 to commit.
       * 
* * optional .vtgate.Session session = 2; */ public boolean hasSession() { return sessionBuilder_ != null || session_ != null; } /** *
       * session carries the current transaction data to commit.
       * 
* * 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 to commit.
       * 
* * 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 to commit.
       * 
* * 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 to commit.
       * 
* * 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 to commit.
       * 
* * 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 to commit.
       * 
* * optional .vtgate.Session session = 2; */ public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() { onChanged(); return getSessionFieldBuilder().getBuilder(); } /** *
       * session carries the current transaction data to commit.
       * 
* * 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 to commit.
       * 
* * 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 boolean atomic_ ; /** *
       * atomic specifies if the commit should go through the
       * 2PC workflow to ensure atomicity.
       * 
* * optional bool atomic = 3; */ public boolean getAtomic() { return atomic_; } /** *
       * atomic specifies if the commit should go through the
       * 2PC workflow to ensure atomicity.
       * 
* * optional bool atomic = 3; */ public Builder setAtomic(boolean value) { atomic_ = value; onChanged(); return this; } /** *
       * atomic specifies if the commit should go through the
       * 2PC workflow to ensure atomicity.
       * 
* * optional bool atomic = 3; */ public Builder clearAtomic() { atomic_ = 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.CommitRequest) } // @@protoc_insertion_point(class_scope:vtgate.CommitRequest) private static final com.youtube.vitess.proto.Vtgate.CommitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.CommitRequest(); } public static com.youtube.vitess.proto.Vtgate.CommitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitRequest(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.CommitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.CommitResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * CommitResponse is the returned value from Commit.
   * 
* * Protobuf type {@code vtgate.CommitResponse} */ public static final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.CommitResponse) CommitResponseOrBuilder { // Use CommitResponse.newBuilder() to construct. private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CommitResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; } } } } 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_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.CommitResponse.class, com.youtube.vitess.proto.Vtgate.CommitResponse.Builder.class); } 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 { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.CommitResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.CommitResponse other = (com.youtube.vitess.proto.Vtgate.CommitResponse) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.CommitResponse 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.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.CommitResponse 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.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.CommitResponse 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.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.CommitResponse 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.CommitResponse 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.CommitResponse 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.CommitResponse 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; } /** *
     * CommitResponse is the returned value from Commit.
     * 
* * Protobuf type {@code vtgate.CommitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.CommitResponse) com.youtube.vitess.proto.Vtgate.CommitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.CommitResponse.class, com.youtube.vitess.proto.Vtgate.CommitResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.CommitResponse.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(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_CommitResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.CommitResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.CommitResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.CommitResponse build() { com.youtube.vitess.proto.Vtgate.CommitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.CommitResponse buildPartial() { com.youtube.vitess.proto.Vtgate.CommitResponse result = new com.youtube.vitess.proto.Vtgate.CommitResponse(this); 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.CommitResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.CommitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.CommitResponse other) { if (other == com.youtube.vitess.proto.Vtgate.CommitResponse.getDefaultInstance()) return this; 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.CommitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.CommitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.CommitResponse) } // @@protoc_insertion_point(class_scope:vtgate.CommitResponse) private static final com.youtube.vitess.proto.Vtgate.CommitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.CommitResponse(); } public static com.youtube.vitess.proto.Vtgate.CommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitResponse(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.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.RollbackRequest) 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 to rollback.
     * 
* * optional .vtgate.Session session = 2; */ boolean hasSession(); /** *
     * session carries the current transaction data to rollback.
     * 
* * optional .vtgate.Session session = 2; */ com.youtube.vitess.proto.Vtgate.Session getSession(); /** *
     * session carries the current transaction data to rollback.
     * 
* * optional .vtgate.Session session = 2; */ com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder(); } /** *
   * RollbackRequest is the payload to Rollback.
   * 
* * Protobuf type {@code vtgate.RollbackRequest} */ public static final class RollbackRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.RollbackRequest) RollbackRequestOrBuilder { // Use RollbackRequest.newBuilder() to construct. private RollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RollbackRequest( 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; } } } } 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_RollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.RollbackRequest.class, com.youtube.vitess.proto.Vtgate.RollbackRequest.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 to rollback.
     * 
* * optional .vtgate.Session session = 2; */ public boolean hasSession() { return session_ != null; } /** *
     * session carries the current transaction data to rollback.
     * 
* * 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 to rollback.
     * 
* * optional .vtgate.Session session = 2; */ public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() { return getSession(); } 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()); } } 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()); } 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.RollbackRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.RollbackRequest other = (com.youtube.vitess.proto.Vtgate.RollbackRequest) 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()); } 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.RollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.RollbackRequest 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.RollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.RollbackRequest 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.RollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.RollbackRequest 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.RollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.RollbackRequest 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.RollbackRequest 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.RollbackRequest 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.RollbackRequest 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; } /** *
     * RollbackRequest is the payload to Rollback.
     * 
* * Protobuf type {@code vtgate.RollbackRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.RollbackRequest) com.youtube.vitess.proto.Vtgate.RollbackRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.RollbackRequest.class, com.youtube.vitess.proto.Vtgate.RollbackRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.RollbackRequest.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; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.RollbackRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.RollbackRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.RollbackRequest build() { com.youtube.vitess.proto.Vtgate.RollbackRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.RollbackRequest buildPartial() { com.youtube.vitess.proto.Vtgate.RollbackRequest result = new com.youtube.vitess.proto.Vtgate.RollbackRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } if (sessionBuilder_ == null) { result.session_ = session_; } else { result.session_ = sessionBuilder_.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.RollbackRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.RollbackRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.RollbackRequest other) { if (other == com.youtube.vitess.proto.Vtgate.RollbackRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (other.hasSession()) { mergeSession(other.getSession()); } 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.RollbackRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.RollbackRequest) 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 to rollback.
       * 
* * optional .vtgate.Session session = 2; */ public boolean hasSession() { return sessionBuilder_ != null || session_ != null; } /** *
       * session carries the current transaction data to rollback.
       * 
* * 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 to rollback.
       * 
* * 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 to rollback.
       * 
* * 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 to rollback.
       * 
* * 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 to rollback.
       * 
* * 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 to rollback.
       * 
* * optional .vtgate.Session session = 2; */ public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() { onChanged(); return getSessionFieldBuilder().getBuilder(); } /** *
       * session carries the current transaction data to rollback.
       * 
* * 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 to rollback.
       * 
* * 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_; } 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.RollbackRequest) } // @@protoc_insertion_point(class_scope:vtgate.RollbackRequest) private static final com.youtube.vitess.proto.Vtgate.RollbackRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.RollbackRequest(); } public static com.youtube.vitess.proto.Vtgate.RollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackRequest(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.RollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.RollbackResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * RollbackResponse is the returned value from Rollback.
   * 
* * Protobuf type {@code vtgate.RollbackResponse} */ public static final class RollbackResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.RollbackResponse) RollbackResponseOrBuilder { // Use RollbackResponse.newBuilder() to construct. private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RollbackResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; } } } } 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_RollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.RollbackResponse.class, com.youtube.vitess.proto.Vtgate.RollbackResponse.Builder.class); } 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 { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.RollbackResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.RollbackResponse other = (com.youtube.vitess.proto.Vtgate.RollbackResponse) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.RollbackResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.RollbackResponse 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.RollbackResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.RollbackResponse 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.RollbackResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.RollbackResponse 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.RollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.RollbackResponse 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.RollbackResponse 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.RollbackResponse 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.RollbackResponse 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; } /** *
     * RollbackResponse is the returned value from Rollback.
     * 
* * Protobuf type {@code vtgate.RollbackResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.RollbackResponse) com.youtube.vitess.proto.Vtgate.RollbackResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.RollbackResponse.class, com.youtube.vitess.proto.Vtgate.RollbackResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.RollbackResponse.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(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_RollbackResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.RollbackResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.RollbackResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.RollbackResponse build() { com.youtube.vitess.proto.Vtgate.RollbackResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.RollbackResponse buildPartial() { com.youtube.vitess.proto.Vtgate.RollbackResponse result = new com.youtube.vitess.proto.Vtgate.RollbackResponse(this); 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.RollbackResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.RollbackResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.RollbackResponse other) { if (other == com.youtube.vitess.proto.Vtgate.RollbackResponse.getDefaultInstance()) return this; 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.RollbackResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.RollbackResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.RollbackResponse) } // @@protoc_insertion_point(class_scope:vtgate.RollbackResponse) private static final com.youtube.vitess.proto.Vtgate.RollbackResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.RollbackResponse(); } public static com.youtube.vitess.proto.Vtgate.RollbackResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackResponse(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.RollbackResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResolveTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.ResolveTransactionRequest) 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(); /** *
     * dtid is the dtid of the transaction to be resolved.
     * 
* * optional string dtid = 2; */ java.lang.String getDtid(); /** *
     * dtid is the dtid of the transaction to be resolved.
     * 
* * optional string dtid = 2; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * ResolveTransactionRequest is the payload to ResolveTransaction.
   * 
* * Protobuf type {@code vtgate.ResolveTransactionRequest} */ public static final class ResolveTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.ResolveTransactionRequest) ResolveTransactionRequestOrBuilder { // Use ResolveTransactionRequest.newBuilder() to construct. private ResolveTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResolveTransactionRequest() { dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ResolveTransactionRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); dtid_ = 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.class, com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.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 DTID_FIELD_NUMBER = 2; private volatile java.lang.Object dtid_; /** *
     * dtid is the dtid of the transaction to be resolved.
     * 
* * optional string dtid = 2; */ public java.lang.String getDtid() { java.lang.Object ref = dtid_; 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(); dtid_ = s; return s; } } /** *
     * dtid is the dtid of the transaction to be resolved.
     * 
* * optional string dtid = 2; */ public com.google.protobuf.ByteString getDtidBytes() { java.lang.Object ref = dtid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dtid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dtid_); } } 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 (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dtid_); } 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.ResolveTransactionRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest other = (com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && getDtid() .equals(other.getDtid()); 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(); } hash = (37 * hash) + DTID_FIELD_NUMBER; hash = (53 * hash) + getDtid().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest 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.ResolveTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest 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.ResolveTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest 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.ResolveTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest 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.ResolveTransactionRequest 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.ResolveTransactionRequest 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.ResolveTransactionRequest 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; } /** *
     * ResolveTransactionRequest is the payload to ResolveTransaction.
     * 
* * Protobuf type {@code vtgate.ResolveTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.ResolveTransactionRequest) com.youtube.vitess.proto.Vtgate.ResolveTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.class, com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.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; } dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest build() { com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest buildPartial() { com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest result = new com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.dtid_ = dtid_; 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.ResolveTransactionRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest other) { if (other == com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (!other.getDtid().isEmpty()) { dtid_ = other.dtid_; 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.ResolveTransactionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest) 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 java.lang.Object dtid_ = ""; /** *
       * dtid is the dtid of the transaction to be resolved.
       * 
* * optional string dtid = 2; */ public java.lang.String getDtid() { java.lang.Object ref = dtid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dtid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * dtid is the dtid of the transaction to be resolved.
       * 
* * optional string dtid = 2; */ public com.google.protobuf.ByteString getDtidBytes() { java.lang.Object ref = dtid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dtid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * dtid is the dtid of the transaction to be resolved.
       * 
* * optional string dtid = 2; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** *
       * dtid is the dtid of the transaction to be resolved.
       * 
* * optional string dtid = 2; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** *
       * dtid is the dtid of the transaction to be resolved.
       * 
* * optional string dtid = 2; */ public Builder setDtidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dtid_ = 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.ResolveTransactionRequest) } // @@protoc_insertion_point(class_scope:vtgate.ResolveTransactionRequest) private static final com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest(); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResolveTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResolveTransactionRequest(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.ResolveTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.MessageStreamRequest) 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(); /** *
     * 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(); /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ java.lang.String getShard(); /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ com.google.protobuf.ByteString getShardBytes(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ boolean hasKeyRange(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ com.youtube.vitess.proto.Topodata.KeyRange getKeyRange(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder(); /** *
     * name is the message table name.
     * 
* * optional string name = 5; */ java.lang.String getName(); /** *
     * name is the message table name.
     * 
* * optional string name = 5; */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * MessageStreamRequest is the request payload for MessageStream.
   * 
* * Protobuf type {@code vtgate.MessageStreamRequest} */ public static final class MessageStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.MessageStreamRequest) MessageStreamRequestOrBuilder { // Use MessageStreamRequest.newBuilder() to construct. private MessageStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageStreamRequest() { keyspace_ = ""; shard_ = ""; name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MessageStreamRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); shard_ = s; break; } case 34: { com.youtube.vitess.proto.Topodata.KeyRange.Builder subBuilder = null; if (keyRange_ != null) { subBuilder = keyRange_.toBuilder(); } keyRange_ = input.readMessage(com.youtube.vitess.proto.Topodata.KeyRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keyRange_); keyRange_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); name_ = 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.MessageStreamRequest.class, com.youtube.vitess.proto.Vtgate.MessageStreamRequest.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 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 SHARD_FIELD_NUMBER = 3; private volatile java.lang.Object shard_; /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ public java.lang.String getShard() { java.lang.Object ref = shard_; 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(); shard_ = s; return s; } } /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ public com.google.protobuf.ByteString getShardBytes() { java.lang.Object ref = shard_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shard_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_RANGE_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Topodata.KeyRange keyRange_; /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public boolean hasKeyRange() { return keyRange_ != null; } /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRange() { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder() { return getKeyRange(); } public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** *
     * name is the message table name.
     * 
* * optional string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the message table name.
     * 
* * optional string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; 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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shard_); } if (keyRange_ != null) { output.writeMessage(4, getKeyRange()); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } } 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 (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shard_); } if (keyRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKeyRange()); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } 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.MessageStreamRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.MessageStreamRequest other = (com.youtube.vitess.proto.Vtgate.MessageStreamRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); } result = result && getName() .equals(other.getName()); 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(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest 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.MessageStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest 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.MessageStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest 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.MessageStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest 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.MessageStreamRequest 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.MessageStreamRequest 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.MessageStreamRequest 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; } /** *
     * MessageStreamRequest is the request payload for MessageStream.
     * 
* * Protobuf type {@code vtgate.MessageStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.MessageStreamRequest) com.youtube.vitess.proto.Vtgate.MessageStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.MessageStreamRequest.class, com.youtube.vitess.proto.Vtgate.MessageStreamRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.MessageStreamRequest.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; } keyspace_ = ""; shard_ = ""; if (keyRangeBuilder_ == null) { keyRange_ = null; } else { keyRange_ = null; keyRangeBuilder_ = null; } name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageStreamRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.MessageStreamRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.MessageStreamRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.MessageStreamRequest build() { com.youtube.vitess.proto.Vtgate.MessageStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.MessageStreamRequest buildPartial() { com.youtube.vitess.proto.Vtgate.MessageStreamRequest result = new com.youtube.vitess.proto.Vtgate.MessageStreamRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.keyspace_ = keyspace_; result.shard_ = shard_; if (keyRangeBuilder_ == null) { result.keyRange_ = keyRange_; } else { result.keyRange_ = keyRangeBuilder_.build(); } result.name_ = name_; 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.MessageStreamRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.MessageStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.MessageStreamRequest other) { if (other == com.youtube.vitess.proto.Vtgate.MessageStreamRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); } if (other.hasKeyRange()) { mergeKeyRange(other.getKeyRange()); } if (!other.getName().isEmpty()) { name_ = other.name_; 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.MessageStreamRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.MessageStreamRequest) 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 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.lang.Object shard_ = ""; /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public java.lang.String getShard() { java.lang.Object ref = shard_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shard_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public com.google.protobuf.ByteString getShardBytes() { java.lang.Object ref = shard_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shard_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder setShard( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shard_ = value; onChanged(); return this; } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder setShardBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shard_ = value; onChanged(); return this; } private com.youtube.vitess.proto.Topodata.KeyRange keyRange_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> keyRangeBuilder_; /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public boolean hasKeyRange() { return keyRangeBuilder_ != null || keyRange_ != null; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRange() { if (keyRangeBuilder_ == null) { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } else { return keyRangeBuilder_.getMessage(); } } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder setKeyRange(com.youtube.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyRange_ = value; onChanged(); } else { keyRangeBuilder_.setMessage(value); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder setKeyRange( com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) { if (keyRangeBuilder_ == null) { keyRange_ = builderForValue.build(); onChanged(); } else { keyRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder mergeKeyRange(com.youtube.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (keyRange_ != null) { keyRange_ = com.youtube.vitess.proto.Topodata.KeyRange.newBuilder(keyRange_).mergeFrom(value).buildPartial(); } else { keyRange_ = value; } onChanged(); } else { keyRangeBuilder_.mergeFrom(value); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder clearKeyRange() { if (keyRangeBuilder_ == null) { keyRange_ = null; onChanged(); } else { keyRange_ = null; keyRangeBuilder_ = null; } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange.Builder getKeyRangeBuilder() { onChanged(); return getKeyRangeFieldBuilder().getBuilder(); } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder() { if (keyRangeBuilder_ != null) { return keyRangeBuilder_.getMessageOrBuilder(); } else { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> getKeyRangeFieldBuilder() { if (keyRangeBuilder_ == null) { keyRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>( getKeyRange(), getParentForChildren(), isClean()); keyRange_ = null; } return keyRangeBuilder_; } private java.lang.Object name_ = ""; /** *
       * name is the message table name.
       * 
* * optional string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the message table name.
       * 
* * optional string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the message table name.
       * 
* * optional string name = 5; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 5; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 5; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = 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.MessageStreamRequest) } // @@protoc_insertion_point(class_scope:vtgate.MessageStreamRequest) private static final com.youtube.vitess.proto.Vtgate.MessageStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.MessageStreamRequest(); } public static com.youtube.vitess.proto.Vtgate.MessageStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageStreamRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageStreamRequest(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.MessageStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageAckRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.MessageAckRequest) 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(); /** *
     * Optional keyspace for message table.
     * 
* * optional string keyspace = 2; */ java.lang.String getKeyspace(); /** *
     * Optional keyspace for message table.
     * 
* * optional string keyspace = 2; */ com.google.protobuf.ByteString getKeyspaceBytes(); /** *
     * name is the message table name.
     * 
* * optional string name = 3; */ java.lang.String getName(); /** *
     * name is the message table name.
     * 
* * optional string name = 3; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ java.util.List getIdsList(); /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ com.youtube.vitess.proto.Query.Value getIds(int index); /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ int getIdsCount(); /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ java.util.List getIdsOrBuilderList(); /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ com.youtube.vitess.proto.Query.ValueOrBuilder getIdsOrBuilder( int index); } /** *
   * MessageAckRequest is the request payload for MessageAck.
   * 
* * Protobuf type {@code vtgate.MessageAckRequest} */ public static final class MessageAckRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.MessageAckRequest) MessageAckRequestOrBuilder { // Use MessageAckRequest.newBuilder() to construct. private MessageAckRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageAckRequest() { keyspace_ = ""; name_ = ""; ids_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MessageAckRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } ids_.add( input.readMessage(com.youtube.vitess.proto.Query.Value.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_ & 0x00000008) == 0x00000008)) { ids_ = java.util.Collections.unmodifiableList(ids_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageAckRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageAckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.MessageAckRequest.class, com.youtube.vitess.proto.Vtgate.MessageAckRequest.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 KEYSPACE_FIELD_NUMBER = 2; private volatile java.lang.Object keyspace_; /** *
     * Optional keyspace for message table.
     * 
* * 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; } } /** *
     * Optional keyspace for message table.
     * 
* * 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 NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * name is the message table name.
     * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the message table name.
     * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDS_FIELD_NUMBER = 4; private java.util.List ids_; /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ public java.util.List getIdsList() { return ids_; } /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ public java.util.List getIdsOrBuilderList() { return ids_; } /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ public int getIdsCount() { return ids_.size(); } /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.Value getIds(int index) { return ids_.get(index); } /** *
     * ids is the list of ids to ack.
     * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.ValueOrBuilder getIdsOrBuilder( int index) { return ids_.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 (callerId_ != null) { output.writeMessage(1, getCallerId()); } if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } for (int i = 0; i < ids_.size(); i++) { output.writeMessage(4, ids_.get(i)); } } 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 (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } for (int i = 0; i < ids_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, ids_.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.MessageAckRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.MessageAckRequest other = (com.youtube.vitess.proto.Vtgate.MessageAckRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getName() .equals(other.getName()); result = result && getIdsList() .equals(other.getIdsList()); 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(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getIdsCount() > 0) { hash = (37 * hash) + IDS_FIELD_NUMBER; hash = (53 * hash) + getIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest 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.MessageAckRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest 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.MessageAckRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest 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.MessageAckRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest 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.MessageAckRequest 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.MessageAckRequest 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.MessageAckRequest 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; } /** *
     * MessageAckRequest is the request payload for MessageAck.
     * 
* * Protobuf type {@code vtgate.MessageAckRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.MessageAckRequest) com.youtube.vitess.proto.Vtgate.MessageAckRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageAckRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageAckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.MessageAckRequest.class, com.youtube.vitess.proto.Vtgate.MessageAckRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.MessageAckRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdsFieldBuilder(); } } public Builder clear() { super.clear(); if (callerIdBuilder_ == null) { callerId_ = null; } else { callerId_ = null; callerIdBuilder_ = null; } keyspace_ = ""; name_ = ""; if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { idsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_MessageAckRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.MessageAckRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.MessageAckRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.MessageAckRequest build() { com.youtube.vitess.proto.Vtgate.MessageAckRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.MessageAckRequest buildPartial() { com.youtube.vitess.proto.Vtgate.MessageAckRequest result = new com.youtube.vitess.proto.Vtgate.MessageAckRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.keyspace_ = keyspace_; result.name_ = name_; if (idsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000008); } result.ids_ = ids_; } else { result.ids_ = idsBuilder_.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.MessageAckRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.MessageAckRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.MessageAckRequest other) { if (other == com.youtube.vitess.proto.Vtgate.MessageAckRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (idsBuilder_ == null) { if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } onChanged(); } } else { if (!other.ids_.isEmpty()) { if (idsBuilder_.isEmpty()) { idsBuilder_.dispose(); idsBuilder_ = null; ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000008); idsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIdsFieldBuilder() : null; } else { idsBuilder_.addAllMessages(other.ids_); } } } 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.MessageAckRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.MessageAckRequest) 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 java.lang.Object keyspace_ = ""; /** *
       * Optional keyspace for message table.
       * 
* * 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; } } /** *
       * Optional keyspace for message table.
       * 
* * 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; } } /** *
       * Optional keyspace for message table.
       * 
* * optional string keyspace = 2; */ public Builder setKeyspace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyspace_ = value; onChanged(); return this; } /** *
       * Optional keyspace for message table.
       * 
* * optional string keyspace = 2; */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** *
       * Optional keyspace for message table.
       * 
* * 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.lang.Object name_ = ""; /** *
       * name is the message table name.
       * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the message table name.
       * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the message table name.
       * 
* * optional string name = 3; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 3; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 3; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List ids_ = java.util.Collections.emptyList(); private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { ids_ = new java.util.ArrayList(ids_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Value, com.youtube.vitess.proto.Query.Value.Builder, com.youtube.vitess.proto.Query.ValueOrBuilder> idsBuilder_; /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public java.util.List getIdsList() { if (idsBuilder_ == null) { return java.util.Collections.unmodifiableList(ids_); } else { return idsBuilder_.getMessageList(); } } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public int getIdsCount() { if (idsBuilder_ == null) { return ids_.size(); } else { return idsBuilder_.getCount(); } } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.Value getIds(int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessage(index); } } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder setIds( int index, com.youtube.vitess.proto.Query.Value value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.set(index, value); onChanged(); } else { idsBuilder_.setMessage(index, value); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder setIds( int index, com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.set(index, builderForValue.build()); onChanged(); } else { idsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder addIds(com.youtube.vitess.proto.Query.Value value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(value); onChanged(); } else { idsBuilder_.addMessage(value); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder addIds( int index, com.youtube.vitess.proto.Query.Value value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(index, value); onChanged(); } else { idsBuilder_.addMessage(index, value); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder addIds( com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.add(builderForValue.build()); onChanged(); } else { idsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder addIds( int index, com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.add(index, builderForValue.build()); onChanged(); } else { idsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder addAllIds( java.lang.Iterable values) { if (idsBuilder_ == null) { ensureIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ids_); onChanged(); } else { idsBuilder_.addAllMessages(values); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder clearIds() { if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { idsBuilder_.clear(); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public Builder removeIds(int index) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.remove(index); onChanged(); } else { idsBuilder_.remove(index); } return this; } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.Value.Builder getIdsBuilder( int index) { return getIdsFieldBuilder().getBuilder(index); } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.ValueOrBuilder getIdsOrBuilder( int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessageOrBuilder(index); } } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public java.util.List getIdsOrBuilderList() { if (idsBuilder_ != null) { return idsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ids_); } } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.Value.Builder addIdsBuilder() { return getIdsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public com.youtube.vitess.proto.Query.Value.Builder addIdsBuilder( int index) { return getIdsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** *
       * ids is the list of ids to ack.
       * 
* * repeated .query.Value ids = 4; */ public java.util.List getIdsBuilderList() { return getIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Value, com.youtube.vitess.proto.Query.Value.Builder, com.youtube.vitess.proto.Query.ValueOrBuilder> getIdsFieldBuilder() { if (idsBuilder_ == null) { idsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Value, com.youtube.vitess.proto.Query.Value.Builder, com.youtube.vitess.proto.Query.ValueOrBuilder>( ids_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); ids_ = null; } return idsBuilder_; } 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.MessageAckRequest) } // @@protoc_insertion_point(class_scope:vtgate.MessageAckRequest) private static final com.youtube.vitess.proto.Vtgate.MessageAckRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.MessageAckRequest(); } public static com.youtube.vitess.proto.Vtgate.MessageAckRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageAckRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageAckRequest(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.MessageAckRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResolveTransactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.ResolveTransactionResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * ResolveTransactionResponse is the returned value from Rollback.
   * 
* * Protobuf type {@code vtgate.ResolveTransactionResponse} */ public static final class ResolveTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.ResolveTransactionResponse) ResolveTransactionResponseOrBuilder { // Use ResolveTransactionResponse.newBuilder() to construct. private ResolveTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResolveTransactionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ResolveTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; } } } } 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_ResolveTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.class, com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.Builder.class); } 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 { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.ResolveTransactionResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse other = (com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse 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.ResolveTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse 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.ResolveTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse 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.ResolveTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse 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.ResolveTransactionResponse 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.ResolveTransactionResponse 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.ResolveTransactionResponse 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; } /** *
     * ResolveTransactionResponse is the returned value from Rollback.
     * 
* * Protobuf type {@code vtgate.ResolveTransactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.ResolveTransactionResponse) com.youtube.vitess.proto.Vtgate.ResolveTransactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.class, com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.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(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ResolveTransactionResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse build() { com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse buildPartial() { com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse result = new com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse(this); 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.ResolveTransactionResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse other) { if (other == com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse.getDefaultInstance()) return this; 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.ResolveTransactionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.ResolveTransactionResponse) } // @@protoc_insertion_point(class_scope:vtgate.ResolveTransactionResponse) private static final com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse(); } public static com.youtube.vitess.proto.Vtgate.ResolveTransactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResolveTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResolveTransactionResponse(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.ResolveTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.SplitQueryRequest) 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(); /** *
     * 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(); /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ boolean hasQuery(); /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ java.util.List getSplitColumnList(); /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ int getSplitColumnCount(); /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ java.lang.String getSplitColumn(int index); /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ com.google.protobuf.ByteString getSplitColumnBytes(int index); /** *
     * You can specify either an estimate of the number of query-parts to
     * generate or an estimate of the number of rows each query-part should
     * return.
     * Thus, exactly one of split_count or num_rows_per_query_part
     * should be nonzero.
     * The non-given parameter is calculated from the given parameter
     * using the formula: split_count * num_rows_per_query_pary = table_size,
     * where table_size is an approximation of the number of rows in the
     * table.
     * Note that if "split_count" is given it is regarded as an estimate.
     * The number of query-parts returned may differ slightly (in particular,
     * if it's not a whole multiple of the number of vitess shards).
     * 
* * optional int64 split_count = 5; */ long getSplitCount(); /** * optional int64 num_rows_per_query_part = 6; */ long getNumRowsPerQueryPart(); /** *
     * The algorithm to use to split the query. The split algorithm is performed
     * on each database shard in parallel. The lists of query-parts generated
     * by the shards are merged and returned to the caller.
     * Two algorithms are supported:
     *  EQUAL_SPLITS
     *    If this algorithm is selected then only the first 'split_column' given
     *    is used (or the first primary key column if the 'split_column' field is
     *    empty). In the rest of this algorithm's description, we refer to
     *    this column as "the split column".
     *    The split column must have numeric type (integral or floating point).
     *    The algorithm works by taking the interval [min, max], where min and
     *    max are the minimum and maximum values of the split column in
     *    the table-shard, respectively, and partitioning it into 'split_count'
     *    sub-intervals of equal size. The added WHERE clause of each query-part
     *    restricts that part to rows whose value in the split column belongs to
     *    a particular sub-interval. This is fast, but requires that the
     *    distribution of values of the split column be uniform in [min, max]
     *    for the number of rows returned by each query part to be roughly the
     *    same.
     *  FULL_SCAN
     *    If this algorithm is used then the split_column must be the primary key
     *    columns (in order).
     *    This algorithm performs a full-scan of the table-shard referenced
     *    in 'query' to get "boundary" rows that are num_rows_per_query_part
     *    apart when the table is ordered by the columns listed in
     *    'split_column'. It then restricts each query-part to the rows
     *    located between two successive boundary rows.
     *    This algorithm supports multiple split_column's of any type,
     *    but is slower than EQUAL_SPLITS.
     * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ int getAlgorithmValue(); /** *
     * The algorithm to use to split the query. The split algorithm is performed
     * on each database shard in parallel. The lists of query-parts generated
     * by the shards are merged and returned to the caller.
     * Two algorithms are supported:
     *  EQUAL_SPLITS
     *    If this algorithm is selected then only the first 'split_column' given
     *    is used (or the first primary key column if the 'split_column' field is
     *    empty). In the rest of this algorithm's description, we refer to
     *    this column as "the split column".
     *    The split column must have numeric type (integral or floating point).
     *    The algorithm works by taking the interval [min, max], where min and
     *    max are the minimum and maximum values of the split column in
     *    the table-shard, respectively, and partitioning it into 'split_count'
     *    sub-intervals of equal size. The added WHERE clause of each query-part
     *    restricts that part to rows whose value in the split column belongs to
     *    a particular sub-interval. This is fast, but requires that the
     *    distribution of values of the split column be uniform in [min, max]
     *    for the number of rows returned by each query part to be roughly the
     *    same.
     *  FULL_SCAN
     *    If this algorithm is used then the split_column must be the primary key
     *    columns (in order).
     *    This algorithm performs a full-scan of the table-shard referenced
     *    in 'query' to get "boundary" rows that are num_rows_per_query_part
     *    apart when the table is ordered by the columns listed in
     *    'split_column'. It then restricts each query-part to the rows
     *    located between two successive boundary rows.
     *    This algorithm supports multiple split_column's of any type,
     *    but is slower than EQUAL_SPLITS.
     * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm getAlgorithm(); /** *
     * TODO(erez): This field is no longer used by the server code.
     * Remove this field after this new server code is released to prod.
     * We must keep it for now, so that clients can still send it to the old
     * server code currently in production.
     * 
* * optional bool use_split_query_v2 = 8; */ boolean getUseSplitQueryV2(); } /** *
   * SplitQueryRequest is the payload to SplitQuery.
   * SplitQuery takes a "SELECT" query and generates a list of queries called
   * "query-parts". Each query-part consists of the original query with an
   * added WHERE clause that restricts the query-part to operate only on
   * rows whose values in the the columns listed in the "split_column" field
   * of the request (see below) are in a particular range.
   * It is guaranteed that the set of rows obtained from
   * executing each query-part on a database snapshot
   * and merging (without deduping) the results is equal to the set of rows
   * obtained from executing the original query on the same snapshot
   * with the rows containing NULL values in any of the split_column's excluded.
   * This is typically called by the MapReduce master when reading from Vitess.
   * There it's desirable that the sets of rows returned by the query-parts
   * have roughly the same size.
   * 
* * Protobuf type {@code vtgate.SplitQueryRequest} */ public static final class SplitQueryRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.SplitQueryRequest) SplitQueryRequestOrBuilder { // Use SplitQueryRequest.newBuilder() to construct. private SplitQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitQueryRequest() { keyspace_ = ""; splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; splitCount_ = 0L; numRowsPerQueryPart_ = 0L; algorithm_ = 0; useSplitQueryV2_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SplitQueryRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; 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(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { splitColumn_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } splitColumn_.add(s); break; } case 40: { splitCount_ = input.readInt64(); break; } case 48: { numRowsPerQueryPart_ = input.readInt64(); break; } case 56: { int rawValue = input.readEnum(); algorithm_ = rawValue; break; } case 64: { useSplitQueryV2_ = 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_ & 0x00000008) == 0x00000008)) { splitColumn_ = splitColumn_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryRequest.class, com.youtube.vitess.proto.Vtgate.SplitQueryRequest.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 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 QUERY_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.BoundQuery query_; /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ public boolean hasQuery() { return query_ != null; } /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ public com.youtube.vitess.proto.Query.BoundQuery getQuery() { return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_; } /** *
     * The query and bind variables to produce splits for.
     * The given query must be a simple query of the form
     * SELECT <cols> FROM <table> WHERE <filter>.
     * It must not contain subqueries nor any of the keywords
     * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
     * Furthermore, <table> must be a single “concrete” table.
     * It cannot be a view.
     * 
* * optional .query.BoundQuery query = 3; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int SPLIT_COLUMN_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList splitColumn_; /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ public com.google.protobuf.ProtocolStringList getSplitColumnList() { return splitColumn_; } /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ public int getSplitColumnCount() { return splitColumn_.size(); } /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ public java.lang.String getSplitColumn(int index) { return splitColumn_.get(index); } /** *
     * Each generated query-part will be restricted to rows whose values
     * in the columns listed in this field are in a particular range.
     * The list of columns named here must be a prefix of the list of
     * columns defining some index or primary key of the table
     * referenced in 'query'. For many tables using the primary key columns
     * (in order) is sufficient and this is the default if this field is omitted.
     * See the comment on the 'algorithm' field for more restrictions and
     * information.
     * 
* * repeated string split_column = 4; */ public com.google.protobuf.ByteString getSplitColumnBytes(int index) { return splitColumn_.getByteString(index); } public static final int SPLIT_COUNT_FIELD_NUMBER = 5; private long splitCount_; /** *
     * You can specify either an estimate of the number of query-parts to
     * generate or an estimate of the number of rows each query-part should
     * return.
     * Thus, exactly one of split_count or num_rows_per_query_part
     * should be nonzero.
     * The non-given parameter is calculated from the given parameter
     * using the formula: split_count * num_rows_per_query_pary = table_size,
     * where table_size is an approximation of the number of rows in the
     * table.
     * Note that if "split_count" is given it is regarded as an estimate.
     * The number of query-parts returned may differ slightly (in particular,
     * if it's not a whole multiple of the number of vitess shards).
     * 
* * optional int64 split_count = 5; */ public long getSplitCount() { return splitCount_; } public static final int NUM_ROWS_PER_QUERY_PART_FIELD_NUMBER = 6; private long numRowsPerQueryPart_; /** * optional int64 num_rows_per_query_part = 6; */ public long getNumRowsPerQueryPart() { return numRowsPerQueryPart_; } public static final int ALGORITHM_FIELD_NUMBER = 7; private int algorithm_; /** *
     * The algorithm to use to split the query. The split algorithm is performed
     * on each database shard in parallel. The lists of query-parts generated
     * by the shards are merged and returned to the caller.
     * Two algorithms are supported:
     *  EQUAL_SPLITS
     *    If this algorithm is selected then only the first 'split_column' given
     *    is used (or the first primary key column if the 'split_column' field is
     *    empty). In the rest of this algorithm's description, we refer to
     *    this column as "the split column".
     *    The split column must have numeric type (integral or floating point).
     *    The algorithm works by taking the interval [min, max], where min and
     *    max are the minimum and maximum values of the split column in
     *    the table-shard, respectively, and partitioning it into 'split_count'
     *    sub-intervals of equal size. The added WHERE clause of each query-part
     *    restricts that part to rows whose value in the split column belongs to
     *    a particular sub-interval. This is fast, but requires that the
     *    distribution of values of the split column be uniform in [min, max]
     *    for the number of rows returned by each query part to be roughly the
     *    same.
     *  FULL_SCAN
     *    If this algorithm is used then the split_column must be the primary key
     *    columns (in order).
     *    This algorithm performs a full-scan of the table-shard referenced
     *    in 'query' to get "boundary" rows that are num_rows_per_query_part
     *    apart when the table is ordered by the columns listed in
     *    'split_column'. It then restricts each query-part to the rows
     *    located between two successive boundary rows.
     *    This algorithm supports multiple split_column's of any type,
     *    but is slower than EQUAL_SPLITS.
     * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public int getAlgorithmValue() { return algorithm_; } /** *
     * The algorithm to use to split the query. The split algorithm is performed
     * on each database shard in parallel. The lists of query-parts generated
     * by the shards are merged and returned to the caller.
     * Two algorithms are supported:
     *  EQUAL_SPLITS
     *    If this algorithm is selected then only the first 'split_column' given
     *    is used (or the first primary key column if the 'split_column' field is
     *    empty). In the rest of this algorithm's description, we refer to
     *    this column as "the split column".
     *    The split column must have numeric type (integral or floating point).
     *    The algorithm works by taking the interval [min, max], where min and
     *    max are the minimum and maximum values of the split column in
     *    the table-shard, respectively, and partitioning it into 'split_count'
     *    sub-intervals of equal size. The added WHERE clause of each query-part
     *    restricts that part to rows whose value in the split column belongs to
     *    a particular sub-interval. This is fast, but requires that the
     *    distribution of values of the split column be uniform in [min, max]
     *    for the number of rows returned by each query part to be roughly the
     *    same.
     *  FULL_SCAN
     *    If this algorithm is used then the split_column must be the primary key
     *    columns (in order).
     *    This algorithm performs a full-scan of the table-shard referenced
     *    in 'query' to get "boundary" rows that are num_rows_per_query_part
     *    apart when the table is ordered by the columns listed in
     *    'split_column'. It then restricts each query-part to the rows
     *    located between two successive boundary rows.
     *    This algorithm supports multiple split_column's of any type,
     *    but is slower than EQUAL_SPLITS.
     * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm getAlgorithm() { com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm result = com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.valueOf(algorithm_); return result == null ? com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.UNRECOGNIZED : result; } public static final int USE_SPLIT_QUERY_V2_FIELD_NUMBER = 8; private boolean useSplitQueryV2_; /** *
     * TODO(erez): This field is no longer used by the server code.
     * Remove this field after this new server code is released to prod.
     * We must keep it for now, so that clients can still send it to the old
     * server code currently in production.
     * 
* * optional bool use_split_query_v2 = 8; */ public boolean getUseSplitQueryV2() { return useSplitQueryV2_; } 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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } if (query_ != null) { output.writeMessage(3, getQuery()); } for (int i = 0; i < splitColumn_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, splitColumn_.getRaw(i)); } if (splitCount_ != 0L) { output.writeInt64(5, splitCount_); } if (numRowsPerQueryPart_ != 0L) { output.writeInt64(6, numRowsPerQueryPart_); } if (algorithm_ != com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.EQUAL_SPLITS.getNumber()) { output.writeEnum(7, algorithm_); } if (useSplitQueryV2_ != false) { output.writeBool(8, useSplitQueryV2_); } } 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 (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getQuery()); } { int dataSize = 0; for (int i = 0; i < splitColumn_.size(); i++) { dataSize += computeStringSizeNoTag(splitColumn_.getRaw(i)); } size += dataSize; size += 1 * getSplitColumnList().size(); } if (splitCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, splitCount_); } if (numRowsPerQueryPart_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, numRowsPerQueryPart_); } if (algorithm_ != com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.EQUAL_SPLITS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, algorithm_); } if (useSplitQueryV2_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, useSplitQueryV2_); } 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.SplitQueryRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.SplitQueryRequest other = (com.youtube.vitess.proto.Vtgate.SplitQueryRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && getKeyspace() .equals(other.getKeyspace()); result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } result = result && getSplitColumnList() .equals(other.getSplitColumnList()); result = result && (getSplitCount() == other.getSplitCount()); result = result && (getNumRowsPerQueryPart() == other.getNumRowsPerQueryPart()); result = result && algorithm_ == other.algorithm_; result = result && (getUseSplitQueryV2() == other.getUseSplitQueryV2()); 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(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); if (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); } if (getSplitColumnCount() > 0) { hash = (37 * hash) + SPLIT_COLUMN_FIELD_NUMBER; hash = (53 * hash) + getSplitColumnList().hashCode(); } hash = (37 * hash) + SPLIT_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSplitCount()); hash = (37 * hash) + NUM_ROWS_PER_QUERY_PART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumRowsPerQueryPart()); hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + algorithm_; hash = (37 * hash) + USE_SPLIT_QUERY_V2_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseSplitQueryV2()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest 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.SplitQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest 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.SplitQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest 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.SplitQueryRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest 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.SplitQueryRequest 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.SplitQueryRequest 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.SplitQueryRequest 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; } /** *
     * SplitQueryRequest is the payload to SplitQuery.
     * SplitQuery takes a "SELECT" query and generates a list of queries called
     * "query-parts". Each query-part consists of the original query with an
     * added WHERE clause that restricts the query-part to operate only on
     * rows whose values in the the columns listed in the "split_column" field
     * of the request (see below) are in a particular range.
     * It is guaranteed that the set of rows obtained from
     * executing each query-part on a database snapshot
     * and merging (without deduping) the results is equal to the set of rows
     * obtained from executing the original query on the same snapshot
     * with the rows containing NULL values in any of the split_column's excluded.
     * This is typically called by the MapReduce master when reading from Vitess.
     * There it's desirable that the sets of rows returned by the query-parts
     * have roughly the same size.
     * 
* * Protobuf type {@code vtgate.SplitQueryRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.SplitQueryRequest) com.youtube.vitess.proto.Vtgate.SplitQueryRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryRequest.class, com.youtube.vitess.proto.Vtgate.SplitQueryRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.SplitQueryRequest.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; } keyspace_ = ""; if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); splitCount_ = 0L; numRowsPerQueryPart_ = 0L; algorithm_ = 0; useSplitQueryV2_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.SplitQueryRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.SplitQueryRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.SplitQueryRequest build() { com.youtube.vitess.proto.Vtgate.SplitQueryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.SplitQueryRequest buildPartial() { com.youtube.vitess.proto.Vtgate.SplitQueryRequest result = new com.youtube.vitess.proto.Vtgate.SplitQueryRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.keyspace_ = keyspace_; if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { splitColumn_ = splitColumn_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.splitColumn_ = splitColumn_; result.splitCount_ = splitCount_; result.numRowsPerQueryPart_ = numRowsPerQueryPart_; result.algorithm_ = algorithm_; result.useSplitQueryV2_ = useSplitQueryV2_; 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.SplitQueryRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.SplitQueryRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.SplitQueryRequest other) { if (other == com.youtube.vitess.proto.Vtgate.SplitQueryRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (!other.splitColumn_.isEmpty()) { if (splitColumn_.isEmpty()) { splitColumn_ = other.splitColumn_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSplitColumnIsMutable(); splitColumn_.addAll(other.splitColumn_); } onChanged(); } if (other.getSplitCount() != 0L) { setSplitCount(other.getSplitCount()); } if (other.getNumRowsPerQueryPart() != 0L) { setNumRowsPerQueryPart(other.getNumRowsPerQueryPart()); } if (other.algorithm_ != 0) { setAlgorithmValue(other.getAlgorithmValue()); } if (other.getUseSplitQueryV2() != false) { setUseSplitQueryV2(other.getUseSplitQueryV2()); } 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.SplitQueryRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.SplitQueryRequest) 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 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.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_; /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * optional .query.BoundQuery query = 3; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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(); } } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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; } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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; } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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; } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * optional .query.BoundQuery query = 3; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * optional .query.BoundQuery query = 3; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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_; } } /** *
       * The query and bind variables to produce splits for.
       * The given query must be a simple query of the form
       * SELECT <cols> FROM <table> WHERE <filter>.
       * It must not contain subqueries nor any of the keywords
       * JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT.
       * Furthermore, <table> must be a single “concrete” table.
       * It cannot be a view.
       * 
* * 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 com.google.protobuf.LazyStringList splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSplitColumnIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { splitColumn_ = new com.google.protobuf.LazyStringArrayList(splitColumn_); bitField0_ |= 0x00000008; } } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public com.google.protobuf.ProtocolStringList getSplitColumnList() { return splitColumn_.getUnmodifiableView(); } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public int getSplitColumnCount() { return splitColumn_.size(); } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public java.lang.String getSplitColumn(int index) { return splitColumn_.get(index); } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public com.google.protobuf.ByteString getSplitColumnBytes(int index) { return splitColumn_.getByteString(index); } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public Builder setSplitColumn( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSplitColumnIsMutable(); splitColumn_.set(index, value); onChanged(); return this; } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public Builder addSplitColumn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSplitColumnIsMutable(); splitColumn_.add(value); onChanged(); return this; } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public Builder addAllSplitColumn( java.lang.Iterable values) { ensureSplitColumnIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, splitColumn_); onChanged(); return this; } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public Builder clearSplitColumn() { splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Each generated query-part will be restricted to rows whose values
       * in the columns listed in this field are in a particular range.
       * The list of columns named here must be a prefix of the list of
       * columns defining some index or primary key of the table
       * referenced in 'query'. For many tables using the primary key columns
       * (in order) is sufficient and this is the default if this field is omitted.
       * See the comment on the 'algorithm' field for more restrictions and
       * information.
       * 
* * repeated string split_column = 4; */ public Builder addSplitColumnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSplitColumnIsMutable(); splitColumn_.add(value); onChanged(); return this; } private long splitCount_ ; /** *
       * You can specify either an estimate of the number of query-parts to
       * generate or an estimate of the number of rows each query-part should
       * return.
       * Thus, exactly one of split_count or num_rows_per_query_part
       * should be nonzero.
       * The non-given parameter is calculated from the given parameter
       * using the formula: split_count * num_rows_per_query_pary = table_size,
       * where table_size is an approximation of the number of rows in the
       * table.
       * Note that if "split_count" is given it is regarded as an estimate.
       * The number of query-parts returned may differ slightly (in particular,
       * if it's not a whole multiple of the number of vitess shards).
       * 
* * optional int64 split_count = 5; */ public long getSplitCount() { return splitCount_; } /** *
       * You can specify either an estimate of the number of query-parts to
       * generate or an estimate of the number of rows each query-part should
       * return.
       * Thus, exactly one of split_count or num_rows_per_query_part
       * should be nonzero.
       * The non-given parameter is calculated from the given parameter
       * using the formula: split_count * num_rows_per_query_pary = table_size,
       * where table_size is an approximation of the number of rows in the
       * table.
       * Note that if "split_count" is given it is regarded as an estimate.
       * The number of query-parts returned may differ slightly (in particular,
       * if it's not a whole multiple of the number of vitess shards).
       * 
* * optional int64 split_count = 5; */ public Builder setSplitCount(long value) { splitCount_ = value; onChanged(); return this; } /** *
       * You can specify either an estimate of the number of query-parts to
       * generate or an estimate of the number of rows each query-part should
       * return.
       * Thus, exactly one of split_count or num_rows_per_query_part
       * should be nonzero.
       * The non-given parameter is calculated from the given parameter
       * using the formula: split_count * num_rows_per_query_pary = table_size,
       * where table_size is an approximation of the number of rows in the
       * table.
       * Note that if "split_count" is given it is regarded as an estimate.
       * The number of query-parts returned may differ slightly (in particular,
       * if it's not a whole multiple of the number of vitess shards).
       * 
* * optional int64 split_count = 5; */ public Builder clearSplitCount() { splitCount_ = 0L; onChanged(); return this; } private long numRowsPerQueryPart_ ; /** * optional int64 num_rows_per_query_part = 6; */ public long getNumRowsPerQueryPart() { return numRowsPerQueryPart_; } /** * optional int64 num_rows_per_query_part = 6; */ public Builder setNumRowsPerQueryPart(long value) { numRowsPerQueryPart_ = value; onChanged(); return this; } /** * optional int64 num_rows_per_query_part = 6; */ public Builder clearNumRowsPerQueryPart() { numRowsPerQueryPart_ = 0L; onChanged(); return this; } private int algorithm_ = 0; /** *
       * The algorithm to use to split the query. The split algorithm is performed
       * on each database shard in parallel. The lists of query-parts generated
       * by the shards are merged and returned to the caller.
       * Two algorithms are supported:
       *  EQUAL_SPLITS
       *    If this algorithm is selected then only the first 'split_column' given
       *    is used (or the first primary key column if the 'split_column' field is
       *    empty). In the rest of this algorithm's description, we refer to
       *    this column as "the split column".
       *    The split column must have numeric type (integral or floating point).
       *    The algorithm works by taking the interval [min, max], where min and
       *    max are the minimum and maximum values of the split column in
       *    the table-shard, respectively, and partitioning it into 'split_count'
       *    sub-intervals of equal size. The added WHERE clause of each query-part
       *    restricts that part to rows whose value in the split column belongs to
       *    a particular sub-interval. This is fast, but requires that the
       *    distribution of values of the split column be uniform in [min, max]
       *    for the number of rows returned by each query part to be roughly the
       *    same.
       *  FULL_SCAN
       *    If this algorithm is used then the split_column must be the primary key
       *    columns (in order).
       *    This algorithm performs a full-scan of the table-shard referenced
       *    in 'query' to get "boundary" rows that are num_rows_per_query_part
       *    apart when the table is ordered by the columns listed in
       *    'split_column'. It then restricts each query-part to the rows
       *    located between two successive boundary rows.
       *    This algorithm supports multiple split_column's of any type,
       *    but is slower than EQUAL_SPLITS.
       * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public int getAlgorithmValue() { return algorithm_; } /** *
       * The algorithm to use to split the query. The split algorithm is performed
       * on each database shard in parallel. The lists of query-parts generated
       * by the shards are merged and returned to the caller.
       * Two algorithms are supported:
       *  EQUAL_SPLITS
       *    If this algorithm is selected then only the first 'split_column' given
       *    is used (or the first primary key column if the 'split_column' field is
       *    empty). In the rest of this algorithm's description, we refer to
       *    this column as "the split column".
       *    The split column must have numeric type (integral or floating point).
       *    The algorithm works by taking the interval [min, max], where min and
       *    max are the minimum and maximum values of the split column in
       *    the table-shard, respectively, and partitioning it into 'split_count'
       *    sub-intervals of equal size. The added WHERE clause of each query-part
       *    restricts that part to rows whose value in the split column belongs to
       *    a particular sub-interval. This is fast, but requires that the
       *    distribution of values of the split column be uniform in [min, max]
       *    for the number of rows returned by each query part to be roughly the
       *    same.
       *  FULL_SCAN
       *    If this algorithm is used then the split_column must be the primary key
       *    columns (in order).
       *    This algorithm performs a full-scan of the table-shard referenced
       *    in 'query' to get "boundary" rows that are num_rows_per_query_part
       *    apart when the table is ordered by the columns listed in
       *    'split_column'. It then restricts each query-part to the rows
       *    located between two successive boundary rows.
       *    This algorithm supports multiple split_column's of any type,
       *    but is slower than EQUAL_SPLITS.
       * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public Builder setAlgorithmValue(int value) { algorithm_ = value; onChanged(); return this; } /** *
       * The algorithm to use to split the query. The split algorithm is performed
       * on each database shard in parallel. The lists of query-parts generated
       * by the shards are merged and returned to the caller.
       * Two algorithms are supported:
       *  EQUAL_SPLITS
       *    If this algorithm is selected then only the first 'split_column' given
       *    is used (or the first primary key column if the 'split_column' field is
       *    empty). In the rest of this algorithm's description, we refer to
       *    this column as "the split column".
       *    The split column must have numeric type (integral or floating point).
       *    The algorithm works by taking the interval [min, max], where min and
       *    max are the minimum and maximum values of the split column in
       *    the table-shard, respectively, and partitioning it into 'split_count'
       *    sub-intervals of equal size. The added WHERE clause of each query-part
       *    restricts that part to rows whose value in the split column belongs to
       *    a particular sub-interval. This is fast, but requires that the
       *    distribution of values of the split column be uniform in [min, max]
       *    for the number of rows returned by each query part to be roughly the
       *    same.
       *  FULL_SCAN
       *    If this algorithm is used then the split_column must be the primary key
       *    columns (in order).
       *    This algorithm performs a full-scan of the table-shard referenced
       *    in 'query' to get "boundary" rows that are num_rows_per_query_part
       *    apart when the table is ordered by the columns listed in
       *    'split_column'. It then restricts each query-part to the rows
       *    located between two successive boundary rows.
       *    This algorithm supports multiple split_column's of any type,
       *    but is slower than EQUAL_SPLITS.
       * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm getAlgorithm() { com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm result = com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.valueOf(algorithm_); return result == null ? com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.UNRECOGNIZED : result; } /** *
       * The algorithm to use to split the query. The split algorithm is performed
       * on each database shard in parallel. The lists of query-parts generated
       * by the shards are merged and returned to the caller.
       * Two algorithms are supported:
       *  EQUAL_SPLITS
       *    If this algorithm is selected then only the first 'split_column' given
       *    is used (or the first primary key column if the 'split_column' field is
       *    empty). In the rest of this algorithm's description, we refer to
       *    this column as "the split column".
       *    The split column must have numeric type (integral or floating point).
       *    The algorithm works by taking the interval [min, max], where min and
       *    max are the minimum and maximum values of the split column in
       *    the table-shard, respectively, and partitioning it into 'split_count'
       *    sub-intervals of equal size. The added WHERE clause of each query-part
       *    restricts that part to rows whose value in the split column belongs to
       *    a particular sub-interval. This is fast, but requires that the
       *    distribution of values of the split column be uniform in [min, max]
       *    for the number of rows returned by each query part to be roughly the
       *    same.
       *  FULL_SCAN
       *    If this algorithm is used then the split_column must be the primary key
       *    columns (in order).
       *    This algorithm performs a full-scan of the table-shard referenced
       *    in 'query' to get "boundary" rows that are num_rows_per_query_part
       *    apart when the table is ordered by the columns listed in
       *    'split_column'. It then restricts each query-part to the rows
       *    located between two successive boundary rows.
       *    This algorithm supports multiple split_column's of any type,
       *    but is slower than EQUAL_SPLITS.
       * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public Builder setAlgorithm(com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm value) { if (value == null) { throw new NullPointerException(); } algorithm_ = value.getNumber(); onChanged(); return this; } /** *
       * The algorithm to use to split the query. The split algorithm is performed
       * on each database shard in parallel. The lists of query-parts generated
       * by the shards are merged and returned to the caller.
       * Two algorithms are supported:
       *  EQUAL_SPLITS
       *    If this algorithm is selected then only the first 'split_column' given
       *    is used (or the first primary key column if the 'split_column' field is
       *    empty). In the rest of this algorithm's description, we refer to
       *    this column as "the split column".
       *    The split column must have numeric type (integral or floating point).
       *    The algorithm works by taking the interval [min, max], where min and
       *    max are the minimum and maximum values of the split column in
       *    the table-shard, respectively, and partitioning it into 'split_count'
       *    sub-intervals of equal size. The added WHERE clause of each query-part
       *    restricts that part to rows whose value in the split column belongs to
       *    a particular sub-interval. This is fast, but requires that the
       *    distribution of values of the split column be uniform in [min, max]
       *    for the number of rows returned by each query part to be roughly the
       *    same.
       *  FULL_SCAN
       *    If this algorithm is used then the split_column must be the primary key
       *    columns (in order).
       *    This algorithm performs a full-scan of the table-shard referenced
       *    in 'query' to get "boundary" rows that are num_rows_per_query_part
       *    apart when the table is ordered by the columns listed in
       *    'split_column'. It then restricts each query-part to the rows
       *    located between two successive boundary rows.
       *    This algorithm supports multiple split_column's of any type,
       *    but is slower than EQUAL_SPLITS.
       * 
* * optional .query.SplitQueryRequest.Algorithm algorithm = 7; */ public Builder clearAlgorithm() { algorithm_ = 0; onChanged(); return this; } private boolean useSplitQueryV2_ ; /** *
       * TODO(erez): This field is no longer used by the server code.
       * Remove this field after this new server code is released to prod.
       * We must keep it for now, so that clients can still send it to the old
       * server code currently in production.
       * 
* * optional bool use_split_query_v2 = 8; */ public boolean getUseSplitQueryV2() { return useSplitQueryV2_; } /** *
       * TODO(erez): This field is no longer used by the server code.
       * Remove this field after this new server code is released to prod.
       * We must keep it for now, so that clients can still send it to the old
       * server code currently in production.
       * 
* * optional bool use_split_query_v2 = 8; */ public Builder setUseSplitQueryV2(boolean value) { useSplitQueryV2_ = value; onChanged(); return this; } /** *
       * TODO(erez): This field is no longer used by the server code.
       * Remove this field after this new server code is released to prod.
       * We must keep it for now, so that clients can still send it to the old
       * server code currently in production.
       * 
* * optional bool use_split_query_v2 = 8; */ public Builder clearUseSplitQueryV2() { useSplitQueryV2_ = 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.SplitQueryRequest) } // @@protoc_insertion_point(class_scope:vtgate.SplitQueryRequest) private static final com.youtube.vitess.proto.Vtgate.SplitQueryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.SplitQueryRequest(); } public static com.youtube.vitess.proto.Vtgate.SplitQueryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitQueryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitQueryRequest(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.SplitQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitQueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.SplitQueryResponse) com.google.protobuf.MessageOrBuilder { /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ java.util.List getSplitsList(); /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part getSplits(int index); /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ int getSplitsCount(); /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ java.util.List getSplitsOrBuilderList(); /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder getSplitsOrBuilder( int index); } /** *
   * SplitQueryResponse is the returned value from SplitQuery.
   * 
* * Protobuf type {@code vtgate.SplitQueryResponse} */ public static final class SplitQueryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.SplitQueryResponse) SplitQueryResponseOrBuilder { // Use SplitQueryResponse.newBuilder() to construct. private SplitQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitQueryResponse() { splits_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SplitQueryResponse( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { splits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } splits_.add( input.readMessage(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.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_ & 0x00000001) == 0x00000001)) { splits_ = java.util.Collections.unmodifiableList(splits_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Builder.class); } public interface KeyRangePartOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.SplitQueryResponse.KeyRangePart) com.google.protobuf.MessageOrBuilder { /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ java.lang.String getKeyspace(); /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ com.google.protobuf.ByteString getKeyspaceBytes(); /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ java.util.List getKeyRangesList(); /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index); /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ int getKeyRangesCount(); /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ java.util.List getKeyRangesOrBuilderList(); /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder( int index); } /** * Protobuf type {@code vtgate.SplitQueryResponse.KeyRangePart} */ public static final class KeyRangePart extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.SplitQueryResponse.KeyRangePart) KeyRangePartOrBuilder { // Use KeyRangePart.newBuilder() to construct. private KeyRangePart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyRangePart() { keyspace_ = ""; keyRanges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private KeyRangePart( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keyRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keyRanges_.add( input.readMessage(com.youtube.vitess.proto.Topodata.KeyRange.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_ & 0x00000002) == 0x00000002)) { 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_SplitQueryResponse_KeyRangePart_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_KeyRangePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder.class); } private int bitField0_; public static final int KEYSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object keyspace_; /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ 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 = 1; */ 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 = 2; private java.util.List keyRanges_; /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesList() { return keyRanges_; } /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesOrBuilderList() { return keyRanges_; } /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public int getKeyRangesCount() { return keyRanges_.size(); } /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) { return keyRanges_.get(index); } /** *
       * key ranges to target the query to.
       * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder( int index) { return keyRanges_.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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_); } for (int i = 0; i < keyRanges_.size(); i++) { output.writeMessage(2, keyRanges_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_); } for (int i = 0; i < keyRanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, keyRanges_.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.SplitQueryResponse.KeyRangePart)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart other = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart) obj; boolean result = true; result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getKeyRangesList() .equals(other.getKeyRangesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart 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.SplitQueryResponse.KeyRangePart} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.SplitQueryResponse.KeyRangePart) com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_KeyRangePart_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_KeyRangePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.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(); keyspace_ = ""; if (keyRangesBuilder_ == null) { keyRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { keyRangesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_KeyRangePart_descriptor; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart build() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart buildPartial() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart result = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.keyspace_ = keyspace_; if (keyRangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_); bitField0_ = (bitField0_ & ~0x00000002); } result.keyRanges_ = keyRanges_; } else { result.keyRanges_ = keyRangesBuilder_.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.SplitQueryResponse.KeyRangePart) { return mergeFrom((com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart other) { if (other == com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.getDefaultInstance()) return this; if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (keyRangesBuilder_ == null) { if (!other.keyRanges_.isEmpty()) { if (keyRanges_.isEmpty()) { keyRanges_ = other.keyRanges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyRangesIsMutable(); keyRanges_.addAll(other.keyRanges_); } onChanged(); } } else { if (!other.keyRanges_.isEmpty()) { if (keyRangesBuilder_.isEmpty()) { keyRangesBuilder_.dispose(); keyRangesBuilder_ = null; keyRanges_ = other.keyRanges_; bitField0_ = (bitField0_ & ~0x00000002); keyRangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyRangesFieldBuilder() : null; } else { keyRangesBuilder_.addAllMessages(other.keyRanges_); } } } 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.SplitQueryResponse.KeyRangePart parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object keyspace_ = ""; /** *
         * keyspace to target the query to.
         * 
* * optional string keyspace = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** *
         * keyspace to target the query to.
         * 
* * optional string keyspace = 1; */ 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_ & 0x00000002) == 0x00000002)) { keyRanges_ = new java.util.ArrayList(keyRanges_); bitField0_ |= 0x00000002; } } 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesList() { if (keyRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(keyRanges_); } else { return keyRangesBuilder_.getMessageList(); } } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public int getKeyRangesCount() { if (keyRangesBuilder_ == null) { return keyRanges_.size(); } else { return keyRangesBuilder_.getCount(); } } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) { if (keyRangesBuilder_ == null) { return keyRanges_.get(index); } else { return keyRangesBuilder_.getMessage(index); } } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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 to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public Builder addAllKeyRanges( java.lang.Iterable values) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keyRanges_); onChanged(); } else { keyRangesBuilder_.addAllMessages(values); } return this; } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public Builder clearKeyRanges() { if (keyRangesBuilder_ == null) { keyRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { keyRangesBuilder_.clear(); } return this; } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public Builder removeKeyRanges(int index) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); keyRanges_.remove(index); onChanged(); } else { keyRangesBuilder_.remove(index); } return this; } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRange.Builder getKeyRangesBuilder( int index) { return getKeyRangesFieldBuilder().getBuilder(index); } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder( int index) { if (keyRangesBuilder_ == null) { return keyRanges_.get(index); } else { return keyRangesBuilder_.getMessageOrBuilder(index); } } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesOrBuilderList() { if (keyRangesBuilder_ != null) { return keyRangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keyRanges_); } } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder() { return getKeyRangesFieldBuilder().addBuilder( com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance()); } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder( int index) { return getKeyRangesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance()); } /** *
         * key ranges to target the query to.
         * 
* * repeated .topodata.KeyRange key_ranges = 2; */ 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_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); keyRanges_ = null; } return keyRangesBuilder_; } 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.SplitQueryResponse.KeyRangePart) } // @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.KeyRangePart) private static final com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart(); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyRangePart parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyRangePart(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.SplitQueryResponse.KeyRangePart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShardPartOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.SplitQueryResponse.ShardPart) com.google.protobuf.MessageOrBuilder { /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ java.lang.String getKeyspace(); /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ com.google.protobuf.ByteString getKeyspaceBytes(); /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ java.util.List getShardsList(); /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ int getShardsCount(); /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ java.lang.String getShards(int index); /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ com.google.protobuf.ByteString getShardsBytes(int index); } /** * Protobuf type {@code vtgate.SplitQueryResponse.ShardPart} */ public static final class ShardPart extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.SplitQueryResponse.ShardPart) ShardPartOrBuilder { // Use ShardPart.newBuilder() to construct. private ShardPart(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShardPart() { keyspace_ = ""; shards_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ShardPart( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { shards_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } 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_ & 0x00000002) == 0x00000002)) { shards_ = shards_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_ShardPart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder.class); } private int bitField0_; public static final int KEYSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object keyspace_; /** *
       * keyspace to target the query to.
       * 
* * optional string keyspace = 1; */ 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 = 1; */ 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 = 2; private com.google.protobuf.LazyStringList shards_; /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ public com.google.protobuf.ProtocolStringList getShardsList() { return shards_; } /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ public int getShardsCount() { return shards_.size(); } /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ public java.lang.String getShards(int index) { return shards_.get(index); } /** *
       * shards to target the query to.
       * 
* * repeated string shards = 2; */ 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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_); } for (int i = 0; i < shards_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shards_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.SplitQueryResponse.ShardPart)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart other = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart) obj; boolean result = true; 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(); 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.SplitQueryResponse.ShardPart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart 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.SplitQueryResponse.ShardPart} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.SplitQueryResponse.ShardPart) com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_ShardPart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.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(); keyspace_ = ""; shards_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart build() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart buildPartial() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart result = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.keyspace_ = keyspace_; if (((bitField0_ & 0x00000002) == 0x00000002)) { shards_ = shards_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } 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.SplitQueryResponse.ShardPart) { return mergeFrom((com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart other) { if (other == com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.getDefaultInstance()) return this; if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (!other.shards_.isEmpty()) { if (shards_.isEmpty()) { shards_ = other.shards_; bitField0_ = (bitField0_ & ~0x00000002); } 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.SplitQueryResponse.ShardPart parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object keyspace_ = ""; /** *
         * keyspace to target the query to.
         * 
* * optional string keyspace = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** *
         * keyspace to target the query to.
         * 
* * optional string keyspace = 1; */ 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_ & 0x00000002) == 0x00000002)) { shards_ = new com.google.protobuf.LazyStringArrayList(shards_); bitField0_ |= 0x00000002; } } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ public com.google.protobuf.ProtocolStringList getShardsList() { return shards_.getUnmodifiableView(); } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ public int getShardsCount() { return shards_.size(); } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ public java.lang.String getShards(int index) { return shards_.get(index); } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ public com.google.protobuf.ByteString getShardsBytes(int index) { return shards_.getByteString(index); } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ public Builder clearShards() { shards_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * shards to target the query to.
         * 
* * repeated string shards = 2; */ 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.SplitQueryResponse.ShardPart) } // @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.ShardPart) private static final com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart(); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ShardPart parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ShardPart(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.SplitQueryResponse.ShardPart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.SplitQueryResponse.Part) 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(); /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ boolean hasKeyRangePart(); /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart getKeyRangePart(); /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder getKeyRangePartOrBuilder(); /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ boolean hasShardPart(); /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart getShardPart(); /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder getShardPartOrBuilder(); /** *
       * size is the approximate number of rows this query will return.
       * 
* * optional int64 size = 4; */ long getSize(); } /** * Protobuf type {@code vtgate.SplitQueryResponse.Part} */ public static final class Part extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.SplitQueryResponse.Part) PartOrBuilder { // Use Part.newBuilder() to construct. private Part(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Part() { size_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Part( 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: { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder subBuilder = null; if (keyRangePart_ != null) { subBuilder = keyRangePart_.toBuilder(); } keyRangePart_ = input.readMessage(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keyRangePart_); keyRangePart_ = subBuilder.buildPartial(); } break; } case 26: { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder subBuilder = null; if (shardPart_ != null) { subBuilder = shardPart_.toBuilder(); } shardPart_ = input.readMessage(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shardPart_); shardPart_ = subBuilder.buildPartial(); } break; } case 32: { size_ = 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_SplitQueryResponse_Part_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder.class); } 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 KEY_RANGE_PART_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart keyRangePart_; /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public boolean hasKeyRangePart() { return keyRangePart_ != null; } /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart getKeyRangePart() { return keyRangePart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.getDefaultInstance() : keyRangePart_; } /** *
       * key_range_part is set if the query should be executed by
       * ExecuteKeyRanges.
       * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder getKeyRangePartOrBuilder() { return getKeyRangePart(); } public static final int SHARD_PART_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart shardPart_; /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public boolean hasShardPart() { return shardPart_ != null; } /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart getShardPart() { return shardPart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.getDefaultInstance() : shardPart_; } /** *
       * shard_part is set if the query should be executed by ExecuteShards.
       * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder getShardPartOrBuilder() { return getShardPart(); } public static final int SIZE_FIELD_NUMBER = 4; private long size_; /** *
       * size is the approximate number of rows this query will return.
       * 
* * optional int64 size = 4; */ public long getSize() { return size_; } 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 (keyRangePart_ != null) { output.writeMessage(2, getKeyRangePart()); } if (shardPart_ != null) { output.writeMessage(3, getShardPart()); } if (size_ != 0L) { output.writeInt64(4, size_); } } 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 (keyRangePart_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKeyRangePart()); } if (shardPart_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getShardPart()); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.SplitQueryResponse.Part)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part other = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part) obj; boolean result = true; result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } result = result && (hasKeyRangePart() == other.hasKeyRangePart()); if (hasKeyRangePart()) { result = result && getKeyRangePart() .equals(other.getKeyRangePart()); } result = result && (hasShardPart() == other.hasShardPart()); if (hasShardPart()) { result = result && getShardPart() .equals(other.getShardPart()); } result = result && (getSize() == other.getSize()); 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(); } if (hasKeyRangePart()) { hash = (37 * hash) + KEY_RANGE_PART_FIELD_NUMBER; hash = (53 * hash) + getKeyRangePart().hashCode(); } if (hasShardPart()) { hash = (37 * hash) + SHARD_PART_FIELD_NUMBER; hash = (53 * hash) + getShardPart().hashCode(); } hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part 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.SplitQueryResponse.Part parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part 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.SplitQueryResponse.Part parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part 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.SplitQueryResponse.Part parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part 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.SplitQueryResponse.Part 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.SplitQueryResponse.Part 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.SplitQueryResponse.Part 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.SplitQueryResponse.Part} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.SplitQueryResponse.Part) com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_Part_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.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; } if (keyRangePartBuilder_ == null) { keyRangePart_ = null; } else { keyRangePart_ = null; keyRangePartBuilder_ = null; } if (shardPartBuilder_ == null) { shardPart_ = null; } else { shardPart_ = null; shardPartBuilder_ = null; } size_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_Part_descriptor; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part build() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part buildPartial() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part result = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part(this); if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } if (keyRangePartBuilder_ == null) { result.keyRangePart_ = keyRangePart_; } else { result.keyRangePart_ = keyRangePartBuilder_.build(); } if (shardPartBuilder_ == null) { result.shardPart_ = shardPart_; } else { result.shardPart_ = shardPartBuilder_.build(); } result.size_ = size_; 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.SplitQueryResponse.Part) { return mergeFrom((com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part other) { if (other == com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.getDefaultInstance()) return this; if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (other.hasKeyRangePart()) { mergeKeyRangePart(other.getKeyRangePart()); } if (other.hasShardPart()) { mergeShardPart(other.getShardPart()); } if (other.getSize() != 0L) { setSize(other.getSize()); } 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.SplitQueryResponse.Part parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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 com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart keyRangePart_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder> keyRangePartBuilder_; /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public boolean hasKeyRangePart() { return keyRangePartBuilder_ != null || keyRangePart_ != null; } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart getKeyRangePart() { if (keyRangePartBuilder_ == null) { return keyRangePart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.getDefaultInstance() : keyRangePart_; } else { return keyRangePartBuilder_.getMessage(); } } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public Builder setKeyRangePart(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart value) { if (keyRangePartBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyRangePart_ = value; onChanged(); } else { keyRangePartBuilder_.setMessage(value); } return this; } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public Builder setKeyRangePart( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder builderForValue) { if (keyRangePartBuilder_ == null) { keyRangePart_ = builderForValue.build(); onChanged(); } else { keyRangePartBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public Builder mergeKeyRangePart(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart value) { if (keyRangePartBuilder_ == null) { if (keyRangePart_ != null) { keyRangePart_ = com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.newBuilder(keyRangePart_).mergeFrom(value).buildPartial(); } else { keyRangePart_ = value; } onChanged(); } else { keyRangePartBuilder_.mergeFrom(value); } return this; } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public Builder clearKeyRangePart() { if (keyRangePartBuilder_ == null) { keyRangePart_ = null; onChanged(); } else { keyRangePart_ = null; keyRangePartBuilder_ = null; } return this; } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder getKeyRangePartBuilder() { onChanged(); return getKeyRangePartFieldBuilder().getBuilder(); } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder getKeyRangePartOrBuilder() { if (keyRangePartBuilder_ != null) { return keyRangePartBuilder_.getMessageOrBuilder(); } else { return keyRangePart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.getDefaultInstance() : keyRangePart_; } } /** *
         * key_range_part is set if the query should be executed by
         * ExecuteKeyRanges.
         * 
* * optional .vtgate.SplitQueryResponse.KeyRangePart key_range_part = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder> getKeyRangePartFieldBuilder() { if (keyRangePartBuilder_ == null) { keyRangePartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.KeyRangePartOrBuilder>( getKeyRangePart(), getParentForChildren(), isClean()); keyRangePart_ = null; } return keyRangePartBuilder_; } private com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart shardPart_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder> shardPartBuilder_; /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public boolean hasShardPart() { return shardPartBuilder_ != null || shardPart_ != null; } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart getShardPart() { if (shardPartBuilder_ == null) { return shardPart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.getDefaultInstance() : shardPart_; } else { return shardPartBuilder_.getMessage(); } } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public Builder setShardPart(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart value) { if (shardPartBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shardPart_ = value; onChanged(); } else { shardPartBuilder_.setMessage(value); } return this; } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public Builder setShardPart( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder builderForValue) { if (shardPartBuilder_ == null) { shardPart_ = builderForValue.build(); onChanged(); } else { shardPartBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public Builder mergeShardPart(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart value) { if (shardPartBuilder_ == null) { if (shardPart_ != null) { shardPart_ = com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.newBuilder(shardPart_).mergeFrom(value).buildPartial(); } else { shardPart_ = value; } onChanged(); } else { shardPartBuilder_.mergeFrom(value); } return this; } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public Builder clearShardPart() { if (shardPartBuilder_ == null) { shardPart_ = null; onChanged(); } else { shardPart_ = null; shardPartBuilder_ = null; } return this; } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder getShardPartBuilder() { onChanged(); return getShardPartFieldBuilder().getBuilder(); } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder getShardPartOrBuilder() { if (shardPartBuilder_ != null) { return shardPartBuilder_.getMessageOrBuilder(); } else { return shardPart_ == null ? com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.getDefaultInstance() : shardPart_; } } /** *
         * shard_part is set if the query should be executed by ExecuteShards.
         * 
* * optional .vtgate.SplitQueryResponse.ShardPart shard_part = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder> getShardPartFieldBuilder() { if (shardPartBuilder_ == null) { shardPartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPart.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.ShardPartOrBuilder>( getShardPart(), getParentForChildren(), isClean()); shardPart_ = null; } return shardPartBuilder_; } private long size_ ; /** *
         * size is the approximate number of rows this query will return.
         * 
* * optional int64 size = 4; */ public long getSize() { return size_; } /** *
         * size is the approximate number of rows this query will return.
         * 
* * optional int64 size = 4; */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
         * size is the approximate number of rows this query will return.
         * 
* * optional int64 size = 4; */ public Builder clearSize() { size_ = 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.SplitQueryResponse.Part) } // @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.Part) private static final com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part(); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Part parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Part(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.SplitQueryResponse.Part getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SPLITS_FIELD_NUMBER = 1; private java.util.List splits_; /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public java.util.List getSplitsList() { return splits_; } /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public java.util.List getSplitsOrBuilderList() { return splits_; } /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public int getSplitsCount() { return splits_.size(); } /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part getSplits(int index) { return splits_.get(index); } /** *
     * splits contains the queries to run to fetch the entire data set.
     * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder getSplitsOrBuilder( int index) { return splits_.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 { for (int i = 0; i < splits_.size(); i++) { output.writeMessage(1, splits_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < splits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, splits_.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.SplitQueryResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.SplitQueryResponse other = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse) obj; boolean result = true; result = result && getSplitsList() .equals(other.getSplitsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getSplitsCount() > 0) { hash = (37 * hash) + SPLITS_FIELD_NUMBER; hash = (53 * hash) + getSplitsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse 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.SplitQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse 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.SplitQueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse 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.SplitQueryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse 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.SplitQueryResponse 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.SplitQueryResponse 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.SplitQueryResponse 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; } /** *
     * SplitQueryResponse is the returned value from SplitQuery.
     * 
* * Protobuf type {@code vtgate.SplitQueryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.SplitQueryResponse) com.youtube.vitess.proto.Vtgate.SplitQueryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.class, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.SplitQueryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSplitsFieldBuilder(); } } public Builder clear() { super.clear(); if (splitsBuilder_ == null) { splits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { splitsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_SplitQueryResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.SplitQueryResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse build() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.SplitQueryResponse buildPartial() { com.youtube.vitess.proto.Vtgate.SplitQueryResponse result = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse(this); int from_bitField0_ = bitField0_; if (splitsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { splits_ = java.util.Collections.unmodifiableList(splits_); bitField0_ = (bitField0_ & ~0x00000001); } result.splits_ = splits_; } else { result.splits_ = splitsBuilder_.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.SplitQueryResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.SplitQueryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.SplitQueryResponse other) { if (other == com.youtube.vitess.proto.Vtgate.SplitQueryResponse.getDefaultInstance()) return this; if (splitsBuilder_ == null) { if (!other.splits_.isEmpty()) { if (splits_.isEmpty()) { splits_ = other.splits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSplitsIsMutable(); splits_.addAll(other.splits_); } onChanged(); } } else { if (!other.splits_.isEmpty()) { if (splitsBuilder_.isEmpty()) { splitsBuilder_.dispose(); splitsBuilder_ = null; splits_ = other.splits_; bitField0_ = (bitField0_ & ~0x00000001); splitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSplitsFieldBuilder() : null; } else { splitsBuilder_.addAllMessages(other.splits_); } } } 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.SplitQueryResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.SplitQueryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List splits_ = java.util.Collections.emptyList(); private void ensureSplitsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { splits_ = new java.util.ArrayList(splits_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder> splitsBuilder_; /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public java.util.List getSplitsList() { if (splitsBuilder_ == null) { return java.util.Collections.unmodifiableList(splits_); } else { return splitsBuilder_.getMessageList(); } } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public int getSplitsCount() { if (splitsBuilder_ == null) { return splits_.size(); } else { return splitsBuilder_.getCount(); } } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part getSplits(int index) { if (splitsBuilder_ == null) { return splits_.get(index); } else { return splitsBuilder_.getMessage(index); } } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder setSplits( int index, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part value) { if (splitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSplitsIsMutable(); splits_.set(index, value); onChanged(); } else { splitsBuilder_.setMessage(index, value); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder setSplits( int index, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder builderForValue) { if (splitsBuilder_ == null) { ensureSplitsIsMutable(); splits_.set(index, builderForValue.build()); onChanged(); } else { splitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder addSplits(com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part value) { if (splitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSplitsIsMutable(); splits_.add(value); onChanged(); } else { splitsBuilder_.addMessage(value); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder addSplits( int index, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part value) { if (splitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSplitsIsMutable(); splits_.add(index, value); onChanged(); } else { splitsBuilder_.addMessage(index, value); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder addSplits( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder builderForValue) { if (splitsBuilder_ == null) { ensureSplitsIsMutable(); splits_.add(builderForValue.build()); onChanged(); } else { splitsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder addSplits( int index, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder builderForValue) { if (splitsBuilder_ == null) { ensureSplitsIsMutable(); splits_.add(index, builderForValue.build()); onChanged(); } else { splitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder addAllSplits( java.lang.Iterable values) { if (splitsBuilder_ == null) { ensureSplitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, splits_); onChanged(); } else { splitsBuilder_.addAllMessages(values); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder clearSplits() { if (splitsBuilder_ == null) { splits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { splitsBuilder_.clear(); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public Builder removeSplits(int index) { if (splitsBuilder_ == null) { ensureSplitsIsMutable(); splits_.remove(index); onChanged(); } else { splitsBuilder_.remove(index); } return this; } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder getSplitsBuilder( int index) { return getSplitsFieldBuilder().getBuilder(index); } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder getSplitsOrBuilder( int index) { if (splitsBuilder_ == null) { return splits_.get(index); } else { return splitsBuilder_.getMessageOrBuilder(index); } } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public java.util.List getSplitsOrBuilderList() { if (splitsBuilder_ != null) { return splitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(splits_); } } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder addSplitsBuilder() { return getSplitsFieldBuilder().addBuilder( com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.getDefaultInstance()); } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder addSplitsBuilder( int index) { return getSplitsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.getDefaultInstance()); } /** *
       * splits contains the queries to run to fetch the entire data set.
       * 
* * repeated .vtgate.SplitQueryResponse.Part splits = 1; */ public java.util.List getSplitsBuilderList() { return getSplitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder> getSplitsFieldBuilder() { if (splitsBuilder_ == null) { splitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.Part.Builder, com.youtube.vitess.proto.Vtgate.SplitQueryResponse.PartOrBuilder>( splits_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); splits_ = null; } return splitsBuilder_; } 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.SplitQueryResponse) } // @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse) private static final com.youtube.vitess.proto.Vtgate.SplitQueryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.SplitQueryResponse(); } public static com.youtube.vitess.proto.Vtgate.SplitQueryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitQueryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitQueryResponse(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.SplitQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetSrvKeyspaceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.GetSrvKeyspaceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * keyspace name to fetch.
     * 
* * optional string keyspace = 1; */ java.lang.String getKeyspace(); /** *
     * keyspace name to fetch.
     * 
* * optional string keyspace = 1; */ com.google.protobuf.ByteString getKeyspaceBytes(); } /** *
   * GetSrvKeyspaceRequest is the payload to GetSrvKeyspace.
   * 
* * Protobuf type {@code vtgate.GetSrvKeyspaceRequest} */ public static final class GetSrvKeyspaceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.GetSrvKeyspaceRequest) GetSrvKeyspaceRequestOrBuilder { // Use GetSrvKeyspaceRequest.newBuilder() to construct. private GetSrvKeyspaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetSrvKeyspaceRequest() { keyspace_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetSrvKeyspaceRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.class, com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.Builder.class); } public static final int KEYSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object keyspace_; /** *
     * keyspace name to fetch.
     * 
* * optional string keyspace = 1; */ 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 name to fetch.
     * 
* * optional string keyspace = 1; */ 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; } } 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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_); } 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.GetSrvKeyspaceRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest other = (com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest) obj; boolean result = true; result = result && getKeyspace() .equals(other.getKeyspace()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest 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.GetSrvKeyspaceRequest 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; } /** *
     * GetSrvKeyspaceRequest is the payload to GetSrvKeyspace.
     * 
* * Protobuf type {@code vtgate.GetSrvKeyspaceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.GetSrvKeyspaceRequest) com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.class, com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.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(); keyspace_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest build() { com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest buildPartial() { com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest result = new com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest(this); result.keyspace_ = keyspace_; 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.GetSrvKeyspaceRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest other) { if (other == com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest.getDefaultInstance()) return this; if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; 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.GetSrvKeyspaceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object keyspace_ = ""; /** *
       * keyspace name to fetch.
       * 
* * optional string keyspace = 1; */ 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 name to fetch.
       * 
* * optional string keyspace = 1; */ 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 name to fetch.
       * 
* * optional string keyspace = 1; */ public Builder setKeyspace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyspace_ = value; onChanged(); return this; } /** *
       * keyspace name to fetch.
       * 
* * optional string keyspace = 1; */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** *
       * keyspace name to fetch.
       * 
* * optional string keyspace = 1; */ public Builder setKeyspaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyspace_ = 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.GetSrvKeyspaceRequest) } // @@protoc_insertion_point(class_scope:vtgate.GetSrvKeyspaceRequest) private static final com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest(); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetSrvKeyspaceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSrvKeyspaceRequest(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.GetSrvKeyspaceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetSrvKeyspaceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.GetSrvKeyspaceResponse) com.google.protobuf.MessageOrBuilder { /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ boolean hasSrvKeyspace(); /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ com.youtube.vitess.proto.Topodata.SrvKeyspace getSrvKeyspace(); /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder getSrvKeyspaceOrBuilder(); } /** *
   * GetSrvKeyspaceResponse is the returned value from GetSrvKeyspace.
   * 
* * Protobuf type {@code vtgate.GetSrvKeyspaceResponse} */ public static final class GetSrvKeyspaceResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.GetSrvKeyspaceResponse) GetSrvKeyspaceResponseOrBuilder { // Use GetSrvKeyspaceResponse.newBuilder() to construct. private GetSrvKeyspaceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetSrvKeyspaceResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetSrvKeyspaceResponse( 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.Topodata.SrvKeyspace.Builder subBuilder = null; if (srvKeyspace_ != null) { subBuilder = srvKeyspace_.toBuilder(); } srvKeyspace_ = input.readMessage(com.youtube.vitess.proto.Topodata.SrvKeyspace.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(srvKeyspace_); srvKeyspace_ = 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_GetSrvKeyspaceResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.class, com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.Builder.class); } public static final int SRV_KEYSPACE_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Topodata.SrvKeyspace srvKeyspace_; /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public boolean hasSrvKeyspace() { return srvKeyspace_ != null; } /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public com.youtube.vitess.proto.Topodata.SrvKeyspace getSrvKeyspace() { return srvKeyspace_ == null ? com.youtube.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance() : srvKeyspace_; } /** *
     * srv_keyspace is the topology object for the SrvKeyspace.
     * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder getSrvKeyspaceOrBuilder() { return getSrvKeyspace(); } 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 (srvKeyspace_ != null) { output.writeMessage(1, getSrvKeyspace()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (srvKeyspace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSrvKeyspace()); } 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.GetSrvKeyspaceResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse other = (com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse) obj; boolean result = true; result = result && (hasSrvKeyspace() == other.hasSrvKeyspace()); if (hasSrvKeyspace()) { result = result && getSrvKeyspace() .equals(other.getSrvKeyspace()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSrvKeyspace()) { hash = (37 * hash) + SRV_KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getSrvKeyspace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse 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.GetSrvKeyspaceResponse 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; } /** *
     * GetSrvKeyspaceResponse is the returned value from GetSrvKeyspace.
     * 
* * Protobuf type {@code vtgate.GetSrvKeyspaceResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.GetSrvKeyspaceResponse) com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.class, com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.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 (srvKeyspaceBuilder_ == null) { srvKeyspace_ = null; } else { srvKeyspace_ = null; srvKeyspaceBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_GetSrvKeyspaceResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse build() { com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse buildPartial() { com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse result = new com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse(this); if (srvKeyspaceBuilder_ == null) { result.srvKeyspace_ = srvKeyspace_; } else { result.srvKeyspace_ = srvKeyspaceBuilder_.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.GetSrvKeyspaceResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse other) { if (other == com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse.getDefaultInstance()) return this; if (other.hasSrvKeyspace()) { mergeSrvKeyspace(other.getSrvKeyspace()); } 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.GetSrvKeyspaceResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Topodata.SrvKeyspace srvKeyspace_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.SrvKeyspace, com.youtube.vitess.proto.Topodata.SrvKeyspace.Builder, com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder> srvKeyspaceBuilder_; /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public boolean hasSrvKeyspace() { return srvKeyspaceBuilder_ != null || srvKeyspace_ != null; } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public com.youtube.vitess.proto.Topodata.SrvKeyspace getSrvKeyspace() { if (srvKeyspaceBuilder_ == null) { return srvKeyspace_ == null ? com.youtube.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance() : srvKeyspace_; } else { return srvKeyspaceBuilder_.getMessage(); } } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public Builder setSrvKeyspace(com.youtube.vitess.proto.Topodata.SrvKeyspace value) { if (srvKeyspaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } srvKeyspace_ = value; onChanged(); } else { srvKeyspaceBuilder_.setMessage(value); } return this; } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public Builder setSrvKeyspace( com.youtube.vitess.proto.Topodata.SrvKeyspace.Builder builderForValue) { if (srvKeyspaceBuilder_ == null) { srvKeyspace_ = builderForValue.build(); onChanged(); } else { srvKeyspaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public Builder mergeSrvKeyspace(com.youtube.vitess.proto.Topodata.SrvKeyspace value) { if (srvKeyspaceBuilder_ == null) { if (srvKeyspace_ != null) { srvKeyspace_ = com.youtube.vitess.proto.Topodata.SrvKeyspace.newBuilder(srvKeyspace_).mergeFrom(value).buildPartial(); } else { srvKeyspace_ = value; } onChanged(); } else { srvKeyspaceBuilder_.mergeFrom(value); } return this; } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public Builder clearSrvKeyspace() { if (srvKeyspaceBuilder_ == null) { srvKeyspace_ = null; onChanged(); } else { srvKeyspace_ = null; srvKeyspaceBuilder_ = null; } return this; } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public com.youtube.vitess.proto.Topodata.SrvKeyspace.Builder getSrvKeyspaceBuilder() { onChanged(); return getSrvKeyspaceFieldBuilder().getBuilder(); } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ public com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder getSrvKeyspaceOrBuilder() { if (srvKeyspaceBuilder_ != null) { return srvKeyspaceBuilder_.getMessageOrBuilder(); } else { return srvKeyspace_ == null ? com.youtube.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance() : srvKeyspace_; } } /** *
       * srv_keyspace is the topology object for the SrvKeyspace.
       * 
* * optional .topodata.SrvKeyspace srv_keyspace = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.SrvKeyspace, com.youtube.vitess.proto.Topodata.SrvKeyspace.Builder, com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder> getSrvKeyspaceFieldBuilder() { if (srvKeyspaceBuilder_ == null) { srvKeyspaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.SrvKeyspace, com.youtube.vitess.proto.Topodata.SrvKeyspace.Builder, com.youtube.vitess.proto.Topodata.SrvKeyspaceOrBuilder>( getSrvKeyspace(), getParentForChildren(), isClean()); srvKeyspace_ = null; } return srvKeyspaceBuilder_; } 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.GetSrvKeyspaceResponse) } // @@protoc_insertion_point(class_scope:vtgate.GetSrvKeyspaceResponse) private static final com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse(); } public static com.youtube.vitess.proto.Vtgate.GetSrvKeyspaceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetSrvKeyspaceResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSrvKeyspaceResponse(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.GetSrvKeyspaceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.UpdateStreamRequest) 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(); /** *
     * 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(); /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ java.lang.String getShard(); /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ com.google.protobuf.ByteString getShardBytes(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ boolean hasKeyRange(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ com.youtube.vitess.proto.Topodata.KeyRange getKeyRange(); /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder(); /** *
     * tablet_type is the type of tablets that this request is targeted to.
     * 
* * optional .topodata.TabletType tablet_type = 5; */ int getTabletTypeValue(); /** *
     * tablet_type is the type of tablets that this request is targeted to.
     * 
* * optional .topodata.TabletType tablet_type = 5; */ com.youtube.vitess.proto.Topodata.TabletType getTabletType(); /** *
     * timestamp is the timestamp to start the stream from.  It is
     * unused is event is set, and we are only streaming from the shard
     * described by event.shard.
     * 
* * optional int64 timestamp = 6; */ long getTimestamp(); /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ boolean hasEvent(); /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ com.youtube.vitess.proto.Query.EventToken getEvent(); /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventOrBuilder(); } /** *
   * UpdateStreamRequest is the payload to UpdateStream.
   * 
* * Protobuf type {@code vtgate.UpdateStreamRequest} */ public static final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.UpdateStreamRequest) UpdateStreamRequestOrBuilder { // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateStreamRequest() { keyspace_ = ""; shard_ = ""; tabletType_ = 0; timestamp_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private UpdateStreamRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); keyspace_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); shard_ = s; break; } case 34: { com.youtube.vitess.proto.Topodata.KeyRange.Builder subBuilder = null; if (keyRange_ != null) { subBuilder = keyRange_.toBuilder(); } keyRange_ = input.readMessage(com.youtube.vitess.proto.Topodata.KeyRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keyRange_); keyRange_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); tabletType_ = rawValue; break; } case 48: { timestamp_ = input.readInt64(); break; } case 58: { com.youtube.vitess.proto.Query.EventToken.Builder subBuilder = null; if (event_ != null) { subBuilder = event_.toBuilder(); } event_ = input.readMessage(com.youtube.vitess.proto.Query.EventToken.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(event_); event_ = 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_UpdateStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.class, com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.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 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 SHARD_FIELD_NUMBER = 3; private volatile java.lang.Object shard_; /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ public java.lang.String getShard() { java.lang.Object ref = shard_; 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(); shard_ = s; return s; } } /** *
     * shard to target the query to, for unsharded keyspaces.
     * 
* * optional string shard = 3; */ public com.google.protobuf.ByteString getShardBytes() { java.lang.Object ref = shard_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shard_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_RANGE_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Topodata.KeyRange keyRange_; /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public boolean hasKeyRange() { return keyRange_ != null; } /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRange() { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } /** *
     * KeyRange to target the query to, for sharded keyspaces.
     * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder() { return getKeyRange(); } public static final int TABLET_TYPE_FIELD_NUMBER = 5; private int tabletType_; /** *
     * tablet_type is the type of tablets that this request is targeted to.
     * 
* * optional .topodata.TabletType tablet_type = 5; */ public int getTabletTypeValue() { return tabletType_; } /** *
     * tablet_type is the type of tablets that this request 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 TIMESTAMP_FIELD_NUMBER = 6; private long timestamp_; /** *
     * timestamp is the timestamp to start the stream from.  It is
     * unused is event is set, and we are only streaming from the shard
     * described by event.shard.
     * 
* * optional int64 timestamp = 6; */ public long getTimestamp() { return timestamp_; } public static final int EVENT_FIELD_NUMBER = 7; private com.youtube.vitess.proto.Query.EventToken event_; /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ public boolean hasEvent() { return event_ != null; } /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ public com.youtube.vitess.proto.Query.EventToken getEvent() { return event_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : event_; } /** *
     * event is the event to start the stream from.
     * Note it is only used if we are streaming from exactly the same shard
     * as this event was coming from. Otherwise we can't use this event,
     * and will use the timestamp as a starting point.
     * 
* * optional .query.EventToken event = 7; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventOrBuilder() { return getEvent(); } 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 (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shard_); } if (keyRange_ != null) { output.writeMessage(4, getKeyRange()); } if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(5, tabletType_); } if (timestamp_ != 0L) { output.writeInt64(6, timestamp_); } if (event_ != null) { output.writeMessage(7, getEvent()); } } 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 (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shard_); } if (keyRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKeyRange()); } if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, tabletType_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, timestamp_); } if (event_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getEvent()); } 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.UpdateStreamRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.UpdateStreamRequest other = (com.youtube.vitess.proto.Vtgate.UpdateStreamRequest) obj; boolean result = true; result = result && (hasCallerId() == other.hasCallerId()); if (hasCallerId()) { result = result && getCallerId() .equals(other.getCallerId()); } result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); } result = result && tabletType_ == other.tabletType_; result = result && (getTimestamp() == other.getTimestamp()); result = result && (hasEvent() == other.hasEvent()); if (hasEvent()) { result = result && getEvent() .equals(other.getEvent()); } 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(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); } hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER; hash = (53 * hash) + tabletType_; hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); if (hasEvent()) { hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest 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.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest 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.UpdateStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest 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.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest 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.UpdateStreamRequest 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.UpdateStreamRequest 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.UpdateStreamRequest 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; } /** *
     * UpdateStreamRequest is the payload to UpdateStream.
     * 
* * Protobuf type {@code vtgate.UpdateStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.UpdateStreamRequest) com.youtube.vitess.proto.Vtgate.UpdateStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.class, com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.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; } keyspace_ = ""; shard_ = ""; if (keyRangeBuilder_ == null) { keyRange_ = null; } else { keyRange_ = null; keyRangeBuilder_ = null; } tabletType_ = 0; timestamp_ = 0L; if (eventBuilder_ == null) { event_ = null; } else { event_ = null; eventBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamRequest_descriptor; } public com.youtube.vitess.proto.Vtgate.UpdateStreamRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.UpdateStreamRequest build() { com.youtube.vitess.proto.Vtgate.UpdateStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.UpdateStreamRequest buildPartial() { com.youtube.vitess.proto.Vtgate.UpdateStreamRequest result = new com.youtube.vitess.proto.Vtgate.UpdateStreamRequest(this); if (callerIdBuilder_ == null) { result.callerId_ = callerId_; } else { result.callerId_ = callerIdBuilder_.build(); } result.keyspace_ = keyspace_; result.shard_ = shard_; if (keyRangeBuilder_ == null) { result.keyRange_ = keyRange_; } else { result.keyRange_ = keyRangeBuilder_.build(); } result.tabletType_ = tabletType_; result.timestamp_ = timestamp_; if (eventBuilder_ == null) { result.event_ = event_; } else { result.event_ = eventBuilder_.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.UpdateStreamRequest) { return mergeFrom((com.youtube.vitess.proto.Vtgate.UpdateStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.UpdateStreamRequest other) { if (other == com.youtube.vitess.proto.Vtgate.UpdateStreamRequest.getDefaultInstance()) return this; if (other.hasCallerId()) { mergeCallerId(other.getCallerId()); } if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); } if (other.hasKeyRange()) { mergeKeyRange(other.getKeyRange()); } if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.hasEvent()) { mergeEvent(other.getEvent()); } 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.UpdateStreamRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.UpdateStreamRequest) 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 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.lang.Object shard_ = ""; /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public java.lang.String getShard() { java.lang.Object ref = shard_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shard_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public com.google.protobuf.ByteString getShardBytes() { java.lang.Object ref = shard_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shard_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder setShard( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shard_ = value; onChanged(); return this; } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /** *
       * shard to target the query to, for unsharded keyspaces.
       * 
* * optional string shard = 3; */ public Builder setShardBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shard_ = value; onChanged(); return this; } private com.youtube.vitess.proto.Topodata.KeyRange keyRange_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> keyRangeBuilder_; /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public boolean hasKeyRange() { return keyRangeBuilder_ != null || keyRange_ != null; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange getKeyRange() { if (keyRangeBuilder_ == null) { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } else { return keyRangeBuilder_.getMessage(); } } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder setKeyRange(com.youtube.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyRange_ = value; onChanged(); } else { keyRangeBuilder_.setMessage(value); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder setKeyRange( com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) { if (keyRangeBuilder_ == null) { keyRange_ = builderForValue.build(); onChanged(); } else { keyRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder mergeKeyRange(com.youtube.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (keyRange_ != null) { keyRange_ = com.youtube.vitess.proto.Topodata.KeyRange.newBuilder(keyRange_).mergeFrom(value).buildPartial(); } else { keyRange_ = value; } onChanged(); } else { keyRangeBuilder_.mergeFrom(value); } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public Builder clearKeyRange() { if (keyRangeBuilder_ == null) { keyRange_ = null; onChanged(); } else { keyRange_ = null; keyRangeBuilder_ = null; } return this; } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRange.Builder getKeyRangeBuilder() { onChanged(); return getKeyRangeFieldBuilder().getBuilder(); } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder() { if (keyRangeBuilder_ != null) { return keyRangeBuilder_.getMessageOrBuilder(); } else { return keyRange_ == null ? com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } } /** *
       * KeyRange to target the query to, for sharded keyspaces.
       * 
* * optional .topodata.KeyRange key_range = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> getKeyRangeFieldBuilder() { if (keyRangeBuilder_ == null) { keyRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>( getKeyRange(), getParentForChildren(), isClean()); keyRange_ = null; } return keyRangeBuilder_; } private int tabletType_ = 0; /** *
       * tablet_type is the type of tablets that this request is targeted to.
       * 
* * optional .topodata.TabletType tablet_type = 5; */ public int getTabletTypeValue() { return tabletType_; } /** *
       * tablet_type is the type of tablets that this request 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 request 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 request 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 request is targeted to.
       * 
* * optional .topodata.TabletType tablet_type = 5; */ public Builder clearTabletType() { tabletType_ = 0; onChanged(); return this; } private long timestamp_ ; /** *
       * timestamp is the timestamp to start the stream from.  It is
       * unused is event is set, and we are only streaming from the shard
       * described by event.shard.
       * 
* * optional int64 timestamp = 6; */ public long getTimestamp() { return timestamp_; } /** *
       * timestamp is the timestamp to start the stream from.  It is
       * unused is event is set, and we are only streaming from the shard
       * described by event.shard.
       * 
* * optional int64 timestamp = 6; */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
       * timestamp is the timestamp to start the stream from.  It is
       * unused is event is set, and we are only streaming from the shard
       * described by event.shard.
       * 
* * optional int64 timestamp = 6; */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private com.youtube.vitess.proto.Query.EventToken event_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder> eventBuilder_; /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public boolean hasEvent() { return eventBuilder_ != null || event_ != null; } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public com.youtube.vitess.proto.Query.EventToken getEvent() { if (eventBuilder_ == null) { return event_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : event_; } else { return eventBuilder_.getMessage(); } } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public Builder setEvent(com.youtube.vitess.proto.Query.EventToken value) { if (eventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { eventBuilder_.setMessage(value); } return this; } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public Builder setEvent( com.youtube.vitess.proto.Query.EventToken.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { eventBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public Builder mergeEvent(com.youtube.vitess.proto.Query.EventToken value) { if (eventBuilder_ == null) { if (event_ != null) { event_ = com.youtube.vitess.proto.Query.EventToken.newBuilder(event_).mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { eventBuilder_.mergeFrom(value); } return this; } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public Builder clearEvent() { if (eventBuilder_ == null) { event_ = null; onChanged(); } else { event_ = null; eventBuilder_ = null; } return this; } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public com.youtube.vitess.proto.Query.EventToken.Builder getEventBuilder() { onChanged(); return getEventFieldBuilder().getBuilder(); } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { return event_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : event_; } } /** *
       * event is the event to start the stream from.
       * Note it is only used if we are streaming from exactly the same shard
       * as this event was coming from. Otherwise we can't use this event,
       * and will use the timestamp as a starting point.
       * 
* * optional .query.EventToken event = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder>( getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; } 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.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:vtgate.UpdateStreamRequest) private static final com.youtube.vitess.proto.Vtgate.UpdateStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.UpdateStreamRequest(); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateStreamRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateStreamRequest(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.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateStreamResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:vtgate.UpdateStreamResponse) com.google.protobuf.MessageOrBuilder { /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ boolean hasEvent(); /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ com.youtube.vitess.proto.Query.StreamEvent getEvent(); /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ com.youtube.vitess.proto.Query.StreamEventOrBuilder getEventOrBuilder(); /** *
     * resume_timestamp is the timestamp to resume streaming from if the
     * client is interrupted. If the Update Stream only goes to one
     * shard, this is equal to event.timestamp. If the Update Stream
     * goes to multiple shards and aggregates, this is the minimum value
     * of the current timestamp for all shards.
     * 
* * optional int64 resume_timestamp = 2; */ long getResumeTimestamp(); } /** *
   * UpdateStreamResponse is streamed by UpdateStream.
   * 
* * Protobuf type {@code vtgate.UpdateStreamResponse} */ public static final class UpdateStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vtgate.UpdateStreamResponse) UpdateStreamResponseOrBuilder { // Use UpdateStreamResponse.newBuilder() to construct. private UpdateStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateStreamResponse() { resumeTimestamp_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private UpdateStreamResponse( 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.StreamEvent.Builder subBuilder = null; if (event_ != null) { subBuilder = event_.toBuilder(); } event_ = input.readMessage(com.youtube.vitess.proto.Query.StreamEvent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(event_); event_ = subBuilder.buildPartial(); } break; } case 16: { resumeTimestamp_ = 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_UpdateStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.class, com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.Builder.class); } public static final int EVENT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.StreamEvent event_; /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ public boolean hasEvent() { return event_ != null; } /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEvent getEvent() { return event_ == null ? com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance() : event_; } /** *
     * event is one event from the stream.
     * 
* * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEventOrBuilder getEventOrBuilder() { return getEvent(); } public static final int RESUME_TIMESTAMP_FIELD_NUMBER = 2; private long resumeTimestamp_; /** *
     * resume_timestamp is the timestamp to resume streaming from if the
     * client is interrupted. If the Update Stream only goes to one
     * shard, this is equal to event.timestamp. If the Update Stream
     * goes to multiple shards and aggregates, this is the minimum value
     * of the current timestamp for all shards.
     * 
* * optional int64 resume_timestamp = 2; */ public long getResumeTimestamp() { return resumeTimestamp_; } 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 (event_ != null) { output.writeMessage(1, getEvent()); } if (resumeTimestamp_ != 0L) { output.writeInt64(2, resumeTimestamp_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (event_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEvent()); } if (resumeTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, resumeTimestamp_); } 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.UpdateStreamResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Vtgate.UpdateStreamResponse other = (com.youtube.vitess.proto.Vtgate.UpdateStreamResponse) obj; boolean result = true; result = result && (hasEvent() == other.hasEvent()); if (hasEvent()) { result = result && getEvent() .equals(other.getEvent()); } result = result && (getResumeTimestamp() == other.getResumeTimestamp()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEvent()) { hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); } hash = (37 * hash) + RESUME_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResumeTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse 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.UpdateStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse 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.UpdateStreamResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse 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.UpdateStreamResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse 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.UpdateStreamResponse 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.UpdateStreamResponse 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.UpdateStreamResponse 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; } /** *
     * UpdateStreamResponse is streamed by UpdateStream.
     * 
* * Protobuf type {@code vtgate.UpdateStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vtgate.UpdateStreamResponse) com.youtube.vitess.proto.Vtgate.UpdateStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.class, com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.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 (eventBuilder_ == null) { event_ = null; } else { event_ = null; eventBuilder_ = null; } resumeTimestamp_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_UpdateStreamResponse_descriptor; } public com.youtube.vitess.proto.Vtgate.UpdateStreamResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Vtgate.UpdateStreamResponse build() { com.youtube.vitess.proto.Vtgate.UpdateStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Vtgate.UpdateStreamResponse buildPartial() { com.youtube.vitess.proto.Vtgate.UpdateStreamResponse result = new com.youtube.vitess.proto.Vtgate.UpdateStreamResponse(this); if (eventBuilder_ == null) { result.event_ = event_; } else { result.event_ = eventBuilder_.build(); } result.resumeTimestamp_ = resumeTimestamp_; 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.UpdateStreamResponse) { return mergeFrom((com.youtube.vitess.proto.Vtgate.UpdateStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.UpdateStreamResponse other) { if (other == com.youtube.vitess.proto.Vtgate.UpdateStreamResponse.getDefaultInstance()) return this; if (other.hasEvent()) { mergeEvent(other.getEvent()); } if (other.getResumeTimestamp() != 0L) { setResumeTimestamp(other.getResumeTimestamp()); } 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.UpdateStreamResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Vtgate.UpdateStreamResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Query.StreamEvent event_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent, com.youtube.vitess.proto.Query.StreamEvent.Builder, com.youtube.vitess.proto.Query.StreamEventOrBuilder> eventBuilder_; /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public boolean hasEvent() { return eventBuilder_ != null || event_ != null; } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEvent getEvent() { if (eventBuilder_ == null) { return event_ == null ? com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance() : event_; } else { return eventBuilder_.getMessage(); } } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public Builder setEvent(com.youtube.vitess.proto.Query.StreamEvent value) { if (eventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { eventBuilder_.setMessage(value); } return this; } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public Builder setEvent( com.youtube.vitess.proto.Query.StreamEvent.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { eventBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public Builder mergeEvent(com.youtube.vitess.proto.Query.StreamEvent value) { if (eventBuilder_ == null) { if (event_ != null) { event_ = com.youtube.vitess.proto.Query.StreamEvent.newBuilder(event_).mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { eventBuilder_.mergeFrom(value); } return this; } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public Builder clearEvent() { if (eventBuilder_ == null) { event_ = null; onChanged(); } else { event_ = null; eventBuilder_ = null; } return this; } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Builder getEventBuilder() { onChanged(); return getEventFieldBuilder().getBuilder(); } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEventOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { return event_ == null ? com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance() : event_; } } /** *
       * event is one event from the stream.
       * 
* * optional .query.StreamEvent event = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent, com.youtube.vitess.proto.Query.StreamEvent.Builder, com.youtube.vitess.proto.Query.StreamEventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent, com.youtube.vitess.proto.Query.StreamEvent.Builder, com.youtube.vitess.proto.Query.StreamEventOrBuilder>( getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; } private long resumeTimestamp_ ; /** *
       * resume_timestamp is the timestamp to resume streaming from if the
       * client is interrupted. If the Update Stream only goes to one
       * shard, this is equal to event.timestamp. If the Update Stream
       * goes to multiple shards and aggregates, this is the minimum value
       * of the current timestamp for all shards.
       * 
* * optional int64 resume_timestamp = 2; */ public long getResumeTimestamp() { return resumeTimestamp_; } /** *
       * resume_timestamp is the timestamp to resume streaming from if the
       * client is interrupted. If the Update Stream only goes to one
       * shard, this is equal to event.timestamp. If the Update Stream
       * goes to multiple shards and aggregates, this is the minimum value
       * of the current timestamp for all shards.
       * 
* * optional int64 resume_timestamp = 2; */ public Builder setResumeTimestamp(long value) { resumeTimestamp_ = value; onChanged(); return this; } /** *
       * resume_timestamp is the timestamp to resume streaming from if the
       * client is interrupted. If the Update Stream only goes to one
       * shard, this is equal to event.timestamp. If the Update Stream
       * goes to multiple shards and aggregates, this is the minimum value
       * of the current timestamp for all shards.
       * 
* * optional int64 resume_timestamp = 2; */ public Builder clearResumeTimestamp() { resumeTimestamp_ = 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.UpdateStreamResponse) } // @@protoc_insertion_point(class_scope:vtgate.UpdateStreamResponse) private static final com.youtube.vitess.proto.Vtgate.UpdateStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.UpdateStreamResponse(); } public static com.youtube.vitess.proto.Vtgate.UpdateStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateStreamResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateStreamResponse(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.UpdateStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_Session_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_Session_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_Session_ShardSession_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_Session_ShardSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteShardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteShardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteShardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteShardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteKeyspaceIdsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteKeyspaceIdsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteKeyRangesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteKeyRangesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteKeyRangesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteKeyRangesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteEntityIdsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteEntityIdsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteEntityIdsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteEntityIdsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_BoundShardQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_BoundShardQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchShardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchShardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchShardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchShardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_BoundKeyspaceIdQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_BoundKeyspaceIdQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteShardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteShardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteShardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteShardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteKeyRangesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_StreamExecuteKeyRangesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_BeginRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_BeginRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_BeginResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_BeginResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_CommitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_CommitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_CommitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_CommitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_RollbackRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_RollbackRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_RollbackResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_RollbackResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ResolveTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ResolveTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_MessageStreamRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_MessageStreamRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_MessageAckRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_MessageAckRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_ResolveTransactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_ResolveTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_SplitQueryRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_SplitQueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_SplitQueryResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_SplitQueryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_SplitQueryResponse_KeyRangePart_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_SplitQueryResponse_KeyRangePart_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_SplitQueryResponse_ShardPart_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_SplitQueryResponse_Part_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_SplitQueryResponse_Part_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_GetSrvKeyspaceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_GetSrvKeyspaceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_GetSrvKeyspaceResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_GetSrvKeyspaceResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_UpdateStreamRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_UpdateStreamRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vtgate_UpdateStreamResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vtgate_UpdateStreamResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\014vtgate.proto\022\006vtgate\032\013query.proto\032\016top" + "odata.proto\032\013vtrpc.proto\"\305\001\n\007Session\022\026\n\016" + "in_transaction\030\001 \001(\010\0224\n\016shard_sessions\030\002" + " \003(\0132\034.vtgate.Session.ShardSession\022\021\n\tsi" + "ngle_db\030\003 \001(\010\022\022\n\nautocommit\030\004 \001(\010\032E\n\014Sha" + "rdSession\022\035\n\006target\030\001 \001(\0132\r.query.Target" + "\022\026\n\016transaction_id\030\002 \001(\003\"\377\001\n\016ExecuteRequ" + "est\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022" + " \n\007session\030\002 \001(\0132\017.vtgate.Session\022 \n\005que" + "ry\030\003 \001(\0132\021.query.BoundQuery\022)\n\013tablet_ty", "pe\030\004 \001(\0162\024.topodata.TabletType\022\032\n\022not_in" + "_transaction\030\005 \001(\010\022\026\n\016keyspace_shard\030\006 \001" + "(\t\022&\n\007options\030\007 \001(\0132\025.query.ExecuteOptio" + "ns\"w\n\017ExecuteResponse\022\036\n\005error\030\001 \001(\0132\017.v" + "trpc.RPCError\022 \n\007session\030\002 \001(\0132\017.vtgate." + "Session\022\"\n\006result\030\003 \001(\0132\022.query.QueryRes" + "ult\"\217\002\n\024ExecuteShardsRequest\022\"\n\tcaller_i" + "d\030\001 \001(\0132\017.vtrpc.CallerID\022 \n\007session\030\002 \001(" + "\0132\017.vtgate.Session\022 \n\005query\030\003 \001(\0132\021.quer" + "y.BoundQuery\022\020\n\010keyspace\030\004 \001(\t\022\016\n\006shards", "\030\005 \003(\t\022)\n\013tablet_type\030\006 \001(\0162\024.topodata.T" + "abletType\022\032\n\022not_in_transaction\030\007 \001(\010\022&\n" + "\007options\030\010 \001(\0132\025.query.ExecuteOptions\"}\n" + "\025ExecuteShardsResponse\022\036\n\005error\030\001 \001(\0132\017." + "vtrpc.RPCError\022 \n\007session\030\002 \001(\0132\017.vtgate" + ".Session\022\"\n\006result\030\003 \001(\0132\022.query.QueryRe" + "sult\"\232\002\n\031ExecuteKeyspaceIdsRequest\022\"\n\tca" + "ller_id\030\001 \001(\0132\017.vtrpc.CallerID\022 \n\007sessio" + "n\030\002 \001(\0132\017.vtgate.Session\022 \n\005query\030\003 \001(\0132" + "\021.query.BoundQuery\022\020\n\010keyspace\030\004 \001(\t\022\024\n\014", "keyspace_ids\030\005 \003(\014\022)\n\013tablet_type\030\006 \001(\0162" + "\024.topodata.TabletType\022\032\n\022not_in_transact" + "ion\030\007 \001(\010\022&\n\007options\030\010 \001(\0132\025.query.Execu" + "teOptions\"\202\001\n\032ExecuteKeyspaceIdsResponse" + "\022\036\n\005error\030\001 \001(\0132\017.vtrpc.RPCError\022 \n\007sess" + "ion\030\002 \001(\0132\017.vtgate.Session\022\"\n\006result\030\003 \001" + "(\0132\022.query.QueryResult\"\252\002\n\027ExecuteKeyRan" + "gesRequest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.Ca" + "llerID\022 \n\007session\030\002 \001(\0132\017.vtgate.Session" + "\022 \n\005query\030\003 \001(\0132\021.query.BoundQuery\022\020\n\010ke", "yspace\030\004 \001(\t\022&\n\nkey_ranges\030\005 \003(\0132\022.topod" + "ata.KeyRange\022)\n\013tablet_type\030\006 \001(\0162\024.topo" + "data.TabletType\022\032\n\022not_in_transaction\030\007 " + "\001(\010\022&\n\007options\030\010 \001(\0132\025.query.ExecuteOpti" + "ons\"\200\001\n\030ExecuteKeyRangesResponse\022\036\n\005erro" + "r\030\001 \001(\0132\017.vtrpc.RPCError\022 \n\007session\030\002 \001(" + "\0132\017.vtgate.Session\022\"\n\006result\030\003 \001(\0132\022.que" + "ry.QueryResult\"\260\003\n\027ExecuteEntityIdsReque" + "st\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022 " + "\n\007session\030\002 \001(\0132\017.vtgate.Session\022 \n\005quer", "y\030\003 \001(\0132\021.query.BoundQuery\022\020\n\010keyspace\030\004" + " \001(\t\022\032\n\022entity_column_name\030\005 \001(\t\022E\n\023enti" + "ty_keyspace_ids\030\006 \003(\0132(.vtgate.ExecuteEn" + "tityIdsRequest.EntityId\022)\n\013tablet_type\030\007" + " \001(\0162\024.topodata.TabletType\022\032\n\022not_in_tra" + "nsaction\030\010 \001(\010\022&\n\007options\030\t \001(\0132\025.query." + "ExecuteOptions\032I\n\010EntityId\022\031\n\004type\030\001 \001(\016" + "2\013.query.Type\022\r\n\005value\030\002 \001(\014\022\023\n\013keyspace" + "_id\030\003 \001(\014\"\200\001\n\030ExecuteEntityIdsResponse\022\036" + "\n\005error\030\001 \001(\0132\017.vtrpc.RPCError\022 \n\007sessio", "n\030\002 \001(\0132\017.vtgate.Session\022\"\n\006result\030\003 \001(\013" + "2\022.query.QueryResult\"\202\002\n\023ExecuteBatchReq" + "uest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID" + "\022 \n\007session\030\002 \001(\0132\017.vtgate.Session\022\"\n\007qu" + "eries\030\003 \003(\0132\021.query.BoundQuery\022)\n\013tablet" + "_type\030\004 \001(\0162\024.topodata.TabletType\022\026\n\016as_" + "transaction\030\005 \001(\010\022\026\n\016keyspace_shard\030\006 \001(" + "\t\022&\n\007options\030\007 \001(\0132\025.query.ExecuteOption" + "s\"\201\001\n\024ExecuteBatchResponse\022\036\n\005error\030\001 \001(" + "\0132\017.vtrpc.RPCError\022 \n\007session\030\002 \001(\0132\017.vt", "gate.Session\022\'\n\007results\030\003 \003(\0132\026.query.Re" + "sultWithError\"U\n\017BoundShardQuery\022 \n\005quer" + "y\030\001 \001(\0132\021.query.BoundQuery\022\020\n\010keyspace\030\002" + " \001(\t\022\016\n\006shards\030\003 \003(\t\"\366\001\n\031ExecuteBatchSha" + "rdsRequest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.Ca" + "llerID\022 \n\007session\030\002 \001(\0132\017.vtgate.Session" + "\022(\n\007queries\030\003 \003(\0132\027.vtgate.BoundShardQue" + "ry\022)\n\013tablet_type\030\004 \001(\0162\024.topodata.Table" + "tType\022\026\n\016as_transaction\030\005 \001(\010\022&\n\007options" + "\030\006 \001(\0132\025.query.ExecuteOptions\"\203\001\n\032Execut", "eBatchShardsResponse\022\036\n\005error\030\001 \001(\0132\017.vt" + "rpc.RPCError\022 \n\007session\030\002 \001(\0132\017.vtgate.S" + "ession\022#\n\007results\030\003 \003(\0132\022.query.QueryRes" + "ult\"`\n\024BoundKeyspaceIdQuery\022 \n\005query\030\001 \001" + "(\0132\021.query.BoundQuery\022\020\n\010keyspace\030\002 \001(\t\022" + "\024\n\014keyspace_ids\030\003 \003(\014\"\200\002\n\036ExecuteBatchKe" + "yspaceIdsRequest\022\"\n\tcaller_id\030\001 \001(\0132\017.vt" + "rpc.CallerID\022 \n\007session\030\002 \001(\0132\017.vtgate.S" + "ession\022-\n\007queries\030\003 \003(\0132\034.vtgate.BoundKe" + "yspaceIdQuery\022)\n\013tablet_type\030\004 \001(\0162\024.top", "odata.TabletType\022\026\n\016as_transaction\030\005 \001(\010" + "\022&\n\007options\030\006 \001(\0132\025.query.ExecuteOptions" + "\"\210\001\n\037ExecuteBatchKeyspaceIdsResponse\022\036\n\005" + "error\030\001 \001(\0132\017.vtrpc.RPCError\022 \n\007session\030" + "\002 \001(\0132\017.vtgate.Session\022#\n\007results\030\003 \003(\0132" + "\022.query.QueryResult\"\307\001\n\024StreamExecuteReq" + "uest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID" + "\022 \n\005query\030\002 \001(\0132\021.query.BoundQuery\022)\n\013ta" + "blet_type\030\003 \001(\0162\024.topodata.TabletType\022\026\n" + "\016keyspace_shard\030\004 \001(\t\022&\n\007options\030\005 \001(\0132\025", ".query.ExecuteOptions\";\n\025StreamExecuteRe" + "sponse\022\"\n\006result\030\001 \001(\0132\022.query.QueryResu" + "lt\"\327\001\n\032StreamExecuteShardsRequest\022\"\n\tcal" + "ler_id\030\001 \001(\0132\017.vtrpc.CallerID\022 \n\005query\030\002" + " \001(\0132\021.query.BoundQuery\022\020\n\010keyspace\030\003 \001(" + "\t\022\016\n\006shards\030\004 \003(\t\022)\n\013tablet_type\030\005 \001(\0162\024" + ".topodata.TabletType\022&\n\007options\030\006 \001(\0132\025." + "query.ExecuteOptions\"A\n\033StreamExecuteSha" + "rdsResponse\022\"\n\006result\030\001 \001(\0132\022.query.Quer" + "yResult\"\342\001\n\037StreamExecuteKeyspaceIdsRequ", "est\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022" + " \n\005query\030\002 \001(\0132\021.query.BoundQuery\022\020\n\010key" + "space\030\003 \001(\t\022\024\n\014keyspace_ids\030\004 \003(\014\022)\n\013tab" + "let_type\030\005 \001(\0162\024.topodata.TabletType\022&\n\007" + "options\030\006 \001(\0132\025.query.ExecuteOptions\"F\n " + "StreamExecuteKeyspaceIdsResponse\022\"\n\006resu" + "lt\030\001 \001(\0132\022.query.QueryResult\"\362\001\n\035StreamE" + "xecuteKeyRangesRequest\022\"\n\tcaller_id\030\001 \001(" + "\0132\017.vtrpc.CallerID\022 \n\005query\030\002 \001(\0132\021.quer" + "y.BoundQuery\022\020\n\010keyspace\030\003 \001(\t\022&\n\nkey_ra", "nges\030\004 \003(\0132\022.topodata.KeyRange\022)\n\013tablet" + "_type\030\005 \001(\0162\024.topodata.TabletType\022&\n\007opt" + "ions\030\006 \001(\0132\025.query.ExecuteOptions\"D\n\036Str" + "eamExecuteKeyRangesResponse\022\"\n\006result\030\001 " + "\001(\0132\022.query.QueryResult\"E\n\014BeginRequest\022" + "\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022\021\n\ts" + "ingle_db\030\002 \001(\010\"1\n\rBeginResponse\022 \n\007sessi" + "on\030\001 \001(\0132\017.vtgate.Session\"e\n\rCommitReque" + "st\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022 " + "\n\007session\030\002 \001(\0132\017.vtgate.Session\022\016\n\006atom", "ic\030\003 \001(\010\"\020\n\016CommitResponse\"W\n\017RollbackRe" + "quest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerI" + "D\022 \n\007session\030\002 \001(\0132\017.vtgate.Session\"\022\n\020R" + "ollbackResponse\"M\n\031ResolveTransactionReq" + "uest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID" + "\022\014\n\004dtid\030\002 \001(\t\"\220\001\n\024MessageStreamRequest\022" + "\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.CallerID\022\020\n\010k" + "eyspace\030\002 \001(\t\022\r\n\005shard\030\003 \001(\t\022%\n\tkey_rang" + "e\030\004 \001(\0132\022.topodata.KeyRange\022\014\n\004name\030\005 \001(" + "\t\"r\n\021MessageAckRequest\022\"\n\tcaller_id\030\001 \001(", "\0132\017.vtrpc.CallerID\022\020\n\010keyspace\030\002 \001(\t\022\014\n\004" + "name\030\003 \001(\t\022\031\n\003ids\030\004 \003(\0132\014.query.Value\"\034\n" + "\032ResolveTransactionResponse\"\212\002\n\021SplitQue" + "ryRequest\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.Cal" + "lerID\022\020\n\010keyspace\030\002 \001(\t\022 \n\005query\030\003 \001(\0132\021" + ".query.BoundQuery\022\024\n\014split_column\030\004 \003(\t\022" + "\023\n\013split_count\030\005 \001(\003\022\037\n\027num_rows_per_que" + "ry_part\030\006 \001(\003\0225\n\talgorithm\030\007 \001(\0162\".query" + ".SplitQueryRequest.Algorithm\022\032\n\022use_spli" + "t_query_v2\030\010 \001(\010\"\362\002\n\022SplitQueryResponse\022", "/\n\006splits\030\001 \003(\0132\037.vtgate.SplitQueryRespo" + "nse.Part\032H\n\014KeyRangePart\022\020\n\010keyspace\030\001 \001" + "(\t\022&\n\nkey_ranges\030\002 \003(\0132\022.topodata.KeyRan" + "ge\032-\n\tShardPart\022\020\n\010keyspace\030\001 \001(\t\022\016\n\006sha" + "rds\030\002 \003(\t\032\261\001\n\004Part\022 \n\005query\030\001 \001(\0132\021.quer" + "y.BoundQuery\022?\n\016key_range_part\030\002 \001(\0132\'.v" + "tgate.SplitQueryResponse.KeyRangePart\0228\n" + "\nshard_part\030\003 \001(\0132$.vtgate.SplitQueryRes" + "ponse.ShardPart\022\014\n\004size\030\004 \001(\003\")\n\025GetSrvK" + "eyspaceRequest\022\020\n\010keyspace\030\001 \001(\t\"E\n\026GetS", "rvKeyspaceResponse\022+\n\014srv_keyspace\030\001 \001(\013" + "2\025.topodata.SrvKeyspace\"\341\001\n\023UpdateStream" + "Request\022\"\n\tcaller_id\030\001 \001(\0132\017.vtrpc.Calle" + "rID\022\020\n\010keyspace\030\002 \001(\t\022\r\n\005shard\030\003 \001(\t\022%\n\t" + "key_range\030\004 \001(\0132\022.topodata.KeyRange\022)\n\013t" + "ablet_type\030\005 \001(\0162\024.topodata.TabletType\022\021" + "\n\ttimestamp\030\006 \001(\003\022 \n\005event\030\007 \001(\0132\021.query" + ".EventToken\"S\n\024UpdateStreamResponse\022!\n\005e" + "vent\030\001 \001(\0132\022.query.StreamEvent\022\030\n\020resume" + "_timestamp\030\002 \001(\003B\032\n\030com.youtube.vitess.p", "rotob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.youtube.vitess.proto.Query.getDescriptor(), com.youtube.vitess.proto.Topodata.getDescriptor(), com.youtube.vitess.proto.Vtrpc.getDescriptor(), }, assigner); internal_static_vtgate_Session_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_vtgate_Session_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_Session_descriptor, new java.lang.String[] { "InTransaction", "ShardSessions", "SingleDb", "Autocommit", }); internal_static_vtgate_Session_ShardSession_descriptor = internal_static_vtgate_Session_descriptor.getNestedTypes().get(0); internal_static_vtgate_Session_ShardSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_Session_ShardSession_descriptor, new java.lang.String[] { "Target", "TransactionId", }); internal_static_vtgate_ExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_vtgate_ExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Query", "TabletType", "NotInTransaction", "KeyspaceShard", "Options", }); internal_static_vtgate_ExecuteResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_vtgate_ExecuteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteResponse_descriptor, new java.lang.String[] { "Error", "Session", "Result", }); internal_static_vtgate_ExecuteShardsRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_vtgate_ExecuteShardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteShardsRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Query", "Keyspace", "Shards", "TabletType", "NotInTransaction", "Options", }); internal_static_vtgate_ExecuteShardsResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_vtgate_ExecuteShardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteShardsResponse_descriptor, new java.lang.String[] { "Error", "Session", "Result", }); internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_vtgate_ExecuteKeyspaceIdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Query", "Keyspace", "KeyspaceIds", "TabletType", "NotInTransaction", "Options", }); internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_vtgate_ExecuteKeyspaceIdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor, new java.lang.String[] { "Error", "Session", "Result", }); internal_static_vtgate_ExecuteKeyRangesRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_vtgate_ExecuteKeyRangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteKeyRangesRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Query", "Keyspace", "KeyRanges", "TabletType", "NotInTransaction", "Options", }); internal_static_vtgate_ExecuteKeyRangesResponse_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_vtgate_ExecuteKeyRangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteKeyRangesResponse_descriptor, new java.lang.String[] { "Error", "Session", "Result", }); internal_static_vtgate_ExecuteEntityIdsRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_vtgate_ExecuteEntityIdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteEntityIdsRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Query", "Keyspace", "EntityColumnName", "EntityKeyspaceIds", "TabletType", "NotInTransaction", "Options", }); internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor = internal_static_vtgate_ExecuteEntityIdsRequest_descriptor.getNestedTypes().get(0); internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor, new java.lang.String[] { "Type", "Value", "KeyspaceId", }); internal_static_vtgate_ExecuteEntityIdsResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_vtgate_ExecuteEntityIdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteEntityIdsResponse_descriptor, new java.lang.String[] { "Error", "Session", "Result", }); internal_static_vtgate_ExecuteBatchRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_vtgate_ExecuteBatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Queries", "TabletType", "AsTransaction", "KeyspaceShard", "Options", }); internal_static_vtgate_ExecuteBatchResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_vtgate_ExecuteBatchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchResponse_descriptor, new java.lang.String[] { "Error", "Session", "Results", }); internal_static_vtgate_BoundShardQuery_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_vtgate_BoundShardQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_BoundShardQuery_descriptor, new java.lang.String[] { "Query", "Keyspace", "Shards", }); internal_static_vtgate_ExecuteBatchShardsRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_vtgate_ExecuteBatchShardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchShardsRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Queries", "TabletType", "AsTransaction", "Options", }); internal_static_vtgate_ExecuteBatchShardsResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_vtgate_ExecuteBatchShardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchShardsResponse_descriptor, new java.lang.String[] { "Error", "Session", "Results", }); internal_static_vtgate_BoundKeyspaceIdQuery_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_vtgate_BoundKeyspaceIdQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_BoundKeyspaceIdQuery_descriptor, new java.lang.String[] { "Query", "Keyspace", "KeyspaceIds", }); internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Queries", "TabletType", "AsTransaction", "Options", }); internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor, new java.lang.String[] { "Error", "Session", "Results", }); internal_static_vtgate_StreamExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_vtgate_StreamExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteRequest_descriptor, new java.lang.String[] { "CallerId", "Query", "TabletType", "KeyspaceShard", "Options", }); internal_static_vtgate_StreamExecuteResponse_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_vtgate_StreamExecuteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_vtgate_StreamExecuteShardsRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_vtgate_StreamExecuteShardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteShardsRequest_descriptor, new java.lang.String[] { "CallerId", "Query", "Keyspace", "Shards", "TabletType", "Options", }); internal_static_vtgate_StreamExecuteShardsResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_vtgate_StreamExecuteShardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteShardsResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor, new java.lang.String[] { "CallerId", "Query", "Keyspace", "KeyspaceIds", "TabletType", "Options", }); internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_vtgate_StreamExecuteKeyRangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor, new java.lang.String[] { "CallerId", "Query", "Keyspace", "KeyRanges", "TabletType", "Options", }); internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_vtgate_StreamExecuteKeyRangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_vtgate_BeginRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_vtgate_BeginRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_BeginRequest_descriptor, new java.lang.String[] { "CallerId", "SingleDb", }); internal_static_vtgate_BeginResponse_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_vtgate_BeginResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_BeginResponse_descriptor, new java.lang.String[] { "Session", }); internal_static_vtgate_CommitRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_vtgate_CommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_CommitRequest_descriptor, new java.lang.String[] { "CallerId", "Session", "Atomic", }); internal_static_vtgate_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_vtgate_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_CommitResponse_descriptor, new java.lang.String[] { }); internal_static_vtgate_RollbackRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_vtgate_RollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_RollbackRequest_descriptor, new java.lang.String[] { "CallerId", "Session", }); internal_static_vtgate_RollbackResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_vtgate_RollbackResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_RollbackResponse_descriptor, new java.lang.String[] { }); internal_static_vtgate_ResolveTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_vtgate_ResolveTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ResolveTransactionRequest_descriptor, new java.lang.String[] { "CallerId", "Dtid", }); internal_static_vtgate_MessageStreamRequest_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_vtgate_MessageStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_MessageStreamRequest_descriptor, new java.lang.String[] { "CallerId", "Keyspace", "Shard", "KeyRange", "Name", }); internal_static_vtgate_MessageAckRequest_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_vtgate_MessageAckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_MessageAckRequest_descriptor, new java.lang.String[] { "CallerId", "Keyspace", "Name", "Ids", }); internal_static_vtgate_ResolveTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_vtgate_ResolveTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_ResolveTransactionResponse_descriptor, new java.lang.String[] { }); internal_static_vtgate_SplitQueryRequest_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_vtgate_SplitQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_SplitQueryRequest_descriptor, new java.lang.String[] { "CallerId", "Keyspace", "Query", "SplitColumn", "SplitCount", "NumRowsPerQueryPart", "Algorithm", "UseSplitQueryV2", }); internal_static_vtgate_SplitQueryResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_vtgate_SplitQueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_SplitQueryResponse_descriptor, new java.lang.String[] { "Splits", }); internal_static_vtgate_SplitQueryResponse_KeyRangePart_descriptor = internal_static_vtgate_SplitQueryResponse_descriptor.getNestedTypes().get(0); internal_static_vtgate_SplitQueryResponse_KeyRangePart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_SplitQueryResponse_KeyRangePart_descriptor, new java.lang.String[] { "Keyspace", "KeyRanges", }); internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor = internal_static_vtgate_SplitQueryResponse_descriptor.getNestedTypes().get(1); internal_static_vtgate_SplitQueryResponse_ShardPart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_SplitQueryResponse_ShardPart_descriptor, new java.lang.String[] { "Keyspace", "Shards", }); internal_static_vtgate_SplitQueryResponse_Part_descriptor = internal_static_vtgate_SplitQueryResponse_descriptor.getNestedTypes().get(2); internal_static_vtgate_SplitQueryResponse_Part_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_SplitQueryResponse_Part_descriptor, new java.lang.String[] { "Query", "KeyRangePart", "ShardPart", "Size", }); internal_static_vtgate_GetSrvKeyspaceRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_vtgate_GetSrvKeyspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_GetSrvKeyspaceRequest_descriptor, new java.lang.String[] { "Keyspace", }); internal_static_vtgate_GetSrvKeyspaceResponse_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_vtgate_GetSrvKeyspaceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_GetSrvKeyspaceResponse_descriptor, new java.lang.String[] { "SrvKeyspace", }); internal_static_vtgate_UpdateStreamRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_vtgate_UpdateStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_UpdateStreamRequest_descriptor, new java.lang.String[] { "CallerId", "Keyspace", "Shard", "KeyRange", "TabletType", "Timestamp", "Event", }); internal_static_vtgate_UpdateStreamResponse_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_vtgate_UpdateStreamResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vtgate_UpdateStreamResponse_descriptor, new java.lang.String[] { "Event", "ResumeTimestamp", }); com.youtube.vitess.proto.Query.getDescriptor(); com.youtube.vitess.proto.Topodata.getDescriptor(); com.youtube.vitess.proto.Vtrpc.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy