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

com.youtube.vitess.proto.Query Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: query.proto

package com.youtube.vitess.proto;

public final class Query {
  private Query() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Flags sent from the MySQL C API
   * 
* * Protobuf enum {@code query.MySqlFlag} */ public enum MySqlFlag implements com.google.protobuf.ProtocolMessageEnum { /** * EMPTY = 0; */ EMPTY(0, 0), /** * NOT_NULL_FLAG = 1; */ NOT_NULL_FLAG(1, 1), /** * PRI_KEY_FLAG = 2; */ PRI_KEY_FLAG(2, 2), /** * UNIQUE_KEY_FLAG = 4; */ UNIQUE_KEY_FLAG(3, 4), /** * MULTIPLE_KEY_FLAG = 8; */ MULTIPLE_KEY_FLAG(4, 8), /** * BLOB_FLAG = 16; */ BLOB_FLAG(5, 16), /** * UNSIGNED_FLAG = 32; */ UNSIGNED_FLAG(6, 32), /** * ZEROFILL_FLAG = 64; */ ZEROFILL_FLAG(7, 64), /** * BINARY_FLAG = 128; */ BINARY_FLAG(8, 128), /** * ENUM_FLAG = 256; */ ENUM_FLAG(9, 256), /** * AUTO_INCREMENT_FLAG = 512; */ AUTO_INCREMENT_FLAG(10, 512), /** * TIMESTAMP_FLAG = 1024; */ TIMESTAMP_FLAG(11, 1024), /** * SET_FLAG = 2048; */ SET_FLAG(12, 2048), /** * NO_DEFAULT_VALUE_FLAG = 4096; */ NO_DEFAULT_VALUE_FLAG(13, 4096), /** * ON_UPDATE_NOW_FLAG = 8192; */ ON_UPDATE_NOW_FLAG(14, 8192), /** * NUM_FLAG = 32768; */ NUM_FLAG(15, 32768), /** * PART_KEY_FLAG = 16384; */ PART_KEY_FLAG(16, 16384), /** * UNIQUE_FLAG = 65536; */ UNIQUE_FLAG(18, 65536), /** * BINCMP_FLAG = 131072; */ BINCMP_FLAG(19, 131072), UNRECOGNIZED(-1, -1), ; /** * GROUP_FLAG = 32768; */ public static final MySqlFlag GROUP_FLAG = NUM_FLAG; /** * EMPTY = 0; */ public static final int EMPTY_VALUE = 0; /** * NOT_NULL_FLAG = 1; */ public static final int NOT_NULL_FLAG_VALUE = 1; /** * PRI_KEY_FLAG = 2; */ public static final int PRI_KEY_FLAG_VALUE = 2; /** * UNIQUE_KEY_FLAG = 4; */ public static final int UNIQUE_KEY_FLAG_VALUE = 4; /** * MULTIPLE_KEY_FLAG = 8; */ public static final int MULTIPLE_KEY_FLAG_VALUE = 8; /** * BLOB_FLAG = 16; */ public static final int BLOB_FLAG_VALUE = 16; /** * UNSIGNED_FLAG = 32; */ public static final int UNSIGNED_FLAG_VALUE = 32; /** * ZEROFILL_FLAG = 64; */ public static final int ZEROFILL_FLAG_VALUE = 64; /** * BINARY_FLAG = 128; */ public static final int BINARY_FLAG_VALUE = 128; /** * ENUM_FLAG = 256; */ public static final int ENUM_FLAG_VALUE = 256; /** * AUTO_INCREMENT_FLAG = 512; */ public static final int AUTO_INCREMENT_FLAG_VALUE = 512; /** * TIMESTAMP_FLAG = 1024; */ public static final int TIMESTAMP_FLAG_VALUE = 1024; /** * SET_FLAG = 2048; */ public static final int SET_FLAG_VALUE = 2048; /** * NO_DEFAULT_VALUE_FLAG = 4096; */ public static final int NO_DEFAULT_VALUE_FLAG_VALUE = 4096; /** * ON_UPDATE_NOW_FLAG = 8192; */ public static final int ON_UPDATE_NOW_FLAG_VALUE = 8192; /** * NUM_FLAG = 32768; */ public static final int NUM_FLAG_VALUE = 32768; /** * PART_KEY_FLAG = 16384; */ public static final int PART_KEY_FLAG_VALUE = 16384; /** * GROUP_FLAG = 32768; */ public static final int GROUP_FLAG_VALUE = 32768; /** * UNIQUE_FLAG = 65536; */ public static final int UNIQUE_FLAG_VALUE = 65536; /** * BINCMP_FLAG = 131072; */ public static final int BINCMP_FLAG_VALUE = 131072; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MySqlFlag valueOf(int value) { return forNumber(value); } public static MySqlFlag forNumber(int value) { switch (value) { case 0: return EMPTY; case 1: return NOT_NULL_FLAG; case 2: return PRI_KEY_FLAG; case 4: return UNIQUE_KEY_FLAG; case 8: return MULTIPLE_KEY_FLAG; case 16: return BLOB_FLAG; case 32: return UNSIGNED_FLAG; case 64: return ZEROFILL_FLAG; case 128: return BINARY_FLAG; case 256: return ENUM_FLAG; case 512: return AUTO_INCREMENT_FLAG; case 1024: return TIMESTAMP_FLAG; case 2048: return SET_FLAG; case 4096: return NO_DEFAULT_VALUE_FLAG; case 8192: return ON_UPDATE_NOW_FLAG; case 32768: return NUM_FLAG; case 16384: return PART_KEY_FLAG; case 65536: return UNIQUE_FLAG; case 131072: return BINCMP_FLAG; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MySqlFlag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MySqlFlag findValueByNumber(int number) { return MySqlFlag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.getDescriptor().getEnumTypes().get(0); } private static final MySqlFlag[] VALUES = { EMPTY, NOT_NULL_FLAG, PRI_KEY_FLAG, UNIQUE_KEY_FLAG, MULTIPLE_KEY_FLAG, BLOB_FLAG, UNSIGNED_FLAG, ZEROFILL_FLAG, BINARY_FLAG, ENUM_FLAG, AUTO_INCREMENT_FLAG, TIMESTAMP_FLAG, SET_FLAG, NO_DEFAULT_VALUE_FLAG, ON_UPDATE_NOW_FLAG, NUM_FLAG, PART_KEY_FLAG, GROUP_FLAG, UNIQUE_FLAG, BINCMP_FLAG, }; public static MySqlFlag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private MySqlFlag(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:query.MySqlFlag) } /** *
   * Flag allows us to qualify types by their common properties.
   * 
* * Protobuf enum {@code query.Flag} */ public enum Flag implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ NONE(0), /** * ISINTEGRAL = 256; */ ISINTEGRAL(256), /** * ISUNSIGNED = 512; */ ISUNSIGNED(512), /** * ISFLOAT = 1024; */ ISFLOAT(1024), /** * ISQUOTED = 2048; */ ISQUOTED(2048), /** * ISTEXT = 4096; */ ISTEXT(4096), /** * ISBINARY = 8192; */ ISBINARY(8192), UNRECOGNIZED(-1), ; /** * NONE = 0; */ public static final int NONE_VALUE = 0; /** * ISINTEGRAL = 256; */ public static final int ISINTEGRAL_VALUE = 256; /** * ISUNSIGNED = 512; */ public static final int ISUNSIGNED_VALUE = 512; /** * ISFLOAT = 1024; */ public static final int ISFLOAT_VALUE = 1024; /** * ISQUOTED = 2048; */ public static final int ISQUOTED_VALUE = 2048; /** * ISTEXT = 4096; */ public static final int ISTEXT_VALUE = 4096; /** * ISBINARY = 8192; */ public static final int ISBINARY_VALUE = 8192; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Flag valueOf(int value) { return forNumber(value); } public static Flag forNumber(int value) { switch (value) { case 0: return NONE; case 256: return ISINTEGRAL; case 512: return ISUNSIGNED; case 1024: return ISFLOAT; case 2048: return ISQUOTED; case 4096: return ISTEXT; case 8192: return ISBINARY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Flag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Flag findValueByNumber(int number) { return Flag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.getDescriptor().getEnumTypes().get(1); } private static final Flag[] VALUES = values(); public static Flag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Flag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.Flag) } /** *
   * Type defines the various supported data types in bind vars
   * and query results.
   * 
* * Protobuf enum {@code query.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
     * NULL_TYPE specifies a NULL type.
     * 
* * NULL_TYPE = 0; */ NULL_TYPE(0), /** *
     * INT8 specifies a TINYINT type.
     * Properties: 1, IsNumber.
     * 
* * INT8 = 257; */ INT8(257), /** *
     * UINT8 specifies a TINYINT UNSIGNED type.
     * Properties: 2, IsNumber, IsUnsigned.
     * 
* * UINT8 = 770; */ UINT8(770), /** *
     * INT16 specifies a SMALLINT type.
     * Properties: 3, IsNumber.
     * 
* * INT16 = 259; */ INT16(259), /** *
     * UINT16 specifies a SMALLINT UNSIGNED type.
     * Properties: 4, IsNumber, IsUnsigned.
     * 
* * UINT16 = 772; */ UINT16(772), /** *
     * INT24 specifies a MEDIUMINT type.
     * Properties: 5, IsNumber.
     * 
* * INT24 = 261; */ INT24(261), /** *
     * UINT24 specifies a MEDIUMINT UNSIGNED type.
     * Properties: 6, IsNumber, IsUnsigned.
     * 
* * UINT24 = 774; */ UINT24(774), /** *
     * INT32 specifies a INTEGER type.
     * Properties: 7, IsNumber.
     * 
* * INT32 = 263; */ INT32(263), /** *
     * UINT32 specifies a INTEGER UNSIGNED type.
     * Properties: 8, IsNumber, IsUnsigned.
     * 
* * UINT32 = 776; */ UINT32(776), /** *
     * INT64 specifies a BIGINT type.
     * Properties: 9, IsNumber.
     * 
* * INT64 = 265; */ INT64(265), /** *
     * UINT64 specifies a BIGINT UNSIGNED type.
     * Properties: 10, IsNumber, IsUnsigned.
     * 
* * UINT64 = 778; */ UINT64(778), /** *
     * FLOAT32 specifies a FLOAT type.
     * Properties: 11, IsFloat.
     * 
* * FLOAT32 = 1035; */ FLOAT32(1035), /** *
     * FLOAT64 specifies a DOUBLE or REAL type.
     * Properties: 12, IsFloat.
     * 
* * FLOAT64 = 1036; */ FLOAT64(1036), /** *
     * TIMESTAMP specifies a TIMESTAMP type.
     * Properties: 13, IsQuoted.
     * 
* * TIMESTAMP = 2061; */ TIMESTAMP(2061), /** *
     * DATE specifies a DATE type.
     * Properties: 14, IsQuoted.
     * 
* * DATE = 2062; */ DATE(2062), /** *
     * TIME specifies a TIME type.
     * Properties: 15, IsQuoted.
     * 
* * TIME = 2063; */ TIME(2063), /** *
     * DATETIME specifies a DATETIME type.
     * Properties: 16, IsQuoted.
     * 
* * DATETIME = 2064; */ DATETIME(2064), /** *
     * YEAR specifies a YEAR type.
     * Properties: 17, IsNumber, IsUnsigned.
     * 
* * YEAR = 785; */ YEAR(785), /** *
     * DECIMAL specifies a DECIMAL or NUMERIC type.
     * Properties: 18, None.
     * 
* * DECIMAL = 18; */ DECIMAL(18), /** *
     * TEXT specifies a TEXT type.
     * Properties: 19, IsQuoted, IsText.
     * 
* * TEXT = 6163; */ TEXT(6163), /** *
     * BLOB specifies a BLOB type.
     * Properties: 20, IsQuoted, IsBinary.
     * 
* * BLOB = 10260; */ BLOB(10260), /** *
     * VARCHAR specifies a VARCHAR type.
     * Properties: 21, IsQuoted, IsText.
     * 
* * VARCHAR = 6165; */ VARCHAR(6165), /** *
     * VARBINARY specifies a VARBINARY type.
     * Properties: 22, IsQuoted, IsBinary.
     * 
* * VARBINARY = 10262; */ VARBINARY(10262), /** *
     * CHAR specifies a CHAR type.
     * Properties: 23, IsQuoted, IsText.
     * 
* * CHAR = 6167; */ CHAR(6167), /** *
     * BINARY specifies a BINARY type.
     * Properties: 24, IsQuoted, IsBinary.
     * 
* * BINARY = 10264; */ BINARY(10264), /** *
     * BIT specifies a BIT type.
     * Properties: 25, IsQuoted.
     * 
* * BIT = 2073; */ BIT(2073), /** *
     * ENUM specifies an ENUM type.
     * Properties: 26, IsQuoted.
     * 
* * ENUM = 2074; */ ENUM(2074), /** *
     * SET specifies a SET type.
     * Properties: 27, IsQuoted.
     * 
* * SET = 2075; */ SET(2075), /** *
     * TUPLE specifies a a tuple. This cannot
     * be returned in a QueryResult, but it can
     * be sent as a bind var.
     * Properties: 28, None.
     * 
* * TUPLE = 28; */ TUPLE(28), /** *
     * GEOMETRY specifies a GEOMETRY type.
     * Properties: 29, IsQuoted.
     * 
* * GEOMETRY = 2077; */ GEOMETRY(2077), /** *
     * JSON specified a JSON type.
     * Properties: 30, IsQuoted.
     * 
* * JSON = 2078; */ JSON(2078), UNRECOGNIZED(-1), ; /** *
     * NULL_TYPE specifies a NULL type.
     * 
* * NULL_TYPE = 0; */ public static final int NULL_TYPE_VALUE = 0; /** *
     * INT8 specifies a TINYINT type.
     * Properties: 1, IsNumber.
     * 
* * INT8 = 257; */ public static final int INT8_VALUE = 257; /** *
     * UINT8 specifies a TINYINT UNSIGNED type.
     * Properties: 2, IsNumber, IsUnsigned.
     * 
* * UINT8 = 770; */ public static final int UINT8_VALUE = 770; /** *
     * INT16 specifies a SMALLINT type.
     * Properties: 3, IsNumber.
     * 
* * INT16 = 259; */ public static final int INT16_VALUE = 259; /** *
     * UINT16 specifies a SMALLINT UNSIGNED type.
     * Properties: 4, IsNumber, IsUnsigned.
     * 
* * UINT16 = 772; */ public static final int UINT16_VALUE = 772; /** *
     * INT24 specifies a MEDIUMINT type.
     * Properties: 5, IsNumber.
     * 
* * INT24 = 261; */ public static final int INT24_VALUE = 261; /** *
     * UINT24 specifies a MEDIUMINT UNSIGNED type.
     * Properties: 6, IsNumber, IsUnsigned.
     * 
* * UINT24 = 774; */ public static final int UINT24_VALUE = 774; /** *
     * INT32 specifies a INTEGER type.
     * Properties: 7, IsNumber.
     * 
* * INT32 = 263; */ public static final int INT32_VALUE = 263; /** *
     * UINT32 specifies a INTEGER UNSIGNED type.
     * Properties: 8, IsNumber, IsUnsigned.
     * 
* * UINT32 = 776; */ public static final int UINT32_VALUE = 776; /** *
     * INT64 specifies a BIGINT type.
     * Properties: 9, IsNumber.
     * 
* * INT64 = 265; */ public static final int INT64_VALUE = 265; /** *
     * UINT64 specifies a BIGINT UNSIGNED type.
     * Properties: 10, IsNumber, IsUnsigned.
     * 
* * UINT64 = 778; */ public static final int UINT64_VALUE = 778; /** *
     * FLOAT32 specifies a FLOAT type.
     * Properties: 11, IsFloat.
     * 
* * FLOAT32 = 1035; */ public static final int FLOAT32_VALUE = 1035; /** *
     * FLOAT64 specifies a DOUBLE or REAL type.
     * Properties: 12, IsFloat.
     * 
* * FLOAT64 = 1036; */ public static final int FLOAT64_VALUE = 1036; /** *
     * TIMESTAMP specifies a TIMESTAMP type.
     * Properties: 13, IsQuoted.
     * 
* * TIMESTAMP = 2061; */ public static final int TIMESTAMP_VALUE = 2061; /** *
     * DATE specifies a DATE type.
     * Properties: 14, IsQuoted.
     * 
* * DATE = 2062; */ public static final int DATE_VALUE = 2062; /** *
     * TIME specifies a TIME type.
     * Properties: 15, IsQuoted.
     * 
* * TIME = 2063; */ public static final int TIME_VALUE = 2063; /** *
     * DATETIME specifies a DATETIME type.
     * Properties: 16, IsQuoted.
     * 
* * DATETIME = 2064; */ public static final int DATETIME_VALUE = 2064; /** *
     * YEAR specifies a YEAR type.
     * Properties: 17, IsNumber, IsUnsigned.
     * 
* * YEAR = 785; */ public static final int YEAR_VALUE = 785; /** *
     * DECIMAL specifies a DECIMAL or NUMERIC type.
     * Properties: 18, None.
     * 
* * DECIMAL = 18; */ public static final int DECIMAL_VALUE = 18; /** *
     * TEXT specifies a TEXT type.
     * Properties: 19, IsQuoted, IsText.
     * 
* * TEXT = 6163; */ public static final int TEXT_VALUE = 6163; /** *
     * BLOB specifies a BLOB type.
     * Properties: 20, IsQuoted, IsBinary.
     * 
* * BLOB = 10260; */ public static final int BLOB_VALUE = 10260; /** *
     * VARCHAR specifies a VARCHAR type.
     * Properties: 21, IsQuoted, IsText.
     * 
* * VARCHAR = 6165; */ public static final int VARCHAR_VALUE = 6165; /** *
     * VARBINARY specifies a VARBINARY type.
     * Properties: 22, IsQuoted, IsBinary.
     * 
* * VARBINARY = 10262; */ public static final int VARBINARY_VALUE = 10262; /** *
     * CHAR specifies a CHAR type.
     * Properties: 23, IsQuoted, IsText.
     * 
* * CHAR = 6167; */ public static final int CHAR_VALUE = 6167; /** *
     * BINARY specifies a BINARY type.
     * Properties: 24, IsQuoted, IsBinary.
     * 
* * BINARY = 10264; */ public static final int BINARY_VALUE = 10264; /** *
     * BIT specifies a BIT type.
     * Properties: 25, IsQuoted.
     * 
* * BIT = 2073; */ public static final int BIT_VALUE = 2073; /** *
     * ENUM specifies an ENUM type.
     * Properties: 26, IsQuoted.
     * 
* * ENUM = 2074; */ public static final int ENUM_VALUE = 2074; /** *
     * SET specifies a SET type.
     * Properties: 27, IsQuoted.
     * 
* * SET = 2075; */ public static final int SET_VALUE = 2075; /** *
     * TUPLE specifies a a tuple. This cannot
     * be returned in a QueryResult, but it can
     * be sent as a bind var.
     * Properties: 28, None.
     * 
* * TUPLE = 28; */ public static final int TUPLE_VALUE = 28; /** *
     * GEOMETRY specifies a GEOMETRY type.
     * Properties: 29, IsQuoted.
     * 
* * GEOMETRY = 2077; */ public static final int GEOMETRY_VALUE = 2077; /** *
     * JSON specified a JSON type.
     * Properties: 30, IsQuoted.
     * 
* * JSON = 2078; */ public static final int JSON_VALUE = 2078; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return NULL_TYPE; case 257: return INT8; case 770: return UINT8; case 259: return INT16; case 772: return UINT16; case 261: return INT24; case 774: return UINT24; case 263: return INT32; case 776: return UINT32; case 265: return INT64; case 778: return UINT64; case 1035: return FLOAT32; case 1036: return FLOAT64; case 2061: return TIMESTAMP; case 2062: return DATE; case 2063: return TIME; case 2064: return DATETIME; case 785: return YEAR; case 18: return DECIMAL; case 6163: return TEXT; case 10260: return BLOB; case 6165: return VARCHAR; case 10262: return VARBINARY; case 6167: return CHAR; case 10264: return BINARY; case 2073: return BIT; case 2074: return ENUM; case 2075: return SET; case 28: return TUPLE; case 2077: return GEOMETRY; case 2078: return JSON; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.getDescriptor().getEnumTypes().get(2); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.Type) } /** *
   * TransactionState represents the state of a distributed transaction.
   * 
* * Protobuf enum {@code query.TransactionState} */ public enum TransactionState implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * PREPARE = 1; */ PREPARE(1), /** * COMMIT = 2; */ COMMIT(2), /** * ROLLBACK = 3; */ ROLLBACK(3), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * PREPARE = 1; */ public static final int PREPARE_VALUE = 1; /** * COMMIT = 2; */ public static final int COMMIT_VALUE = 2; /** * ROLLBACK = 3; */ public static final int ROLLBACK_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TransactionState valueOf(int value) { return forNumber(value); } public static TransactionState forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PREPARE; case 2: return COMMIT; case 3: return ROLLBACK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TransactionState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TransactionState findValueByNumber(int number) { return TransactionState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.getDescriptor().getEnumTypes().get(3); } private static final TransactionState[] VALUES = values(); public static TransactionState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private TransactionState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.TransactionState) } public interface TargetOrBuilder extends // @@protoc_insertion_point(interface_extends:query.Target) com.google.protobuf.MessageOrBuilder { /** * optional string keyspace = 1; */ java.lang.String getKeyspace(); /** * optional string keyspace = 1; */ com.google.protobuf.ByteString getKeyspaceBytes(); /** * optional string shard = 2; */ java.lang.String getShard(); /** * optional string shard = 2; */ com.google.protobuf.ByteString getShardBytes(); /** * optional .topodata.TabletType tablet_type = 3; */ int getTabletTypeValue(); /** * optional .topodata.TabletType tablet_type = 3; */ com.youtube.vitess.proto.Topodata.TabletType getTabletType(); } /** *
   * Target describes what the client expects the tablet is.
   * If the tablet does not match, an error is returned.
   * 
* * Protobuf type {@code query.Target} */ public static final class Target extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.Target) TargetOrBuilder { // Use Target.newBuilder() to construct. private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Target() { keyspace_ = ""; shard_ = ""; tabletType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Target( 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(); shard_ = s; break; } case 24: { int rawValue = input.readEnum(); tabletType_ = rawValue; 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.Query.internal_static_query_Target_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Target_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Target.class, com.youtube.vitess.proto.Query.Target.Builder.class); } public static final int KEYSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object keyspace_; /** * 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; } } /** * 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 SHARD_FIELD_NUMBER = 2; private volatile java.lang.Object shard_; /** * optional string shard = 2; */ 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; } } /** * optional string shard = 2; */ 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 TABLET_TYPE_FIELD_NUMBER = 3; private int tabletType_; /** * optional .topodata.TabletType tablet_type = 3; */ public int getTabletTypeValue() { return tabletType_; } /** * 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; } 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_); } if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shard_); } if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(3, tabletType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_); } if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shard_); } if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, tabletType_); } 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.Query.Target)) { return super.equals(obj); } com.youtube.vitess.proto.Query.Target other = (com.youtube.vitess.proto.Query.Target) obj; boolean result = true; result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && tabletType_ == other.tabletType_; 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 = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER; hash = (53 * hash) + tabletType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.Target parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Target 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.Query.Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Target parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.Target parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Target 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.Query.Target parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Target 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.Query.Target parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Target 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.Query.Target 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; } /** *
     * Target describes what the client expects the tablet is.
     * If the tablet does not match, an error is returned.
     * 
* * Protobuf type {@code query.Target} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.Target) com.youtube.vitess.proto.Query.TargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_Target_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Target_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Target.class, com.youtube.vitess.proto.Query.Target.Builder.class); } // Construct using com.youtube.vitess.proto.Query.Target.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_ = ""; shard_ = ""; tabletType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_Target_descriptor; } public com.youtube.vitess.proto.Query.Target getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.Target.getDefaultInstance(); } public com.youtube.vitess.proto.Query.Target build() { com.youtube.vitess.proto.Query.Target result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.Target buildPartial() { com.youtube.vitess.proto.Query.Target result = new com.youtube.vitess.proto.Query.Target(this); result.keyspace_ = keyspace_; result.shard_ = shard_; result.tabletType_ = tabletType_; 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.Query.Target) { return mergeFrom((com.youtube.vitess.proto.Query.Target)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.Target other) { if (other == com.youtube.vitess.proto.Query.Target.getDefaultInstance()) return this; if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); } if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); } if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); } 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.Query.Target parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.Target) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object keyspace_ = ""; /** * 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; } } /** * 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; } } /** * optional string keyspace = 1; */ public Builder setKeyspace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyspace_ = value; onChanged(); return this; } /** * optional string keyspace = 1; */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /** * 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.lang.Object shard_ = ""; /** * optional string shard = 2; */ 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; } } /** * optional string shard = 2; */ 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; } } /** * optional string shard = 2; */ public Builder setShard( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shard_ = value; onChanged(); return this; } /** * optional string shard = 2; */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /** * optional string shard = 2; */ public Builder setShardBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shard_ = value; onChanged(); return this; } private int tabletType_ = 0; /** * optional .topodata.TabletType tablet_type = 3; */ public int getTabletTypeValue() { return tabletType_; } /** * optional .topodata.TabletType tablet_type = 3; */ public Builder setTabletTypeValue(int value) { tabletType_ = value; onChanged(); return this; } /** * 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; } /** * 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; } /** * optional .topodata.TabletType tablet_type = 3; */ public Builder clearTabletType() { tabletType_ = 0; 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:query.Target) } // @@protoc_insertion_point(class_scope:query.Target) private static final com.youtube.vitess.proto.Query.Target DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.Target(); } public static com.youtube.vitess.proto.Query.Target getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Target parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Target(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.Query.Target getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VTGateCallerIDOrBuilder extends // @@protoc_insertion_point(interface_extends:query.VTGateCallerID) com.google.protobuf.MessageOrBuilder { /** * optional string username = 1; */ java.lang.String getUsername(); /** * optional string username = 1; */ com.google.protobuf.ByteString getUsernameBytes(); /** * repeated string groups = 2; */ java.util.List getGroupsList(); /** * repeated string groups = 2; */ int getGroupsCount(); /** * repeated string groups = 2; */ java.lang.String getGroups(int index); /** * repeated string groups = 2; */ com.google.protobuf.ByteString getGroupsBytes(int index); } /** *
   * VTGateCallerID is sent by VTGate to VTTablet to describe the
   * caller. If possible, this information is secure. For instance,
   * if using unique certificates that guarantee that VTGate->VTTablet
   * traffic cannot be spoofed, then VTTablet can trust this information,
   * and VTTablet will use it for tablet ACLs, for instance.
   * Because of this security guarantee, this is different than the CallerID
   * structure, which is not secure at all, because it is provided
   * by the Vitess client.
   * 
* * Protobuf type {@code query.VTGateCallerID} */ public static final class VTGateCallerID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.VTGateCallerID) VTGateCallerIDOrBuilder { // Use VTGateCallerID.newBuilder() to construct. private VTGateCallerID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VTGateCallerID() { username_ = ""; groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VTGateCallerID( 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(); username_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } groups_.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)) { groups_ = groups_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_VTGateCallerID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_VTGateCallerID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.VTGateCallerID.class, com.youtube.vitess.proto.Query.VTGateCallerID.Builder.class); } private int bitField0_; public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** * optional string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; } } /** * optional string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList groups_; /** * repeated string groups = 2; */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_; } /** * repeated string groups = 2; */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 2; */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 2; */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.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 (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } for (int i = 0; i < groups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groups_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); } { int dataSize = 0; for (int i = 0; i < groups_.size(); i++) { dataSize += computeStringSizeNoTag(groups_.getRaw(i)); } size += dataSize; size += 1 * getGroupsList().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.Query.VTGateCallerID)) { return super.equals(obj); } com.youtube.vitess.proto.Query.VTGateCallerID other = (com.youtube.vitess.proto.Query.VTGateCallerID) obj; boolean result = true; result = result && getUsername() .equals(other.getUsername()); result = result && getGroupsList() .equals(other.getGroupsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.VTGateCallerID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.VTGateCallerID 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.Query.VTGateCallerID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.VTGateCallerID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.VTGateCallerID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.VTGateCallerID 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.Query.VTGateCallerID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.VTGateCallerID 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.Query.VTGateCallerID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.VTGateCallerID 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.Query.VTGateCallerID 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; } /** *
     * VTGateCallerID is sent by VTGate to VTTablet to describe the
     * caller. If possible, this information is secure. For instance,
     * if using unique certificates that guarantee that VTGate->VTTablet
     * traffic cannot be spoofed, then VTTablet can trust this information,
     * and VTTablet will use it for tablet ACLs, for instance.
     * Because of this security guarantee, this is different than the CallerID
     * structure, which is not secure at all, because it is provided
     * by the Vitess client.
     * 
* * Protobuf type {@code query.VTGateCallerID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.VTGateCallerID) com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_VTGateCallerID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_VTGateCallerID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.VTGateCallerID.class, com.youtube.vitess.proto.Query.VTGateCallerID.Builder.class); } // Construct using com.youtube.vitess.proto.Query.VTGateCallerID.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(); username_ = ""; groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_VTGateCallerID_descriptor; } public com.youtube.vitess.proto.Query.VTGateCallerID getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance(); } public com.youtube.vitess.proto.Query.VTGateCallerID build() { com.youtube.vitess.proto.Query.VTGateCallerID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.VTGateCallerID buildPartial() { com.youtube.vitess.proto.Query.VTGateCallerID result = new com.youtube.vitess.proto.Query.VTGateCallerID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.username_ = username_; if (((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = groups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.groups_ = groups_; 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.Query.VTGateCallerID) { return mergeFrom((com.youtube.vitess.proto.Query.VTGateCallerID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.VTGateCallerID other) { if (other == com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); } if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } 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.Query.VTGateCallerID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.VTGateCallerID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object username_ = ""; /** * optional string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string username = 1; */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; onChanged(); return this; } /** * optional string username = 1; */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** * optional string username = 1; */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new com.google.protobuf.LazyStringArrayList(groups_); bitField0_ |= 0x00000002; } } /** * repeated string groups = 2; */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_.getUnmodifiableView(); } /** * repeated string groups = 2; */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 2; */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 2; */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } /** * repeated string groups = 2; */ public Builder setGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); return this; } /** * repeated string groups = 2; */ public Builder addGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } /** * repeated string groups = 2; */ public Builder addAllGroups( java.lang.Iterable values) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); return this; } /** * repeated string groups = 2; */ public Builder clearGroups() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string groups = 2; */ public Builder addGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupsIsMutable(); groups_.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:query.VTGateCallerID) } // @@protoc_insertion_point(class_scope:query.VTGateCallerID) private static final com.youtube.vitess.proto.Query.VTGateCallerID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.VTGateCallerID(); } public static com.youtube.vitess.proto.Query.VTGateCallerID getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VTGateCallerID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VTGateCallerID(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.Query.VTGateCallerID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:query.EventToken) com.google.protobuf.MessageOrBuilder { /** *
     * timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
     * 
* * optional int64 timestamp = 1; */ long getTimestamp(); /** *
     * The shard name that applied the statements. Note this is not set when
     * streaming from a vttablet. It is only used on the client -> vtgate link.
     * 
* * optional string shard = 2; */ java.lang.String getShard(); /** *
     * The shard name that applied the statements. Note this is not set when
     * streaming from a vttablet. It is only used on the client -> vtgate link.
     * 
* * optional string shard = 2; */ com.google.protobuf.ByteString getShardBytes(); /** *
     * The position on the replication stream after this statement was applied.
     * It is not the transaction ID / GTID, but the position / GTIDSet.
     * 
* * optional string position = 3; */ java.lang.String getPosition(); /** *
     * The position on the replication stream after this statement was applied.
     * It is not the transaction ID / GTID, but the position / GTIDSet.
     * 
* * optional string position = 3; */ com.google.protobuf.ByteString getPositionBytes(); } /** *
   * EventToken is a structure that describes a point in time in a
   * replication stream on one shard. The most recent known replication
   * position can be retrieved from vttablet when executing a query. It
   * is also sent with the replication streams from the binlog service.
   * 
* * Protobuf type {@code query.EventToken} */ public static final class EventToken extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.EventToken) EventTokenOrBuilder { // Use EventToken.newBuilder() to construct. private EventToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventToken() { timestamp_ = 0L; shard_ = ""; position_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private EventToken( 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: { timestamp_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); shard_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); position_ = 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.Query.internal_static_query_EventToken_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_EventToken_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.EventToken.class, com.youtube.vitess.proto.Query.EventToken.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** *
     * timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
     * 
* * optional int64 timestamp = 1; */ public long getTimestamp() { return timestamp_; } public static final int SHARD_FIELD_NUMBER = 2; private volatile java.lang.Object shard_; /** *
     * The shard name that applied the statements. Note this is not set when
     * streaming from a vttablet. It is only used on the client -> vtgate link.
     * 
* * optional string shard = 2; */ 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; } } /** *
     * The shard name that applied the statements. Note this is not set when
     * streaming from a vttablet. It is only used on the client -> vtgate link.
     * 
* * optional string shard = 2; */ 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 POSITION_FIELD_NUMBER = 3; private volatile java.lang.Object position_; /** *
     * The position on the replication stream after this statement was applied.
     * It is not the transaction ID / GTID, but the position / GTIDSet.
     * 
* * optional string position = 3; */ public java.lang.String getPosition() { java.lang.Object ref = position_; 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(); position_ = s; return s; } } /** *
     * The position on the replication stream after this statement was applied.
     * It is not the transaction ID / GTID, but the position / GTIDSet.
     * 
* * optional string position = 3; */ public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); position_ = 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shard_); } if (!getPositionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, position_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shard_); } if (!getPositionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, position_); } 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.Query.EventToken)) { return super.equals(obj); } com.youtube.vitess.proto.Query.EventToken other = (com.youtube.vitess.proto.Query.EventToken) obj; boolean result = true; result = result && (getTimestamp() == other.getTimestamp()); result = result && getShard() .equals(other.getShard()); result = result && getPosition() .equals(other.getPosition()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + getPosition().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.EventToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.EventToken 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.Query.EventToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.EventToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.EventToken parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.EventToken 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.Query.EventToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.EventToken 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.Query.EventToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.EventToken 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.Query.EventToken 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; } /** *
     * EventToken is a structure that describes a point in time in a
     * replication stream on one shard. The most recent known replication
     * position can be retrieved from vttablet when executing a query. It
     * is also sent with the replication streams from the binlog service.
     * 
* * Protobuf type {@code query.EventToken} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.EventToken) com.youtube.vitess.proto.Query.EventTokenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_EventToken_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_EventToken_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.EventToken.class, com.youtube.vitess.proto.Query.EventToken.Builder.class); } // Construct using com.youtube.vitess.proto.Query.EventToken.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(); timestamp_ = 0L; shard_ = ""; position_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_EventToken_descriptor; } public com.youtube.vitess.proto.Query.EventToken getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.EventToken.getDefaultInstance(); } public com.youtube.vitess.proto.Query.EventToken build() { com.youtube.vitess.proto.Query.EventToken result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.EventToken buildPartial() { com.youtube.vitess.proto.Query.EventToken result = new com.youtube.vitess.proto.Query.EventToken(this); result.timestamp_ = timestamp_; result.shard_ = shard_; result.position_ = position_; 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.Query.EventToken) { return mergeFrom((com.youtube.vitess.proto.Query.EventToken)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.EventToken other) { if (other == com.youtube.vitess.proto.Query.EventToken.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); } if (!other.getPosition().isEmpty()) { position_ = other.position_; 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.Query.EventToken parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.EventToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** *
       * timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
       * 
* * optional int64 timestamp = 1; */ public long getTimestamp() { return timestamp_; } /** *
       * timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
       * 
* * optional int64 timestamp = 1; */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
       * timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
       * 
* * optional int64 timestamp = 1; */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private java.lang.Object shard_ = ""; /** *
       * The shard name that applied the statements. Note this is not set when
       * streaming from a vttablet. It is only used on the client -> vtgate link.
       * 
* * optional string shard = 2; */ 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; } } /** *
       * The shard name that applied the statements. Note this is not set when
       * streaming from a vttablet. It is only used on the client -> vtgate link.
       * 
* * optional string shard = 2; */ 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; } } /** *
       * The shard name that applied the statements. Note this is not set when
       * streaming from a vttablet. It is only used on the client -> vtgate link.
       * 
* * optional string shard = 2; */ public Builder setShard( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shard_ = value; onChanged(); return this; } /** *
       * The shard name that applied the statements. Note this is not set when
       * streaming from a vttablet. It is only used on the client -> vtgate link.
       * 
* * optional string shard = 2; */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /** *
       * The shard name that applied the statements. Note this is not set when
       * streaming from a vttablet. It is only used on the client -> vtgate link.
       * 
* * optional string shard = 2; */ public Builder setShardBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shard_ = value; onChanged(); return this; } private java.lang.Object position_ = ""; /** *
       * The position on the replication stream after this statement was applied.
       * It is not the transaction ID / GTID, but the position / GTIDSet.
       * 
* * optional string position = 3; */ public java.lang.String getPosition() { java.lang.Object ref = position_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); position_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The position on the replication stream after this statement was applied.
       * It is not the transaction ID / GTID, but the position / GTIDSet.
       * 
* * optional string position = 3; */ public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); position_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The position on the replication stream after this statement was applied.
       * It is not the transaction ID / GTID, but the position / GTIDSet.
       * 
* * optional string position = 3; */ public Builder setPosition( java.lang.String value) { if (value == null) { throw new NullPointerException(); } position_ = value; onChanged(); return this; } /** *
       * The position on the replication stream after this statement was applied.
       * It is not the transaction ID / GTID, but the position / GTIDSet.
       * 
* * optional string position = 3; */ public Builder clearPosition() { position_ = getDefaultInstance().getPosition(); onChanged(); return this; } /** *
       * The position on the replication stream after this statement was applied.
       * It is not the transaction ID / GTID, but the position / GTIDSet.
       * 
* * optional string position = 3; */ public Builder setPositionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); position_ = 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:query.EventToken) } // @@protoc_insertion_point(class_scope:query.EventToken) private static final com.youtube.vitess.proto.Query.EventToken DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.EventToken(); } public static com.youtube.vitess.proto.Query.EventToken getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EventToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventToken(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.Query.EventToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:query.Value) com.google.protobuf.MessageOrBuilder { /** * optional .query.Type type = 1; */ int getTypeValue(); /** * optional .query.Type type = 1; */ com.youtube.vitess.proto.Query.Type getType(); /** * optional bytes value = 2; */ com.google.protobuf.ByteString getValue(); } /** *
   * Value represents a typed value.
   * 
* * Protobuf type {@code query.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.Value) ValueOrBuilder { // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Value() { type_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Value( 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; } } } } 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.Query.internal_static_query_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Value.class, com.youtube.vitess.proto.Query.Value.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .query.Type type = 1; */ public int getTypeValue() { return 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_; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } 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_); } } 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_); } 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.Query.Value)) { return super.equals(obj); } com.youtube.vitess.proto.Query.Value other = (com.youtube.vitess.proto.Query.Value) obj; boolean result = true; result = result && type_ == other.type_; result = result && getValue() .equals(other.getValue()); 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Value parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.youtube.vitess.proto.Query.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Value parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.youtube.vitess.proto.Query.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.youtube.vitess.proto.Query.Value 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; } /** *
     * Value represents a typed value.
     * 
* * Protobuf type {@code query.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.Value) com.youtube.vitess.proto.Query.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Value.class, com.youtube.vitess.proto.Query.Value.Builder.class); } // Construct using com.youtube.vitess.proto.Query.Value.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_Value_descriptor; } public com.youtube.vitess.proto.Query.Value getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.Value.getDefaultInstance(); } public com.youtube.vitess.proto.Query.Value build() { com.youtube.vitess.proto.Query.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.Value buildPartial() { com.youtube.vitess.proto.Query.Value result = new com.youtube.vitess.proto.Query.Value(this); result.type_ = type_; result.value_ = value_; 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.Query.Value) { return mergeFrom((com.youtube.vitess.proto.Query.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.Value other) { if (other == com.youtube.vitess.proto.Query.Value.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } 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.Query.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * optional .query.Type type = 1; */ public int getTypeValue() { return type_; } /** * optional .query.Type type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * 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; } /** * 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; } /** * optional .query.Type type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); 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:query.Value) } // @@protoc_insertion_point(class_scope:query.Value) private static final com.youtube.vitess.proto.Query.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.Value(); } public static com.youtube.vitess.proto.Query.Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.youtube.vitess.proto.Query.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BindVariableOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BindVariable) com.google.protobuf.MessageOrBuilder { /** * optional .query.Type type = 1; */ int getTypeValue(); /** * optional .query.Type type = 1; */ com.youtube.vitess.proto.Query.Type getType(); /** * optional bytes value = 2; */ com.google.protobuf.ByteString getValue(); /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ java.util.List getValuesList(); /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ com.youtube.vitess.proto.Query.Value getValues(int index); /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ int getValuesCount(); /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ java.util.List getValuesOrBuilderList(); /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ com.youtube.vitess.proto.Query.ValueOrBuilder getValuesOrBuilder( int index); } /** *
   * BindVariable represents a single bind variable in a Query.
   * 
* * Protobuf type {@code query.BindVariable} */ public static final class BindVariable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BindVariable) BindVariableOrBuilder { // Use BindVariable.newBuilder() to construct. private BindVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BindVariable() { type_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; values_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BindVariable( 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: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } values_.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_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BindVariable_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BindVariable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BindVariable.class, com.youtube.vitess.proto.Query.BindVariable.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .query.Type type = 1; */ public int getTypeValue() { return 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_; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int VALUES_FIELD_NUMBER = 3; private java.util.List values_; /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ public java.util.List getValuesList() { return values_; } /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ public java.util.List getValuesOrBuilderList() { return values_; } /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ public int getValuesCount() { return values_.size(); } /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.Value getValues(int index) { return values_.get(index); } /** *
     * values are set if type is TUPLE.
     * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.ValueOrBuilder getValuesOrBuilder( int index) { return values_.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 (type_ != com.youtube.vitess.proto.Query.Type.NULL_TYPE.getNumber()) { output.writeEnum(1, type_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(3, values_.get(i)); } } 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_); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, values_.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.Query.BindVariable)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BindVariable other = (com.youtube.vitess.proto.Query.BindVariable) obj; boolean result = true; result = result && type_ == other.type_; result = result && getValue() .equals(other.getValue()); result = result && getValuesList() .equals(other.getValuesList()); 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(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.BindVariable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BindVariable 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.Query.BindVariable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BindVariable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BindVariable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BindVariable 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.Query.BindVariable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BindVariable 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.Query.BindVariable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BindVariable 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.Query.BindVariable 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; } /** *
     * BindVariable represents a single bind variable in a Query.
     * 
* * Protobuf type {@code query.BindVariable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BindVariable) com.youtube.vitess.proto.Query.BindVariableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BindVariable_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BindVariable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BindVariable.class, com.youtube.vitess.proto.Query.BindVariable.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BindVariable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { valuesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BindVariable_descriptor; } public com.youtube.vitess.proto.Query.BindVariable getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BindVariable.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BindVariable build() { com.youtube.vitess.proto.Query.BindVariable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BindVariable buildPartial() { com.youtube.vitess.proto.Query.BindVariable result = new com.youtube.vitess.proto.Query.BindVariable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.value_ = value_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; } else { result.values_ = valuesBuilder_.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.Query.BindVariable) { return mergeFrom((com.youtube.vitess.proto.Query.BindVariable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BindVariable other) { if (other == com.youtube.vitess.proto.Query.BindVariable.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } 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.Query.BindVariable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BindVariable) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .query.Type type = 1; */ public int getTypeValue() { return type_; } /** * optional .query.Type type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * 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; } /** * 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; } /** * optional .query.Type type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Value, com.youtube.vitess.proto.Query.Value.Builder, com.youtube.vitess.proto.Query.ValueOrBuilder> valuesBuilder_; /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.Value getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder setValues( int index, com.youtube.vitess.proto.Query.Value value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder setValues( int index, com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder addValues(com.youtube.vitess.proto.Query.Value value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder addValues( int index, com.youtube.vitess.proto.Query.Value value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder addValues( com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder addValues( int index, com.youtube.vitess.proto.Query.Value.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.Value.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.ValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public java.util.List getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.Value.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public com.youtube.vitess.proto.Query.Value.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** *
       * values are set if type is TUPLE.
       * 
* * repeated .query.Value values = 3; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().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> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Value, com.youtube.vitess.proto.Query.Value.Builder, com.youtube.vitess.proto.Query.ValueOrBuilder>( values_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } 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:query.BindVariable) } // @@protoc_insertion_point(class_scope:query.BindVariable) private static final com.youtube.vitess.proto.Query.BindVariable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BindVariable(); } public static com.youtube.vitess.proto.Query.BindVariable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BindVariable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BindVariable(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.Query.BindVariable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoundQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BoundQuery) com.google.protobuf.MessageOrBuilder { /** *
     * sql is the SQL query to execute
     * 
* * optional string sql = 1; */ java.lang.String getSql(); /** *
     * sql is the SQL query to execute
     * 
* * optional string sql = 1; */ com.google.protobuf.ByteString getSqlBytes(); /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ int getBindVariablesCount(); /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ boolean containsBindVariables( java.lang.String key); /** * Use {@link #getBindVariablesMap()} instead. */ @java.lang.Deprecated java.util.Map getBindVariables(); /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ java.util.Map getBindVariablesMap(); /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrDefault( java.lang.String key, com.youtube.vitess.proto.Query.BindVariable defaultValue); /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrThrow( java.lang.String key); } /** *
   * BoundQuery is a query with its bind variables
   * 
* * Protobuf type {@code query.BoundQuery} */ public static final class BoundQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BoundQuery) BoundQueryOrBuilder { // Use BoundQuery.newBuilder() to construct. private BoundQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoundQuery() { sql_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BoundQuery( 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(); sql_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { bindVariables_ = com.google.protobuf.MapField.newMapField( BindVariablesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry bindVariables = input.readMessage( BindVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); bindVariables_.getMutableMap().put(bindVariables.getKey(), bindVariables.getValue()); 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.Query.internal_static_query_BoundQuery_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetBindVariables(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BoundQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BoundQuery.class, com.youtube.vitess.proto.Query.BoundQuery.Builder.class); } private int bitField0_; public static final int SQL_FIELD_NUMBER = 1; private volatile java.lang.Object sql_; /** *
     * sql is the SQL query to execute
     * 
* * optional string sql = 1; */ public java.lang.String getSql() { java.lang.Object ref = sql_; 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(); sql_ = s; return s; } } /** *
     * sql is the SQL query to execute
     * 
* * optional string sql = 1; */ public com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BIND_VARIABLES_FIELD_NUMBER = 2; private static final class BindVariablesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.youtube.vitess.proto.Query.BindVariable> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.youtube.vitess.proto.Query.internal_static_query_BoundQuery_BindVariablesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.youtube.vitess.proto.Query.BindVariable.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.youtube.vitess.proto.Query.BindVariable> bindVariables_; private com.google.protobuf.MapField internalGetBindVariables() { if (bindVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BindVariablesDefaultEntryHolder.defaultEntry); } return bindVariables_; } public int getBindVariablesCount() { return internalGetBindVariables().getMap().size(); } /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public boolean containsBindVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetBindVariables().getMap().containsKey(key); } /** * Use {@link #getBindVariablesMap()} instead. */ @java.lang.Deprecated public java.util.Map getBindVariables() { return getBindVariablesMap(); } /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public java.util.Map getBindVariablesMap() { return internalGetBindVariables().getMap(); } /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrDefault( java.lang.String key, com.youtube.vitess.proto.Query.BindVariable defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBindVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * bind_variables is a map of all bind variables to expand in the query
     * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBindVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!getSqlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_); } for (java.util.Map.Entry entry : internalGetBindVariables().getMap().entrySet()) { com.google.protobuf.MapEntry bindVariables = BindVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, bindVariables); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSqlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_); } for (java.util.Map.Entry entry : internalGetBindVariables().getMap().entrySet()) { com.google.protobuf.MapEntry bindVariables = BindVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, bindVariables); } 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.Query.BoundQuery)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BoundQuery other = (com.youtube.vitess.proto.Query.BoundQuery) obj; boolean result = true; result = result && getSql() .equals(other.getSql()); result = result && internalGetBindVariables().equals( other.internalGetBindVariables()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); if (!internalGetBindVariables().getMap().isEmpty()) { hash = (37 * hash) + BIND_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetBindVariables().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.BoundQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BoundQuery 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.Query.BoundQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BoundQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BoundQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BoundQuery 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.Query.BoundQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BoundQuery 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.Query.BoundQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BoundQuery 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.Query.BoundQuery 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; } /** *
     * BoundQuery is a query with its bind variables
     * 
* * Protobuf type {@code query.BoundQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BoundQuery) com.youtube.vitess.proto.Query.BoundQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BoundQuery_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetBindVariables(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableBindVariables(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BoundQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BoundQuery.class, com.youtube.vitess.proto.Query.BoundQuery.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BoundQuery.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(); sql_ = ""; internalGetMutableBindVariables().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BoundQuery_descriptor; } public com.youtube.vitess.proto.Query.BoundQuery getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BoundQuery build() { com.youtube.vitess.proto.Query.BoundQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BoundQuery buildPartial() { com.youtube.vitess.proto.Query.BoundQuery result = new com.youtube.vitess.proto.Query.BoundQuery(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.sql_ = sql_; result.bindVariables_ = internalGetBindVariables(); result.bindVariables_.makeImmutable(); 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.Query.BoundQuery) { return mergeFrom((com.youtube.vitess.proto.Query.BoundQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BoundQuery other) { if (other == com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance()) return this; if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } internalGetMutableBindVariables().mergeFrom( other.internalGetBindVariables()); 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.Query.BoundQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BoundQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object sql_ = ""; /** *
       * sql is the SQL query to execute
       * 
* * optional string sql = 1; */ public java.lang.String getSql() { java.lang.Object ref = sql_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * sql is the SQL query to execute
       * 
* * optional string sql = 1; */ public com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * sql is the SQL query to execute
       * 
* * optional string sql = 1; */ public Builder setSql( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sql_ = value; onChanged(); return this; } /** *
       * sql is the SQL query to execute
       * 
* * optional string sql = 1; */ public Builder clearSql() { sql_ = getDefaultInstance().getSql(); onChanged(); return this; } /** *
       * sql is the SQL query to execute
       * 
* * optional string sql = 1; */ public Builder setSqlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sql_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.youtube.vitess.proto.Query.BindVariable> bindVariables_; private com.google.protobuf.MapField internalGetBindVariables() { if (bindVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BindVariablesDefaultEntryHolder.defaultEntry); } return bindVariables_; } private com.google.protobuf.MapField internalGetMutableBindVariables() { onChanged();; if (bindVariables_ == null) { bindVariables_ = com.google.protobuf.MapField.newMapField( BindVariablesDefaultEntryHolder.defaultEntry); } if (!bindVariables_.isMutable()) { bindVariables_ = bindVariables_.copy(); } return bindVariables_; } public int getBindVariablesCount() { return internalGetBindVariables().getMap().size(); } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public boolean containsBindVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetBindVariables().getMap().containsKey(key); } /** * Use {@link #getBindVariablesMap()} instead. */ @java.lang.Deprecated public java.util.Map getBindVariables() { return getBindVariablesMap(); } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public java.util.Map getBindVariablesMap() { return internalGetBindVariables().getMap(); } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrDefault( java.lang.String key, com.youtube.vitess.proto.Query.BindVariable defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBindVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public com.youtube.vitess.proto.Query.BindVariable getBindVariablesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBindVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearBindVariables() { getMutableBindVariables().clear(); return this; } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public Builder removeBindVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableBindVariables().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableBindVariables() { return internalGetMutableBindVariables().getMutableMap(); } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public Builder putBindVariables( java.lang.String key, com.youtube.vitess.proto.Query.BindVariable value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableBindVariables().put(key, value); return this; } /** *
       * bind_variables is a map of all bind variables to expand in the query
       * 
* * map<string, .query.BindVariable> bind_variables = 2; */ public Builder putAllBindVariables( java.util.Map values) { getMutableBindVariables().putAll(values); 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:query.BoundQuery) } // @@protoc_insertion_point(class_scope:query.BoundQuery) private static final com.youtube.vitess.proto.Query.BoundQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BoundQuery(); } public static com.youtube.vitess.proto.Query.BoundQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BoundQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoundQuery(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.Query.BoundQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ExecuteOptions) com.google.protobuf.MessageOrBuilder { /** *
     * If set, we will try to include an EventToken with the responses.
     * 
* * optional bool include_event_token = 2; */ boolean getIncludeEventToken(); /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ boolean hasCompareEventToken(); /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ com.youtube.vitess.proto.Query.EventToken getCompareEventToken(); /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ com.youtube.vitess.proto.Query.EventTokenOrBuilder getCompareEventTokenOrBuilder(); /** *
     * Controls what fields are returned in Field message responses from mysql, i.e.
     * field name, table name, etc. This is an optimization for high-QPS queries where
     * the client knows what it's getting
     * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ int getIncludedFieldsValue(); /** *
     * Controls what fields are returned in Field message responses from mysql, i.e.
     * field name, table name, etc. This is an optimization for high-QPS queries where
     * the client knows what it's getting
     * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields getIncludedFields(); } /** *
   * ExecuteOptions is passed around for all Execute calls.
   * 
* * Protobuf type {@code query.ExecuteOptions} */ public static final class ExecuteOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ExecuteOptions) ExecuteOptionsOrBuilder { // Use ExecuteOptions.newBuilder() to construct. private ExecuteOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteOptions() { includeEventToken_ = false; includedFields_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ExecuteOptions( 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 16: { includeEventToken_ = input.readBool(); break; } case 26: { com.youtube.vitess.proto.Query.EventToken.Builder subBuilder = null; if (compareEventToken_ != null) { subBuilder = compareEventToken_.toBuilder(); } compareEventToken_ = input.readMessage(com.youtube.vitess.proto.Query.EventToken.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compareEventToken_); compareEventToken_ = subBuilder.buildPartial(); } break; } case 32: { int rawValue = input.readEnum(); includedFields_ = rawValue; 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.Query.internal_static_query_ExecuteOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteOptions.class, com.youtube.vitess.proto.Query.ExecuteOptions.Builder.class); } /** * Protobuf enum {@code query.ExecuteOptions.IncludedFields} */ public enum IncludedFields implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_AND_NAME = 0; */ TYPE_AND_NAME(0), /** * TYPE_ONLY = 1; */ TYPE_ONLY(1), /** * ALL = 2; */ ALL(2), UNRECOGNIZED(-1), ; /** * TYPE_AND_NAME = 0; */ public static final int TYPE_AND_NAME_VALUE = 0; /** * TYPE_ONLY = 1; */ public static final int TYPE_ONLY_VALUE = 1; /** * ALL = 2; */ public static final int ALL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IncludedFields valueOf(int value) { return forNumber(value); } public static IncludedFields forNumber(int value) { switch (value) { case 0: return TYPE_AND_NAME; case 1: return TYPE_ONLY; case 2: return ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IncludedFields> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IncludedFields findValueByNumber(int number) { return IncludedFields.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.ExecuteOptions.getDescriptor().getEnumTypes().get(0); } private static final IncludedFields[] VALUES = values(); public static IncludedFields valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private IncludedFields(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.ExecuteOptions.IncludedFields) } public static final int INCLUDE_EVENT_TOKEN_FIELD_NUMBER = 2; private boolean includeEventToken_; /** *
     * If set, we will try to include an EventToken with the responses.
     * 
* * optional bool include_event_token = 2; */ public boolean getIncludeEventToken() { return includeEventToken_; } public static final int COMPARE_EVENT_TOKEN_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.EventToken compareEventToken_; /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ public boolean hasCompareEventToken() { return compareEventToken_ != null; } /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ public com.youtube.vitess.proto.Query.EventToken getCompareEventToken() { return compareEventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : compareEventToken_; } /** *
     * If set, the fresher field may be set as a result comparison to this token.
     * This is a shortcut so the application doesn't need to care about
     * comparing EventTokens.
     * 
* * optional .query.EventToken compare_event_token = 3; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getCompareEventTokenOrBuilder() { return getCompareEventToken(); } public static final int INCLUDED_FIELDS_FIELD_NUMBER = 4; private int includedFields_; /** *
     * Controls what fields are returned in Field message responses from mysql, i.e.
     * field name, table name, etc. This is an optimization for high-QPS queries where
     * the client knows what it's getting
     * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public int getIncludedFieldsValue() { return includedFields_; } /** *
     * Controls what fields are returned in Field message responses from mysql, i.e.
     * field name, table name, etc. This is an optimization for high-QPS queries where
     * the client knows what it's getting
     * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields getIncludedFields() { com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields result = com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.valueOf(includedFields_); return result == null ? com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.UNRECOGNIZED : result; } 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 (includeEventToken_ != false) { output.writeBool(2, includeEventToken_); } if (compareEventToken_ != null) { output.writeMessage(3, getCompareEventToken()); } if (includedFields_ != com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.TYPE_AND_NAME.getNumber()) { output.writeEnum(4, includedFields_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (includeEventToken_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, includeEventToken_); } if (compareEventToken_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCompareEventToken()); } if (includedFields_ != com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.TYPE_AND_NAME.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, includedFields_); } 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.Query.ExecuteOptions)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ExecuteOptions other = (com.youtube.vitess.proto.Query.ExecuteOptions) obj; boolean result = true; result = result && (getIncludeEventToken() == other.getIncludeEventToken()); result = result && (hasCompareEventToken() == other.hasCompareEventToken()); if (hasCompareEventToken()) { result = result && getCompareEventToken() .equals(other.getCompareEventToken()); } result = result && includedFields_ == other.includedFields_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INCLUDE_EVENT_TOKEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeEventToken()); if (hasCompareEventToken()) { hash = (37 * hash) + COMPARE_EVENT_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getCompareEventToken().hashCode(); } hash = (37 * hash) + INCLUDED_FIELDS_FIELD_NUMBER; hash = (53 * hash) + includedFields_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.ExecuteOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ExecuteOptions 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.Query.ExecuteOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ExecuteOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ExecuteOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ExecuteOptions 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.Query.ExecuteOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ExecuteOptions 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.Query.ExecuteOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ExecuteOptions 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.Query.ExecuteOptions 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; } /** *
     * ExecuteOptions is passed around for all Execute calls.
     * 
* * Protobuf type {@code query.ExecuteOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ExecuteOptions) com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteOptions.class, com.youtube.vitess.proto.Query.ExecuteOptions.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ExecuteOptions.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(); includeEventToken_ = false; if (compareEventTokenBuilder_ == null) { compareEventToken_ = null; } else { compareEventToken_ = null; compareEventTokenBuilder_ = null; } includedFields_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteOptions_descriptor; } public com.youtube.vitess.proto.Query.ExecuteOptions getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ExecuteOptions build() { com.youtube.vitess.proto.Query.ExecuteOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ExecuteOptions buildPartial() { com.youtube.vitess.proto.Query.ExecuteOptions result = new com.youtube.vitess.proto.Query.ExecuteOptions(this); result.includeEventToken_ = includeEventToken_; if (compareEventTokenBuilder_ == null) { result.compareEventToken_ = compareEventToken_; } else { result.compareEventToken_ = compareEventTokenBuilder_.build(); } result.includedFields_ = includedFields_; 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.Query.ExecuteOptions) { return mergeFrom((com.youtube.vitess.proto.Query.ExecuteOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ExecuteOptions other) { if (other == com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance()) return this; if (other.getIncludeEventToken() != false) { setIncludeEventToken(other.getIncludeEventToken()); } if (other.hasCompareEventToken()) { mergeCompareEventToken(other.getCompareEventToken()); } if (other.includedFields_ != 0) { setIncludedFieldsValue(other.getIncludedFieldsValue()); } 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.Query.ExecuteOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ExecuteOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean includeEventToken_ ; /** *
       * If set, we will try to include an EventToken with the responses.
       * 
* * optional bool include_event_token = 2; */ public boolean getIncludeEventToken() { return includeEventToken_; } /** *
       * If set, we will try to include an EventToken with the responses.
       * 
* * optional bool include_event_token = 2; */ public Builder setIncludeEventToken(boolean value) { includeEventToken_ = value; onChanged(); return this; } /** *
       * If set, we will try to include an EventToken with the responses.
       * 
* * optional bool include_event_token = 2; */ public Builder clearIncludeEventToken() { includeEventToken_ = false; onChanged(); return this; } private com.youtube.vitess.proto.Query.EventToken compareEventToken_ = 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> compareEventTokenBuilder_; /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public boolean hasCompareEventToken() { return compareEventTokenBuilder_ != null || compareEventToken_ != null; } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public com.youtube.vitess.proto.Query.EventToken getCompareEventToken() { if (compareEventTokenBuilder_ == null) { return compareEventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : compareEventToken_; } else { return compareEventTokenBuilder_.getMessage(); } } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public Builder setCompareEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (compareEventTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compareEventToken_ = value; onChanged(); } else { compareEventTokenBuilder_.setMessage(value); } return this; } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public Builder setCompareEventToken( com.youtube.vitess.proto.Query.EventToken.Builder builderForValue) { if (compareEventTokenBuilder_ == null) { compareEventToken_ = builderForValue.build(); onChanged(); } else { compareEventTokenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public Builder mergeCompareEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (compareEventTokenBuilder_ == null) { if (compareEventToken_ != null) { compareEventToken_ = com.youtube.vitess.proto.Query.EventToken.newBuilder(compareEventToken_).mergeFrom(value).buildPartial(); } else { compareEventToken_ = value; } onChanged(); } else { compareEventTokenBuilder_.mergeFrom(value); } return this; } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public Builder clearCompareEventToken() { if (compareEventTokenBuilder_ == null) { compareEventToken_ = null; onChanged(); } else { compareEventToken_ = null; compareEventTokenBuilder_ = null; } return this; } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public com.youtube.vitess.proto.Query.EventToken.Builder getCompareEventTokenBuilder() { onChanged(); return getCompareEventTokenFieldBuilder().getBuilder(); } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getCompareEventTokenOrBuilder() { if (compareEventTokenBuilder_ != null) { return compareEventTokenBuilder_.getMessageOrBuilder(); } else { return compareEventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : compareEventToken_; } } /** *
       * If set, the fresher field may be set as a result comparison to this token.
       * This is a shortcut so the application doesn't need to care about
       * comparing EventTokens.
       * 
* * optional .query.EventToken compare_event_token = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder> getCompareEventTokenFieldBuilder() { if (compareEventTokenBuilder_ == null) { compareEventTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder>( getCompareEventToken(), getParentForChildren(), isClean()); compareEventToken_ = null; } return compareEventTokenBuilder_; } private int includedFields_ = 0; /** *
       * Controls what fields are returned in Field message responses from mysql, i.e.
       * field name, table name, etc. This is an optimization for high-QPS queries where
       * the client knows what it's getting
       * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public int getIncludedFieldsValue() { return includedFields_; } /** *
       * Controls what fields are returned in Field message responses from mysql, i.e.
       * field name, table name, etc. This is an optimization for high-QPS queries where
       * the client knows what it's getting
       * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public Builder setIncludedFieldsValue(int value) { includedFields_ = value; onChanged(); return this; } /** *
       * Controls what fields are returned in Field message responses from mysql, i.e.
       * field name, table name, etc. This is an optimization for high-QPS queries where
       * the client knows what it's getting
       * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields getIncludedFields() { com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields result = com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.valueOf(includedFields_); return result == null ? com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields.UNRECOGNIZED : result; } /** *
       * Controls what fields are returned in Field message responses from mysql, i.e.
       * field name, table name, etc. This is an optimization for high-QPS queries where
       * the client knows what it's getting
       * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public Builder setIncludedFields(com.youtube.vitess.proto.Query.ExecuteOptions.IncludedFields value) { if (value == null) { throw new NullPointerException(); } includedFields_ = value.getNumber(); onChanged(); return this; } /** *
       * Controls what fields are returned in Field message responses from mysql, i.e.
       * field name, table name, etc. This is an optimization for high-QPS queries where
       * the client knows what it's getting
       * 
* * optional .query.ExecuteOptions.IncludedFields included_fields = 4; */ public Builder clearIncludedFields() { includedFields_ = 0; 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:query.ExecuteOptions) } // @@protoc_insertion_point(class_scope:query.ExecuteOptions) private static final com.youtube.vitess.proto.Query.ExecuteOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ExecuteOptions(); } public static com.youtube.vitess.proto.Query.ExecuteOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExecuteOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecuteOptions(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.Query.ExecuteOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldOrBuilder extends // @@protoc_insertion_point(interface_extends:query.Field) com.google.protobuf.MessageOrBuilder { /** *
     * name of the field as returned by mysql C API
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * name of the field as returned by mysql C API
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * vitess-defined type. Conversion function is in sqltypes package.
     * 
* * optional .query.Type type = 2; */ int getTypeValue(); /** *
     * vitess-defined type. Conversion function is in sqltypes package.
     * 
* * optional .query.Type type = 2; */ com.youtube.vitess.proto.Query.Type getType(); /** *
     * Remaining fields from mysql C API.
     * These fields are only populated when ExecuteOptions.included_fields
     * is set to IncludedFields.ALL.
     * 
* * optional string table = 3; */ java.lang.String getTable(); /** *
     * Remaining fields from mysql C API.
     * These fields are only populated when ExecuteOptions.included_fields
     * is set to IncludedFields.ALL.
     * 
* * optional string table = 3; */ com.google.protobuf.ByteString getTableBytes(); /** * optional string org_table = 4; */ java.lang.String getOrgTable(); /** * optional string org_table = 4; */ com.google.protobuf.ByteString getOrgTableBytes(); /** * optional string database = 5; */ java.lang.String getDatabase(); /** * optional string database = 5; */ com.google.protobuf.ByteString getDatabaseBytes(); /** * optional string org_name = 6; */ java.lang.String getOrgName(); /** * optional string org_name = 6; */ com.google.protobuf.ByteString getOrgNameBytes(); /** *
     * column_length is really a uint32. All 32 bits can be used.
     * 
* * optional uint32 column_length = 7; */ int getColumnLength(); /** *
     * charset is actually a uint16. Only the lower 16 bits are used.
     * 
* * optional uint32 charset = 8; */ int getCharset(); /** *
     * decimals is actualy a uint8. Only the lower 8 bits are used.
     * 
* * optional uint32 decimals = 9; */ int getDecimals(); /** *
     * flags is actually a uint16. Only the lower 16 bits are used.
     * 
* * optional uint32 flags = 10; */ int getFlags(); } /** *
   * Field describes a single column returned by a query
   * 
* * Protobuf type {@code query.Field} */ public static final class Field extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.Field) FieldOrBuilder { // Use Field.newBuilder() to construct. private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Field() { name_ = ""; type_ = 0; table_ = ""; orgTable_ = ""; database_ = ""; orgName_ = ""; columnLength_ = 0; charset_ = 0; decimals_ = 0; flags_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Field( 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(); name_ = s; break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); table_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); orgTable_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); database_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); orgName_ = s; break; } case 56: { columnLength_ = input.readUInt32(); break; } case 64: { charset_ = input.readUInt32(); break; } case 72: { decimals_ = input.readUInt32(); break; } case 80: { flags_ = input.readUInt32(); 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.Query.internal_static_query_Field_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Field.class, com.youtube.vitess.proto.Query.Field.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name of the field as returned by mysql C API
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name of the field as returned by mysql C API
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** *
     * vitess-defined type. Conversion function is in sqltypes package.
     * 
* * optional .query.Type type = 2; */ public int getTypeValue() { return type_; } /** *
     * vitess-defined type. Conversion function is in sqltypes package.
     * 
* * optional .query.Type type = 2; */ 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 TABLE_FIELD_NUMBER = 3; private volatile java.lang.Object table_; /** *
     * Remaining fields from mysql C API.
     * These fields are only populated when ExecuteOptions.included_fields
     * is set to IncludedFields.ALL.
     * 
* * optional string table = 3; */ public java.lang.String getTable() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** *
     * Remaining fields from mysql C API.
     * These fields are only populated when ExecuteOptions.included_fields
     * is set to IncludedFields.ALL.
     * 
* * optional string table = 3; */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); table_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORG_TABLE_FIELD_NUMBER = 4; private volatile java.lang.Object orgTable_; /** * optional string org_table = 4; */ public java.lang.String getOrgTable() { java.lang.Object ref = orgTable_; 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(); orgTable_ = s; return s; } } /** * optional string org_table = 4; */ public com.google.protobuf.ByteString getOrgTableBytes() { java.lang.Object ref = orgTable_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orgTable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_FIELD_NUMBER = 5; private volatile java.lang.Object database_; /** * optional string database = 5; */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; } } /** * optional string database = 5; */ public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORG_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object orgName_; /** * optional string org_name = 6; */ public java.lang.String getOrgName() { java.lang.Object ref = orgName_; 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(); orgName_ = s; return s; } } /** * optional string org_name = 6; */ public com.google.protobuf.ByteString getOrgNameBytes() { java.lang.Object ref = orgName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orgName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLUMN_LENGTH_FIELD_NUMBER = 7; private int columnLength_; /** *
     * column_length is really a uint32. All 32 bits can be used.
     * 
* * optional uint32 column_length = 7; */ public int getColumnLength() { return columnLength_; } public static final int CHARSET_FIELD_NUMBER = 8; private int charset_; /** *
     * charset is actually a uint16. Only the lower 16 bits are used.
     * 
* * optional uint32 charset = 8; */ public int getCharset() { return charset_; } public static final int DECIMALS_FIELD_NUMBER = 9; private int decimals_; /** *
     * decimals is actualy a uint8. Only the lower 8 bits are used.
     * 
* * optional uint32 decimals = 9; */ public int getDecimals() { return decimals_; } public static final int FLAGS_FIELD_NUMBER = 10; private int flags_; /** *
     * flags is actually a uint16. Only the lower 16 bits are used.
     * 
* * optional uint32 flags = 10; */ public int getFlags() { return flags_; } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != com.youtube.vitess.proto.Query.Type.NULL_TYPE.getNumber()) { output.writeEnum(2, type_); } if (!getTableBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, table_); } if (!getOrgTableBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orgTable_); } if (!getDatabaseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); } if (!getOrgNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orgName_); } if (columnLength_ != 0) { output.writeUInt32(7, columnLength_); } if (charset_ != 0) { output.writeUInt32(8, charset_); } if (decimals_ != 0) { output.writeUInt32(9, decimals_); } if (flags_ != 0) { output.writeUInt32(10, flags_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.youtube.vitess.proto.Query.Type.NULL_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (!getTableBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, table_); } if (!getOrgTableBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orgTable_); } if (!getDatabaseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); } if (!getOrgNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orgName_); } if (columnLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, columnLength_); } if (charset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, charset_); } if (decimals_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, decimals_); } if (flags_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, flags_); } 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.Query.Field)) { return super.equals(obj); } com.youtube.vitess.proto.Query.Field other = (com.youtube.vitess.proto.Query.Field) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && type_ == other.type_; result = result && getTable() .equals(other.getTable()); result = result && getOrgTable() .equals(other.getOrgTable()); result = result && getDatabase() .equals(other.getDatabase()); result = result && getOrgName() .equals(other.getOrgName()); result = result && (getColumnLength() == other.getColumnLength()); result = result && (getCharset() == other.getCharset()); result = result && (getDecimals() == other.getDecimals()); result = result && (getFlags() == other.getFlags()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + ORG_TABLE_FIELD_NUMBER; hash = (53 * hash) + getOrgTable().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); hash = (37 * hash) + ORG_NAME_FIELD_NUMBER; hash = (53 * hash) + getOrgName().hashCode(); hash = (37 * hash) + COLUMN_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getColumnLength(); hash = (37 * hash) + CHARSET_FIELD_NUMBER; hash = (53 * hash) + getCharset(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + getDecimals(); hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlags(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.Field parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Field 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.Query.Field parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Field parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.Field parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Field 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.Query.Field parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Field 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.Query.Field parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Field 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.Query.Field 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; } /** *
     * Field describes a single column returned by a query
     * 
* * Protobuf type {@code query.Field} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.Field) com.youtube.vitess.proto.Query.FieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_Field_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Field.class, com.youtube.vitess.proto.Query.Field.Builder.class); } // Construct using com.youtube.vitess.proto.Query.Field.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(); name_ = ""; type_ = 0; table_ = ""; orgTable_ = ""; database_ = ""; orgName_ = ""; columnLength_ = 0; charset_ = 0; decimals_ = 0; flags_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_Field_descriptor; } public com.youtube.vitess.proto.Query.Field getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.Field.getDefaultInstance(); } public com.youtube.vitess.proto.Query.Field build() { com.youtube.vitess.proto.Query.Field result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.Field buildPartial() { com.youtube.vitess.proto.Query.Field result = new com.youtube.vitess.proto.Query.Field(this); result.name_ = name_; result.type_ = type_; result.table_ = table_; result.orgTable_ = orgTable_; result.database_ = database_; result.orgName_ = orgName_; result.columnLength_ = columnLength_; result.charset_ = charset_; result.decimals_ = decimals_; result.flags_ = flags_; 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.Query.Field) { return mergeFrom((com.youtube.vitess.proto.Query.Field)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.Field other) { if (other == com.youtube.vitess.proto.Query.Field.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getTable().isEmpty()) { table_ = other.table_; onChanged(); } if (!other.getOrgTable().isEmpty()) { orgTable_ = other.orgTable_; onChanged(); } if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); } if (!other.getOrgName().isEmpty()) { orgName_ = other.orgName_; onChanged(); } if (other.getColumnLength() != 0) { setColumnLength(other.getColumnLength()); } if (other.getCharset() != 0) { setCharset(other.getCharset()); } if (other.getDecimals() != 0) { setDecimals(other.getDecimals()); } if (other.getFlags() != 0) { setFlags(other.getFlags()); } 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.Query.Field parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.Field) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name of the field as returned by mysql C API
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name of the field as returned by mysql C API
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name of the field as returned by mysql C API
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name of the field as returned by mysql C API
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name of the field as returned by mysql C API
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int type_ = 0; /** *
       * vitess-defined type. Conversion function is in sqltypes package.
       * 
* * optional .query.Type type = 2; */ public int getTypeValue() { return type_; } /** *
       * vitess-defined type. Conversion function is in sqltypes package.
       * 
* * optional .query.Type type = 2; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * vitess-defined type. Conversion function is in sqltypes package.
       * 
* * optional .query.Type type = 2; */ 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; } /** *
       * vitess-defined type. Conversion function is in sqltypes package.
       * 
* * optional .query.Type type = 2; */ public Builder setType(com.youtube.vitess.proto.Query.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * vitess-defined type. Conversion function is in sqltypes package.
       * 
* * optional .query.Type type = 2; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object table_ = ""; /** *
       * Remaining fields from mysql C API.
       * These fields are only populated when ExecuteOptions.included_fields
       * is set to IncludedFields.ALL.
       * 
* * optional string table = 3; */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Remaining fields from mysql C API.
       * These fields are only populated when ExecuteOptions.included_fields
       * is set to IncludedFields.ALL.
       * 
* * optional string table = 3; */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); table_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Remaining fields from mysql C API.
       * These fields are only populated when ExecuteOptions.included_fields
       * is set to IncludedFields.ALL.
       * 
* * optional string table = 3; */ public Builder setTable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } table_ = value; onChanged(); return this; } /** *
       * Remaining fields from mysql C API.
       * These fields are only populated when ExecuteOptions.included_fields
       * is set to IncludedFields.ALL.
       * 
* * optional string table = 3; */ public Builder clearTable() { table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** *
       * Remaining fields from mysql C API.
       * These fields are only populated when ExecuteOptions.included_fields
       * is set to IncludedFields.ALL.
       * 
* * optional string table = 3; */ public Builder setTableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; onChanged(); return this; } private java.lang.Object orgTable_ = ""; /** * optional string org_table = 4; */ public java.lang.String getOrgTable() { java.lang.Object ref = orgTable_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orgTable_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string org_table = 4; */ public com.google.protobuf.ByteString getOrgTableBytes() { java.lang.Object ref = orgTable_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orgTable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string org_table = 4; */ public Builder setOrgTable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } orgTable_ = value; onChanged(); return this; } /** * optional string org_table = 4; */ public Builder clearOrgTable() { orgTable_ = getDefaultInstance().getOrgTable(); onChanged(); return this; } /** * optional string org_table = 4; */ public Builder setOrgTableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orgTable_ = value; onChanged(); return this; } private java.lang.Object database_ = ""; /** * optional string database = 5; */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string database = 5; */ public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string database = 5; */ public Builder setDatabase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } database_ = value; onChanged(); return this; } /** * optional string database = 5; */ public Builder clearDatabase() { database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** * optional string database = 5; */ public Builder setDatabaseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; onChanged(); return this; } private java.lang.Object orgName_ = ""; /** * optional string org_name = 6; */ public java.lang.String getOrgName() { java.lang.Object ref = orgName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orgName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string org_name = 6; */ public com.google.protobuf.ByteString getOrgNameBytes() { java.lang.Object ref = orgName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orgName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string org_name = 6; */ public Builder setOrgName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } orgName_ = value; onChanged(); return this; } /** * optional string org_name = 6; */ public Builder clearOrgName() { orgName_ = getDefaultInstance().getOrgName(); onChanged(); return this; } /** * optional string org_name = 6; */ public Builder setOrgNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orgName_ = value; onChanged(); return this; } private int columnLength_ ; /** *
       * column_length is really a uint32. All 32 bits can be used.
       * 
* * optional uint32 column_length = 7; */ public int getColumnLength() { return columnLength_; } /** *
       * column_length is really a uint32. All 32 bits can be used.
       * 
* * optional uint32 column_length = 7; */ public Builder setColumnLength(int value) { columnLength_ = value; onChanged(); return this; } /** *
       * column_length is really a uint32. All 32 bits can be used.
       * 
* * optional uint32 column_length = 7; */ public Builder clearColumnLength() { columnLength_ = 0; onChanged(); return this; } private int charset_ ; /** *
       * charset is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 charset = 8; */ public int getCharset() { return charset_; } /** *
       * charset is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 charset = 8; */ public Builder setCharset(int value) { charset_ = value; onChanged(); return this; } /** *
       * charset is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 charset = 8; */ public Builder clearCharset() { charset_ = 0; onChanged(); return this; } private int decimals_ ; /** *
       * decimals is actualy a uint8. Only the lower 8 bits are used.
       * 
* * optional uint32 decimals = 9; */ public int getDecimals() { return decimals_; } /** *
       * decimals is actualy a uint8. Only the lower 8 bits are used.
       * 
* * optional uint32 decimals = 9; */ public Builder setDecimals(int value) { decimals_ = value; onChanged(); return this; } /** *
       * decimals is actualy a uint8. Only the lower 8 bits are used.
       * 
* * optional uint32 decimals = 9; */ public Builder clearDecimals() { decimals_ = 0; onChanged(); return this; } private int flags_ ; /** *
       * flags is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 flags = 10; */ public int getFlags() { return flags_; } /** *
       * flags is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 flags = 10; */ public Builder setFlags(int value) { flags_ = value; onChanged(); return this; } /** *
       * flags is actually a uint16. Only the lower 16 bits are used.
       * 
* * optional uint32 flags = 10; */ public Builder clearFlags() { flags_ = 0; 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:query.Field) } // @@protoc_insertion_point(class_scope:query.Field) private static final com.youtube.vitess.proto.Query.Field DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.Field(); } public static com.youtube.vitess.proto.Query.Field getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Field parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Field(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.Query.Field getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RowOrBuilder extends // @@protoc_insertion_point(interface_extends:query.Row) com.google.protobuf.MessageOrBuilder { /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ java.util.List getLengthsList(); /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ int getLengthsCount(); /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ long getLengths(int index); /** *
     * values contains a concatenation of all values in the row.
     * 
* * optional bytes values = 2; */ com.google.protobuf.ByteString getValues(); } /** *
   * Row is a database row.
   * 
* * Protobuf type {@code query.Row} */ public static final class Row extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.Row) RowOrBuilder { // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Row() { lengths_ = java.util.Collections.emptyList(); values_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Row( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { lengths_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } lengths_.add(input.readSInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { lengths_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { lengths_.add(input.readSInt64()); } input.popLimit(limit); break; } case 18: { values_ = 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_ & 0x00000001) == 0x00000001)) { lengths_ = java.util.Collections.unmodifiableList(lengths_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_Row_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Row.class, com.youtube.vitess.proto.Query.Row.Builder.class); } private int bitField0_; public static final int LENGTHS_FIELD_NUMBER = 1; private java.util.List lengths_; /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ public java.util.List getLengthsList() { return lengths_; } /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ public int getLengthsCount() { return lengths_.size(); } /** *
     * lengths contains the length of each value in values.
     * A length of -1 means that the field is NULL. While
     * reading values, you have to accummulate the length
     * to know the offset where the next value begins in values.
     * 
* * repeated sint64 lengths = 1; */ public long getLengths(int index) { return lengths_.get(index); } private int lengthsMemoizedSerializedSize = -1; public static final int VALUES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString values_; /** *
     * values contains a concatenation of all values in the row.
     * 
* * optional bytes values = 2; */ public com.google.protobuf.ByteString getValues() { return values_; } 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 { getSerializedSize(); if (getLengthsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(lengthsMemoizedSerializedSize); } for (int i = 0; i < lengths_.size(); i++) { output.writeSInt64NoTag(lengths_.get(i)); } if (!values_.isEmpty()) { output.writeBytes(2, values_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < lengths_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(lengths_.get(i)); } size += dataSize; if (!getLengthsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } lengthsMemoizedSerializedSize = dataSize; } if (!values_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, values_); } 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.Query.Row)) { return super.equals(obj); } com.youtube.vitess.proto.Query.Row other = (com.youtube.vitess.proto.Query.Row) obj; boolean result = true; result = result && getLengthsList() .equals(other.getLengthsList()); result = result && getValues() .equals(other.getValues()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getLengthsCount() > 0) { hash = (37 * hash) + LENGTHS_FIELD_NUMBER; hash = (53 * hash) + getLengthsList().hashCode(); } hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValues().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Row 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.Query.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.Row parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.Row parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Row 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.Query.Row parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Row 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.Query.Row parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.Row 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.Query.Row 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; } /** *
     * Row is a database row.
     * 
* * Protobuf type {@code query.Row} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.Row) com.youtube.vitess.proto.Query.RowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_Row_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.Row.class, com.youtube.vitess.proto.Query.Row.Builder.class); } // Construct using com.youtube.vitess.proto.Query.Row.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(); lengths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); values_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_Row_descriptor; } public com.youtube.vitess.proto.Query.Row getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.Row.getDefaultInstance(); } public com.youtube.vitess.proto.Query.Row build() { com.youtube.vitess.proto.Query.Row result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.Row buildPartial() { com.youtube.vitess.proto.Query.Row result = new com.youtube.vitess.proto.Query.Row(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { lengths_ = java.util.Collections.unmodifiableList(lengths_); bitField0_ = (bitField0_ & ~0x00000001); } result.lengths_ = lengths_; result.values_ = values_; 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.Query.Row) { return mergeFrom((com.youtube.vitess.proto.Query.Row)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.Row other) { if (other == com.youtube.vitess.proto.Query.Row.getDefaultInstance()) return this; if (!other.lengths_.isEmpty()) { if (lengths_.isEmpty()) { lengths_ = other.lengths_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLengthsIsMutable(); lengths_.addAll(other.lengths_); } onChanged(); } if (other.getValues() != com.google.protobuf.ByteString.EMPTY) { setValues(other.getValues()); } 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.Query.Row parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List lengths_ = java.util.Collections.emptyList(); private void ensureLengthsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { lengths_ = new java.util.ArrayList(lengths_); bitField0_ |= 0x00000001; } } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public java.util.List getLengthsList() { return java.util.Collections.unmodifiableList(lengths_); } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public int getLengthsCount() { return lengths_.size(); } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public long getLengths(int index) { return lengths_.get(index); } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public Builder setLengths( int index, long value) { ensureLengthsIsMutable(); lengths_.set(index, value); onChanged(); return this; } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public Builder addLengths(long value) { ensureLengthsIsMutable(); lengths_.add(value); onChanged(); return this; } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public Builder addAllLengths( java.lang.Iterable values) { ensureLengthsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lengths_); onChanged(); return this; } /** *
       * lengths contains the length of each value in values.
       * A length of -1 means that the field is NULL. While
       * reading values, you have to accummulate the length
       * to know the offset where the next value begins in values.
       * 
* * repeated sint64 lengths = 1; */ public Builder clearLengths() { lengths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString values_ = com.google.protobuf.ByteString.EMPTY; /** *
       * values contains a concatenation of all values in the row.
       * 
* * optional bytes values = 2; */ public com.google.protobuf.ByteString getValues() { return values_; } /** *
       * values contains a concatenation of all values in the row.
       * 
* * optional bytes values = 2; */ public Builder setValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } values_ = value; onChanged(); return this; } /** *
       * values contains a concatenation of all values in the row.
       * 
* * optional bytes values = 2; */ public Builder clearValues() { values_ = getDefaultInstance().getValues(); 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:query.Row) } // @@protoc_insertion_point(class_scope:query.Row) private static final com.youtube.vitess.proto.Query.Row DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.Row(); } public static com.youtube.vitess.proto.Query.Row getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Row parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Row(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.Query.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResultExtrasOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ResultExtras) com.google.protobuf.MessageOrBuilder { /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ boolean hasEventToken(); /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ com.youtube.vitess.proto.Query.EventToken getEventToken(); /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder(); /** *
     * If set, it means the data returned with this result is fresher
     * than the compare_token passed in the ExecuteOptions.
     * 
* * optional bool fresher = 2; */ boolean getFresher(); } /** *
   * ResultExtras contains optional out-of-band information. Usually the
   * extras are requested by adding ExecuteOptions flags.
   * 
* * Protobuf type {@code query.ResultExtras} */ public static final class ResultExtras extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ResultExtras) ResultExtrasOrBuilder { // Use ResultExtras.newBuilder() to construct. private ResultExtras(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResultExtras() { fresher_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ResultExtras( 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.EventToken.Builder subBuilder = null; if (eventToken_ != null) { subBuilder = eventToken_.toBuilder(); } eventToken_ = input.readMessage(com.youtube.vitess.proto.Query.EventToken.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eventToken_); eventToken_ = subBuilder.buildPartial(); } break; } case 16: { fresher_ = 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.Query.internal_static_query_ResultExtras_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ResultExtras_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ResultExtras.class, com.youtube.vitess.proto.Query.ResultExtras.Builder.class); } public static final int EVENT_TOKEN_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.EventToken eventToken_; /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ public boolean hasEventToken() { return eventToken_ != null; } /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ public com.youtube.vitess.proto.Query.EventToken getEventToken() { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } /** *
     * event_token is populated if the include_event_token flag is set
     * in ExecuteOptions.
     * 
* * optional .query.EventToken event_token = 1; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder() { return getEventToken(); } public static final int FRESHER_FIELD_NUMBER = 2; private boolean fresher_; /** *
     * If set, it means the data returned with this result is fresher
     * than the compare_token passed in the ExecuteOptions.
     * 
* * optional bool fresher = 2; */ public boolean getFresher() { return fresher_; } 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 (eventToken_ != null) { output.writeMessage(1, getEventToken()); } if (fresher_ != false) { output.writeBool(2, fresher_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventToken_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEventToken()); } if (fresher_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, fresher_); } 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.Query.ResultExtras)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ResultExtras other = (com.youtube.vitess.proto.Query.ResultExtras) obj; boolean result = true; result = result && (hasEventToken() == other.hasEventToken()); if (hasEventToken()) { result = result && getEventToken() .equals(other.getEventToken()); } result = result && (getFresher() == other.getFresher()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEventToken()) { hash = (37 * hash) + EVENT_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getEventToken().hashCode(); } hash = (37 * hash) + FRESHER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFresher()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.ResultExtras parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ResultExtras 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.Query.ResultExtras parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ResultExtras parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ResultExtras parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultExtras 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.Query.ResultExtras parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultExtras 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.Query.ResultExtras parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultExtras 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.Query.ResultExtras 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; } /** *
     * ResultExtras contains optional out-of-band information. Usually the
     * extras are requested by adding ExecuteOptions flags.
     * 
* * Protobuf type {@code query.ResultExtras} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ResultExtras) com.youtube.vitess.proto.Query.ResultExtrasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ResultExtras_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ResultExtras_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ResultExtras.class, com.youtube.vitess.proto.Query.ResultExtras.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ResultExtras.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 (eventTokenBuilder_ == null) { eventToken_ = null; } else { eventToken_ = null; eventTokenBuilder_ = null; } fresher_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ResultExtras_descriptor; } public com.youtube.vitess.proto.Query.ResultExtras getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ResultExtras.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ResultExtras build() { com.youtube.vitess.proto.Query.ResultExtras result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ResultExtras buildPartial() { com.youtube.vitess.proto.Query.ResultExtras result = new com.youtube.vitess.proto.Query.ResultExtras(this); if (eventTokenBuilder_ == null) { result.eventToken_ = eventToken_; } else { result.eventToken_ = eventTokenBuilder_.build(); } result.fresher_ = fresher_; 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.Query.ResultExtras) { return mergeFrom((com.youtube.vitess.proto.Query.ResultExtras)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ResultExtras other) { if (other == com.youtube.vitess.proto.Query.ResultExtras.getDefaultInstance()) return this; if (other.hasEventToken()) { mergeEventToken(other.getEventToken()); } if (other.getFresher() != false) { setFresher(other.getFresher()); } 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.Query.ResultExtras parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ResultExtras) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Query.EventToken eventToken_ = 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> eventTokenBuilder_; /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public boolean hasEventToken() { return eventTokenBuilder_ != null || eventToken_ != null; } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public com.youtube.vitess.proto.Query.EventToken getEventToken() { if (eventTokenBuilder_ == null) { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } else { return eventTokenBuilder_.getMessage(); } } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public Builder setEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (eventTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventToken_ = value; onChanged(); } else { eventTokenBuilder_.setMessage(value); } return this; } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public Builder setEventToken( com.youtube.vitess.proto.Query.EventToken.Builder builderForValue) { if (eventTokenBuilder_ == null) { eventToken_ = builderForValue.build(); onChanged(); } else { eventTokenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public Builder mergeEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (eventTokenBuilder_ == null) { if (eventToken_ != null) { eventToken_ = com.youtube.vitess.proto.Query.EventToken.newBuilder(eventToken_).mergeFrom(value).buildPartial(); } else { eventToken_ = value; } onChanged(); } else { eventTokenBuilder_.mergeFrom(value); } return this; } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public Builder clearEventToken() { if (eventTokenBuilder_ == null) { eventToken_ = null; onChanged(); } else { eventToken_ = null; eventTokenBuilder_ = null; } return this; } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public com.youtube.vitess.proto.Query.EventToken.Builder getEventTokenBuilder() { onChanged(); return getEventTokenFieldBuilder().getBuilder(); } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder() { if (eventTokenBuilder_ != null) { return eventTokenBuilder_.getMessageOrBuilder(); } else { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } } /** *
       * event_token is populated if the include_event_token flag is set
       * in ExecuteOptions.
       * 
* * optional .query.EventToken event_token = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder> getEventTokenFieldBuilder() { if (eventTokenBuilder_ == null) { eventTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder>( getEventToken(), getParentForChildren(), isClean()); eventToken_ = null; } return eventTokenBuilder_; } private boolean fresher_ ; /** *
       * If set, it means the data returned with this result is fresher
       * than the compare_token passed in the ExecuteOptions.
       * 
* * optional bool fresher = 2; */ public boolean getFresher() { return fresher_; } /** *
       * If set, it means the data returned with this result is fresher
       * than the compare_token passed in the ExecuteOptions.
       * 
* * optional bool fresher = 2; */ public Builder setFresher(boolean value) { fresher_ = value; onChanged(); return this; } /** *
       * If set, it means the data returned with this result is fresher
       * than the compare_token passed in the ExecuteOptions.
       * 
* * optional bool fresher = 2; */ public Builder clearFresher() { fresher_ = 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:query.ResultExtras) } // @@protoc_insertion_point(class_scope:query.ResultExtras) private static final com.youtube.vitess.proto.Query.ResultExtras DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ResultExtras(); } public static com.youtube.vitess.proto.Query.ResultExtras getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResultExtras parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResultExtras(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.Query.ResultExtras getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:query.QueryResult) com.google.protobuf.MessageOrBuilder { /** * repeated .query.Field fields = 1; */ java.util.List getFieldsList(); /** * repeated .query.Field fields = 1; */ com.youtube.vitess.proto.Query.Field getFields(int index); /** * repeated .query.Field fields = 1; */ int getFieldsCount(); /** * repeated .query.Field fields = 1; */ java.util.List getFieldsOrBuilderList(); /** * repeated .query.Field fields = 1; */ com.youtube.vitess.proto.Query.FieldOrBuilder getFieldsOrBuilder( int index); /** * optional uint64 rows_affected = 2; */ long getRowsAffected(); /** * optional uint64 insert_id = 3; */ long getInsertId(); /** * repeated .query.Row rows = 4; */ java.util.List getRowsList(); /** * repeated .query.Row rows = 4; */ com.youtube.vitess.proto.Query.Row getRows(int index); /** * repeated .query.Row rows = 4; */ int getRowsCount(); /** * repeated .query.Row rows = 4; */ java.util.List getRowsOrBuilderList(); /** * repeated .query.Row rows = 4; */ com.youtube.vitess.proto.Query.RowOrBuilder getRowsOrBuilder( int index); /** * optional .query.ResultExtras extras = 5; */ boolean hasExtras(); /** * optional .query.ResultExtras extras = 5; */ com.youtube.vitess.proto.Query.ResultExtras getExtras(); /** * optional .query.ResultExtras extras = 5; */ com.youtube.vitess.proto.Query.ResultExtrasOrBuilder getExtrasOrBuilder(); } /** *
   * QueryResult is returned by Execute and ExecuteStream.
   * As returned by Execute, len(fields) is always equal to len(row)
   * (for each row in rows).
   * As returned by StreamExecute, the first QueryResult has the fields
   * set, and subsequent QueryResult have rows set. And as Execute,
   * len(QueryResult[0].fields) is always equal to len(row) (for each
   * row in rows for each QueryResult in QueryResult[1:]).
   * 
* * Protobuf type {@code query.QueryResult} */ public static final class QueryResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.QueryResult) QueryResultOrBuilder { // Use QueryResult.newBuilder() to construct. private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryResult() { fields_ = java.util.Collections.emptyList(); rowsAffected_ = 0L; insertId_ = 0L; rows_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private QueryResult( 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)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.youtube.vitess.proto.Query.Field.parser(), extensionRegistry)); break; } case 16: { rowsAffected_ = input.readUInt64(); break; } case 24: { insertId_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { rows_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } rows_.add( input.readMessage(com.youtube.vitess.proto.Query.Row.parser(), extensionRegistry)); break; } case 42: { com.youtube.vitess.proto.Query.ResultExtras.Builder subBuilder = null; if (extras_ != null) { subBuilder = extras_.toBuilder(); } extras_ = input.readMessage(com.youtube.vitess.proto.Query.ResultExtras.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extras_); extras_ = 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_ & 0x00000001) == 0x00000001)) { fields_ = java.util.Collections.unmodifiableList(fields_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { rows_ = java.util.Collections.unmodifiableList(rows_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_QueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.QueryResult.class, com.youtube.vitess.proto.Query.QueryResult.Builder.class); } private int bitField0_; public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** * repeated .query.Field fields = 1; */ public java.util.List getFieldsList() { return fields_; } /** * repeated .query.Field fields = 1; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .query.Field fields = 1; */ public int getFieldsCount() { return fields_.size(); } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.Field getFields(int index) { return fields_.get(index); } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.FieldOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } public static final int ROWS_AFFECTED_FIELD_NUMBER = 2; private long rowsAffected_; /** * optional uint64 rows_affected = 2; */ public long getRowsAffected() { return rowsAffected_; } public static final int INSERT_ID_FIELD_NUMBER = 3; private long insertId_; /** * optional uint64 insert_id = 3; */ public long getInsertId() { return insertId_; } public static final int ROWS_FIELD_NUMBER = 4; private java.util.List rows_; /** * repeated .query.Row rows = 4; */ public java.util.List getRowsList() { return rows_; } /** * repeated .query.Row rows = 4; */ public java.util.List getRowsOrBuilderList() { return rows_; } /** * repeated .query.Row rows = 4; */ public int getRowsCount() { return rows_.size(); } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.Row getRows(int index) { return rows_.get(index); } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.RowOrBuilder getRowsOrBuilder( int index) { return rows_.get(index); } public static final int EXTRAS_FIELD_NUMBER = 5; private com.youtube.vitess.proto.Query.ResultExtras extras_; /** * optional .query.ResultExtras extras = 5; */ public boolean hasExtras() { return extras_ != null; } /** * optional .query.ResultExtras extras = 5; */ public com.youtube.vitess.proto.Query.ResultExtras getExtras() { return extras_ == null ? com.youtube.vitess.proto.Query.ResultExtras.getDefaultInstance() : extras_; } /** * optional .query.ResultExtras extras = 5; */ public com.youtube.vitess.proto.Query.ResultExtrasOrBuilder getExtrasOrBuilder() { return getExtras(); } 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 < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } if (rowsAffected_ != 0L) { output.writeUInt64(2, rowsAffected_); } if (insertId_ != 0L) { output.writeUInt64(3, insertId_); } for (int i = 0; i < rows_.size(); i++) { output.writeMessage(4, rows_.get(i)); } if (extras_ != null) { output.writeMessage(5, getExtras()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fields_.get(i)); } if (rowsAffected_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, rowsAffected_); } if (insertId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, insertId_); } for (int i = 0; i < rows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rows_.get(i)); } if (extras_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExtras()); } 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.Query.QueryResult)) { return super.equals(obj); } com.youtube.vitess.proto.Query.QueryResult other = (com.youtube.vitess.proto.Query.QueryResult) obj; boolean result = true; result = result && getFieldsList() .equals(other.getFieldsList()); result = result && (getRowsAffected() == other.getRowsAffected()); result = result && (getInsertId() == other.getInsertId()); result = result && getRowsList() .equals(other.getRowsList()); result = result && (hasExtras() == other.hasExtras()); if (hasExtras()) { result = result && getExtras() .equals(other.getExtras()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (37 * hash) + ROWS_AFFECTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRowsAffected()); hash = (37 * hash) + INSERT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInsertId()); if (getRowsCount() > 0) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRowsList().hashCode(); } if (hasExtras()) { hash = (37 * hash) + EXTRAS_FIELD_NUMBER; hash = (53 * hash) + getExtras().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.QueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.QueryResult 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.Query.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.QueryResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QueryResult 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.Query.QueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QueryResult 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.Query.QueryResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QueryResult 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.Query.QueryResult 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; } /** *
     * QueryResult is returned by Execute and ExecuteStream.
     * As returned by Execute, len(fields) is always equal to len(row)
     * (for each row in rows).
     * As returned by StreamExecute, the first QueryResult has the fields
     * set, and subsequent QueryResult have rows set. And as Execute,
     * len(QueryResult[0].fields) is always equal to len(row) (for each
     * row in rows for each QueryResult in QueryResult[1:]).
     * 
* * Protobuf type {@code query.QueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.QueryResult) com.youtube.vitess.proto.Query.QueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_QueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.QueryResult.class, com.youtube.vitess.proto.Query.QueryResult.Builder.class); } // Construct using com.youtube.vitess.proto.Query.QueryResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); getRowsFieldBuilder(); } } public Builder clear() { super.clear(); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } rowsAffected_ = 0L; insertId_ = 0L; if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { rowsBuilder_.clear(); } if (extrasBuilder_ == null) { extras_ = null; } else { extras_ = null; extrasBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_QueryResult_descriptor; } public com.youtube.vitess.proto.Query.QueryResult getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance(); } public com.youtube.vitess.proto.Query.QueryResult build() { com.youtube.vitess.proto.Query.QueryResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.QueryResult buildPartial() { com.youtube.vitess.proto.Query.QueryResult result = new com.youtube.vitess.proto.Query.QueryResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } result.rowsAffected_ = rowsAffected_; result.insertId_ = insertId_; if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000008); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.build(); } if (extrasBuilder_ == null) { result.extras_ = extras_; } else { result.extras_ = extrasBuilder_.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.Query.QueryResult) { return mergeFrom((com.youtube.vitess.proto.Query.QueryResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.QueryResult other) { if (other == com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance()) return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } if (other.getRowsAffected() != 0L) { setRowsAffected(other.getRowsAffected()); } if (other.getInsertId() != 0L) { setInsertId(other.getInsertId()); } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); rowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsFieldBuilder() : null; } else { rowsBuilder_.addAllMessages(other.rows_); } } } if (other.hasExtras()) { mergeExtras(other.getExtras()); } 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.Query.QueryResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.QueryResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder> fieldsBuilder_; /** * repeated .query.Field fields = 1; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .query.Field fields = 1; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.Field getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .query.Field fields = 1; */ public Builder setFields( int index, com.youtube.vitess.proto.Query.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Field fields = 1; */ public Builder setFields( int index, com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Field fields = 1; */ public Builder addFields(com.youtube.vitess.proto.Query.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * repeated .query.Field fields = 1; */ public Builder addFields( int index, com.youtube.vitess.proto.Query.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Field fields = 1; */ public Builder addFields( com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Field fields = 1; */ public Builder addFields( int index, com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Field fields = 1; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Field fields = 1; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * repeated .query.Field fields = 1; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.Field.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.FieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Field fields = 1; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.Field.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Field.getDefaultInstance()); } /** * repeated .query.Field fields = 1; */ public com.youtube.vitess.proto.Query.Field.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Field.getDefaultInstance()); } /** * repeated .query.Field fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder>( fields_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } private long rowsAffected_ ; /** * optional uint64 rows_affected = 2; */ public long getRowsAffected() { return rowsAffected_; } /** * optional uint64 rows_affected = 2; */ public Builder setRowsAffected(long value) { rowsAffected_ = value; onChanged(); return this; } /** * optional uint64 rows_affected = 2; */ public Builder clearRowsAffected() { rowsAffected_ = 0L; onChanged(); return this; } private long insertId_ ; /** * optional uint64 insert_id = 3; */ public long getInsertId() { return insertId_; } /** * optional uint64 insert_id = 3; */ public Builder setInsertId(long value) { insertId_ = value; onChanged(); return this; } /** * optional uint64 insert_id = 3; */ public Builder clearInsertId() { insertId_ = 0L; onChanged(); return this; } private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder> rowsBuilder_; /** * repeated .query.Row rows = 4; */ public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { return rowsBuilder_.getMessageList(); } } /** * repeated .query.Row rows = 4; */ public int getRowsCount() { if (rowsBuilder_ == null) { return rows_.size(); } else { return rowsBuilder_.getCount(); } } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.Row getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessage(index); } } /** * repeated .query.Row rows = 4; */ public Builder setRows( int index, com.youtube.vitess.proto.Query.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.set(index, value); onChanged(); } else { rowsBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Row rows = 4; */ public Builder setRows( int index, com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Row rows = 4; */ public Builder addRows(com.youtube.vitess.proto.Query.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(value); onChanged(); } else { rowsBuilder_.addMessage(value); } return this; } /** * repeated .query.Row rows = 4; */ public Builder addRows( int index, com.youtube.vitess.proto.Query.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(index, value); onChanged(); } else { rowsBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Row rows = 4; */ public Builder addRows( com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Row rows = 4; */ public Builder addRows( int index, com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Row rows = 4; */ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Row rows = 4; */ public Builder clearRows() { if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { rowsBuilder_.clear(); } return this; } /** * repeated .query.Row rows = 4; */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.remove(index); onChanged(); } else { rowsBuilder_.remove(index); } return this; } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.Row.Builder getRowsBuilder( int index) { return getRowsFieldBuilder().getBuilder(index); } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.RowOrBuilder getRowsOrBuilder( int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Row rows = 4; */ public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rows_); } } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.Row.Builder addRowsBuilder() { return getRowsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Row.getDefaultInstance()); } /** * repeated .query.Row rows = 4; */ public com.youtube.vitess.proto.Query.Row.Builder addRowsBuilder( int index) { return getRowsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Row.getDefaultInstance()); } /** * repeated .query.Row rows = 4; */ public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder>( rows_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } private com.youtube.vitess.proto.Query.ResultExtras extras_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.ResultExtras, com.youtube.vitess.proto.Query.ResultExtras.Builder, com.youtube.vitess.proto.Query.ResultExtrasOrBuilder> extrasBuilder_; /** * optional .query.ResultExtras extras = 5; */ public boolean hasExtras() { return extrasBuilder_ != null || extras_ != null; } /** * optional .query.ResultExtras extras = 5; */ public com.youtube.vitess.proto.Query.ResultExtras getExtras() { if (extrasBuilder_ == null) { return extras_ == null ? com.youtube.vitess.proto.Query.ResultExtras.getDefaultInstance() : extras_; } else { return extrasBuilder_.getMessage(); } } /** * optional .query.ResultExtras extras = 5; */ public Builder setExtras(com.youtube.vitess.proto.Query.ResultExtras value) { if (extrasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extras_ = value; onChanged(); } else { extrasBuilder_.setMessage(value); } return this; } /** * optional .query.ResultExtras extras = 5; */ public Builder setExtras( com.youtube.vitess.proto.Query.ResultExtras.Builder builderForValue) { if (extrasBuilder_ == null) { extras_ = builderForValue.build(); onChanged(); } else { extrasBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.ResultExtras extras = 5; */ public Builder mergeExtras(com.youtube.vitess.proto.Query.ResultExtras value) { if (extrasBuilder_ == null) { if (extras_ != null) { extras_ = com.youtube.vitess.proto.Query.ResultExtras.newBuilder(extras_).mergeFrom(value).buildPartial(); } else { extras_ = value; } onChanged(); } else { extrasBuilder_.mergeFrom(value); } return this; } /** * optional .query.ResultExtras extras = 5; */ public Builder clearExtras() { if (extrasBuilder_ == null) { extras_ = null; onChanged(); } else { extras_ = null; extrasBuilder_ = null; } return this; } /** * optional .query.ResultExtras extras = 5; */ public com.youtube.vitess.proto.Query.ResultExtras.Builder getExtrasBuilder() { onChanged(); return getExtrasFieldBuilder().getBuilder(); } /** * optional .query.ResultExtras extras = 5; */ public com.youtube.vitess.proto.Query.ResultExtrasOrBuilder getExtrasOrBuilder() { if (extrasBuilder_ != null) { return extrasBuilder_.getMessageOrBuilder(); } else { return extras_ == null ? com.youtube.vitess.proto.Query.ResultExtras.getDefaultInstance() : extras_; } } /** * optional .query.ResultExtras extras = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.ResultExtras, com.youtube.vitess.proto.Query.ResultExtras.Builder, com.youtube.vitess.proto.Query.ResultExtrasOrBuilder> getExtrasFieldBuilder() { if (extrasBuilder_ == null) { extrasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.ResultExtras, com.youtube.vitess.proto.Query.ResultExtras.Builder, com.youtube.vitess.proto.Query.ResultExtrasOrBuilder>( getExtras(), getParentForChildren(), isClean()); extras_ = null; } return extrasBuilder_; } 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:query.QueryResult) } // @@protoc_insertion_point(class_scope:query.QueryResult) private static final com.youtube.vitess.proto.Query.QueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.QueryResult(); } public static com.youtube.vitess.proto.Query.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public QueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryResult(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.Query.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamEventOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamEvent) com.google.protobuf.MessageOrBuilder { /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ java.util.List getStatementsList(); /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ com.youtube.vitess.proto.Query.StreamEvent.Statement getStatements(int index); /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ int getStatementsCount(); /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ java.util.List getStatementsOrBuilderList(); /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder getStatementsOrBuilder( int index); /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ boolean hasEventToken(); /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ com.youtube.vitess.proto.Query.EventToken getEventToken(); /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder(); } /** *
   * StreamEvent describes a set of transformations that happened as a
   * single transactional unit on a server. It is streamed back by the
   * Update Stream calls.
   * 
* * Protobuf type {@code query.StreamEvent} */ public static final class StreamEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StreamEvent) StreamEventOrBuilder { // Use StreamEvent.newBuilder() to construct. private StreamEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamEvent() { statements_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StreamEvent( 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)) { statements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } statements_.add( input.readMessage(com.youtube.vitess.proto.Query.StreamEvent.Statement.parser(), extensionRegistry)); break; } case 18: { com.youtube.vitess.proto.Query.EventToken.Builder subBuilder = null; if (eventToken_ != null) { subBuilder = eventToken_.toBuilder(); } eventToken_ = input.readMessage(com.youtube.vitess.proto.Query.EventToken.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eventToken_); eventToken_ = 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_ & 0x00000001) == 0x00000001)) { statements_ = java.util.Collections.unmodifiableList(statements_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamEvent.class, com.youtube.vitess.proto.Query.StreamEvent.Builder.class); } public interface StatementOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamEvent.Statement) com.google.protobuf.MessageOrBuilder { /** * optional .query.StreamEvent.Statement.Category category = 1; */ int getCategoryValue(); /** * optional .query.StreamEvent.Statement.Category category = 1; */ com.youtube.vitess.proto.Query.StreamEvent.Statement.Category getCategory(); /** *
       * table_name, primary_key_fields and primary_key_values are set for DML.
       * 
* * optional string table_name = 2; */ java.lang.String getTableName(); /** *
       * table_name, primary_key_fields and primary_key_values are set for DML.
       * 
* * optional string table_name = 2; */ com.google.protobuf.ByteString getTableNameBytes(); /** * repeated .query.Field primary_key_fields = 3; */ java.util.List getPrimaryKeyFieldsList(); /** * repeated .query.Field primary_key_fields = 3; */ com.youtube.vitess.proto.Query.Field getPrimaryKeyFields(int index); /** * repeated .query.Field primary_key_fields = 3; */ int getPrimaryKeyFieldsCount(); /** * repeated .query.Field primary_key_fields = 3; */ java.util.List getPrimaryKeyFieldsOrBuilderList(); /** * repeated .query.Field primary_key_fields = 3; */ com.youtube.vitess.proto.Query.FieldOrBuilder getPrimaryKeyFieldsOrBuilder( int index); /** * repeated .query.Row primary_key_values = 4; */ java.util.List getPrimaryKeyValuesList(); /** * repeated .query.Row primary_key_values = 4; */ com.youtube.vitess.proto.Query.Row getPrimaryKeyValues(int index); /** * repeated .query.Row primary_key_values = 4; */ int getPrimaryKeyValuesCount(); /** * repeated .query.Row primary_key_values = 4; */ java.util.List getPrimaryKeyValuesOrBuilderList(); /** * repeated .query.Row primary_key_values = 4; */ com.youtube.vitess.proto.Query.RowOrBuilder getPrimaryKeyValuesOrBuilder( int index); /** *
       * sql is set for all queries.
       * FIXME(alainjobart) we may not need it for DMLs.
       * 
* * optional bytes sql = 5; */ com.google.protobuf.ByteString getSql(); } /** *
     * One individual Statement in a transaction.
     * 
* * Protobuf type {@code query.StreamEvent.Statement} */ public static final class Statement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StreamEvent.Statement) StatementOrBuilder { // Use Statement.newBuilder() to construct. private Statement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Statement() { category_ = 0; tableName_ = ""; primaryKeyFields_ = java.util.Collections.emptyList(); primaryKeyValues_ = java.util.Collections.emptyList(); sql_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Statement( 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(); category_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tableName_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { primaryKeyFields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } primaryKeyFields_.add( input.readMessage(com.youtube.vitess.proto.Query.Field.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { primaryKeyValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } primaryKeyValues_.add( input.readMessage(com.youtube.vitess.proto.Query.Row.parser(), extensionRegistry)); break; } case 42: { sql_ = 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)) { primaryKeyFields_ = java.util.Collections.unmodifiableList(primaryKeyFields_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { primaryKeyValues_ = java.util.Collections.unmodifiableList(primaryKeyValues_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_Statement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_Statement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamEvent.Statement.class, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder.class); } /** *
       * The category of one statement.
       * 
* * Protobuf enum {@code query.StreamEvent.Statement.Category} */ public enum Category implements com.google.protobuf.ProtocolMessageEnum { /** * Error = 0; */ Error(0), /** * DML = 1; */ DML(1), /** * DDL = 2; */ DDL(2), UNRECOGNIZED(-1), ; /** * Error = 0; */ public static final int Error_VALUE = 0; /** * DML = 1; */ public static final int DML_VALUE = 1; /** * DDL = 2; */ public static final int DDL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Category valueOf(int value) { return forNumber(value); } public static Category forNumber(int value) { switch (value) { case 0: return Error; case 1: return DML; case 2: return DDL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Category> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Category findValueByNumber(int number) { return Category.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.StreamEvent.Statement.getDescriptor().getEnumTypes().get(0); } private static final Category[] VALUES = values(); public static Category valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Category(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.StreamEvent.Statement.Category) } private int bitField0_; public static final int CATEGORY_FIELD_NUMBER = 1; private int category_; /** * optional .query.StreamEvent.Statement.Category category = 1; */ public int getCategoryValue() { return category_; } /** * optional .query.StreamEvent.Statement.Category category = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement.Category getCategory() { com.youtube.vitess.proto.Query.StreamEvent.Statement.Category result = com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.valueOf(category_); return result == null ? com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.UNRECOGNIZED : result; } public static final int TABLE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object tableName_; /** *
       * table_name, primary_key_fields and primary_key_values are set for DML.
       * 
* * optional string table_name = 2; */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; 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(); tableName_ = s; return s; } } /** *
       * table_name, primary_key_fields and primary_key_values are set for DML.
       * 
* * optional string table_name = 2; */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIMARY_KEY_FIELDS_FIELD_NUMBER = 3; private java.util.List primaryKeyFields_; /** * repeated .query.Field primary_key_fields = 3; */ public java.util.List getPrimaryKeyFieldsList() { return primaryKeyFields_; } /** * repeated .query.Field primary_key_fields = 3; */ public java.util.List getPrimaryKeyFieldsOrBuilderList() { return primaryKeyFields_; } /** * repeated .query.Field primary_key_fields = 3; */ public int getPrimaryKeyFieldsCount() { return primaryKeyFields_.size(); } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.Field getPrimaryKeyFields(int index) { return primaryKeyFields_.get(index); } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.FieldOrBuilder getPrimaryKeyFieldsOrBuilder( int index) { return primaryKeyFields_.get(index); } public static final int PRIMARY_KEY_VALUES_FIELD_NUMBER = 4; private java.util.List primaryKeyValues_; /** * repeated .query.Row primary_key_values = 4; */ public java.util.List getPrimaryKeyValuesList() { return primaryKeyValues_; } /** * repeated .query.Row primary_key_values = 4; */ public java.util.List getPrimaryKeyValuesOrBuilderList() { return primaryKeyValues_; } /** * repeated .query.Row primary_key_values = 4; */ public int getPrimaryKeyValuesCount() { return primaryKeyValues_.size(); } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.Row getPrimaryKeyValues(int index) { return primaryKeyValues_.get(index); } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.RowOrBuilder getPrimaryKeyValuesOrBuilder( int index) { return primaryKeyValues_.get(index); } public static final int SQL_FIELD_NUMBER = 5; private com.google.protobuf.ByteString sql_; /** *
       * sql is set for all queries.
       * FIXME(alainjobart) we may not need it for DMLs.
       * 
* * optional bytes sql = 5; */ public com.google.protobuf.ByteString getSql() { return sql_; } 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 (category_ != com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.Error.getNumber()) { output.writeEnum(1, category_); } if (!getTableNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_); } for (int i = 0; i < primaryKeyFields_.size(); i++) { output.writeMessage(3, primaryKeyFields_.get(i)); } for (int i = 0; i < primaryKeyValues_.size(); i++) { output.writeMessage(4, primaryKeyValues_.get(i)); } if (!sql_.isEmpty()) { output.writeBytes(5, sql_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (category_ != com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.Error.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, category_); } if (!getTableNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_); } for (int i = 0; i < primaryKeyFields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, primaryKeyFields_.get(i)); } for (int i = 0; i < primaryKeyValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, primaryKeyValues_.get(i)); } if (!sql_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, sql_); } 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.Query.StreamEvent.Statement)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamEvent.Statement other = (com.youtube.vitess.proto.Query.StreamEvent.Statement) obj; boolean result = true; result = result && category_ == other.category_; result = result && getTableName() .equals(other.getTableName()); result = result && getPrimaryKeyFieldsList() .equals(other.getPrimaryKeyFieldsList()); result = result && getPrimaryKeyValuesList() .equals(other.getPrimaryKeyValuesList()); result = result && getSql() .equals(other.getSql()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + category_; hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (getPrimaryKeyFieldsCount() > 0) { hash = (37 * hash) + PRIMARY_KEY_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getPrimaryKeyFieldsList().hashCode(); } if (getPrimaryKeyValuesCount() > 0) { hash = (37 * hash) + PRIMARY_KEY_VALUES_FIELD_NUMBER; hash = (53 * hash) + getPrimaryKeyValuesList().hashCode(); } hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.StreamEvent.Statement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement 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.Query.StreamEvent.Statement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement 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.Query.StreamEvent.Statement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement 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.Query.StreamEvent.Statement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement 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.Query.StreamEvent.Statement 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; } /** *
       * One individual Statement in a transaction.
       * 
* * Protobuf type {@code query.StreamEvent.Statement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamEvent.Statement) com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_Statement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_Statement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamEvent.Statement.class, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StreamEvent.Statement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPrimaryKeyFieldsFieldBuilder(); getPrimaryKeyValuesFieldBuilder(); } } public Builder clear() { super.clear(); category_ = 0; tableName_ = ""; if (primaryKeyFieldsBuilder_ == null) { primaryKeyFields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { primaryKeyFieldsBuilder_.clear(); } if (primaryKeyValuesBuilder_ == null) { primaryKeyValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { primaryKeyValuesBuilder_.clear(); } sql_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_Statement_descriptor; } public com.youtube.vitess.proto.Query.StreamEvent.Statement getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamEvent.Statement.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamEvent.Statement build() { com.youtube.vitess.proto.Query.StreamEvent.Statement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamEvent.Statement buildPartial() { com.youtube.vitess.proto.Query.StreamEvent.Statement result = new com.youtube.vitess.proto.Query.StreamEvent.Statement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.category_ = category_; result.tableName_ = tableName_; if (primaryKeyFieldsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { primaryKeyFields_ = java.util.Collections.unmodifiableList(primaryKeyFields_); bitField0_ = (bitField0_ & ~0x00000004); } result.primaryKeyFields_ = primaryKeyFields_; } else { result.primaryKeyFields_ = primaryKeyFieldsBuilder_.build(); } if (primaryKeyValuesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { primaryKeyValues_ = java.util.Collections.unmodifiableList(primaryKeyValues_); bitField0_ = (bitField0_ & ~0x00000008); } result.primaryKeyValues_ = primaryKeyValues_; } else { result.primaryKeyValues_ = primaryKeyValuesBuilder_.build(); } result.sql_ = sql_; 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.Query.StreamEvent.Statement) { return mergeFrom((com.youtube.vitess.proto.Query.StreamEvent.Statement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamEvent.Statement other) { if (other == com.youtube.vitess.proto.Query.StreamEvent.Statement.getDefaultInstance()) return this; if (other.category_ != 0) { setCategoryValue(other.getCategoryValue()); } if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; onChanged(); } if (primaryKeyFieldsBuilder_ == null) { if (!other.primaryKeyFields_.isEmpty()) { if (primaryKeyFields_.isEmpty()) { primaryKeyFields_ = other.primaryKeyFields_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.addAll(other.primaryKeyFields_); } onChanged(); } } else { if (!other.primaryKeyFields_.isEmpty()) { if (primaryKeyFieldsBuilder_.isEmpty()) { primaryKeyFieldsBuilder_.dispose(); primaryKeyFieldsBuilder_ = null; primaryKeyFields_ = other.primaryKeyFields_; bitField0_ = (bitField0_ & ~0x00000004); primaryKeyFieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPrimaryKeyFieldsFieldBuilder() : null; } else { primaryKeyFieldsBuilder_.addAllMessages(other.primaryKeyFields_); } } } if (primaryKeyValuesBuilder_ == null) { if (!other.primaryKeyValues_.isEmpty()) { if (primaryKeyValues_.isEmpty()) { primaryKeyValues_ = other.primaryKeyValues_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.addAll(other.primaryKeyValues_); } onChanged(); } } else { if (!other.primaryKeyValues_.isEmpty()) { if (primaryKeyValuesBuilder_.isEmpty()) { primaryKeyValuesBuilder_.dispose(); primaryKeyValuesBuilder_ = null; primaryKeyValues_ = other.primaryKeyValues_; bitField0_ = (bitField0_ & ~0x00000008); primaryKeyValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPrimaryKeyValuesFieldBuilder() : null; } else { primaryKeyValuesBuilder_.addAllMessages(other.primaryKeyValues_); } } } if (other.getSql() != com.google.protobuf.ByteString.EMPTY) { setSql(other.getSql()); } 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.Query.StreamEvent.Statement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StreamEvent.Statement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int category_ = 0; /** * optional .query.StreamEvent.Statement.Category category = 1; */ public int getCategoryValue() { return category_; } /** * optional .query.StreamEvent.Statement.Category category = 1; */ public Builder setCategoryValue(int value) { category_ = value; onChanged(); return this; } /** * optional .query.StreamEvent.Statement.Category category = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement.Category getCategory() { com.youtube.vitess.proto.Query.StreamEvent.Statement.Category result = com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.valueOf(category_); return result == null ? com.youtube.vitess.proto.Query.StreamEvent.Statement.Category.UNRECOGNIZED : result; } /** * optional .query.StreamEvent.Statement.Category category = 1; */ public Builder setCategory(com.youtube.vitess.proto.Query.StreamEvent.Statement.Category value) { if (value == null) { throw new NullPointerException(); } category_ = value.getNumber(); onChanged(); return this; } /** * optional .query.StreamEvent.Statement.Category category = 1; */ public Builder clearCategory() { category_ = 0; onChanged(); return this; } private java.lang.Object tableName_ = ""; /** *
         * table_name, primary_key_fields and primary_key_values are set for DML.
         * 
* * optional string table_name = 2; */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * table_name, primary_key_fields and primary_key_values are set for DML.
         * 
* * optional string table_name = 2; */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * table_name, primary_key_fields and primary_key_values are set for DML.
         * 
* * optional string table_name = 2; */ public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tableName_ = value; onChanged(); return this; } /** *
         * table_name, primary_key_fields and primary_key_values are set for DML.
         * 
* * optional string table_name = 2; */ public Builder clearTableName() { tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** *
         * table_name, primary_key_fields and primary_key_values are set for DML.
         * 
* * optional string table_name = 2; */ public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableName_ = value; onChanged(); return this; } private java.util.List primaryKeyFields_ = java.util.Collections.emptyList(); private void ensurePrimaryKeyFieldsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { primaryKeyFields_ = new java.util.ArrayList(primaryKeyFields_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder> primaryKeyFieldsBuilder_; /** * repeated .query.Field primary_key_fields = 3; */ public java.util.List getPrimaryKeyFieldsList() { if (primaryKeyFieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(primaryKeyFields_); } else { return primaryKeyFieldsBuilder_.getMessageList(); } } /** * repeated .query.Field primary_key_fields = 3; */ public int getPrimaryKeyFieldsCount() { if (primaryKeyFieldsBuilder_ == null) { return primaryKeyFields_.size(); } else { return primaryKeyFieldsBuilder_.getCount(); } } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.Field getPrimaryKeyFields(int index) { if (primaryKeyFieldsBuilder_ == null) { return primaryKeyFields_.get(index); } else { return primaryKeyFieldsBuilder_.getMessage(index); } } /** * repeated .query.Field primary_key_fields = 3; */ public Builder setPrimaryKeyFields( int index, com.youtube.vitess.proto.Query.Field value) { if (primaryKeyFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.set(index, value); onChanged(); } else { primaryKeyFieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder setPrimaryKeyFields( int index, com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (primaryKeyFieldsBuilder_ == null) { ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.set(index, builderForValue.build()); onChanged(); } else { primaryKeyFieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder addPrimaryKeyFields(com.youtube.vitess.proto.Query.Field value) { if (primaryKeyFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.add(value); onChanged(); } else { primaryKeyFieldsBuilder_.addMessage(value); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder addPrimaryKeyFields( int index, com.youtube.vitess.proto.Query.Field value) { if (primaryKeyFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.add(index, value); onChanged(); } else { primaryKeyFieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder addPrimaryKeyFields( com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (primaryKeyFieldsBuilder_ == null) { ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.add(builderForValue.build()); onChanged(); } else { primaryKeyFieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder addPrimaryKeyFields( int index, com.youtube.vitess.proto.Query.Field.Builder builderForValue) { if (primaryKeyFieldsBuilder_ == null) { ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.add(index, builderForValue.build()); onChanged(); } else { primaryKeyFieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder addAllPrimaryKeyFields( java.lang.Iterable values) { if (primaryKeyFieldsBuilder_ == null) { ensurePrimaryKeyFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, primaryKeyFields_); onChanged(); } else { primaryKeyFieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder clearPrimaryKeyFields() { if (primaryKeyFieldsBuilder_ == null) { primaryKeyFields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { primaryKeyFieldsBuilder_.clear(); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public Builder removePrimaryKeyFields(int index) { if (primaryKeyFieldsBuilder_ == null) { ensurePrimaryKeyFieldsIsMutable(); primaryKeyFields_.remove(index); onChanged(); } else { primaryKeyFieldsBuilder_.remove(index); } return this; } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.Field.Builder getPrimaryKeyFieldsBuilder( int index) { return getPrimaryKeyFieldsFieldBuilder().getBuilder(index); } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.FieldOrBuilder getPrimaryKeyFieldsOrBuilder( int index) { if (primaryKeyFieldsBuilder_ == null) { return primaryKeyFields_.get(index); } else { return primaryKeyFieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Field primary_key_fields = 3; */ public java.util.List getPrimaryKeyFieldsOrBuilderList() { if (primaryKeyFieldsBuilder_ != null) { return primaryKeyFieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(primaryKeyFields_); } } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.Field.Builder addPrimaryKeyFieldsBuilder() { return getPrimaryKeyFieldsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Field.getDefaultInstance()); } /** * repeated .query.Field primary_key_fields = 3; */ public com.youtube.vitess.proto.Query.Field.Builder addPrimaryKeyFieldsBuilder( int index) { return getPrimaryKeyFieldsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Field.getDefaultInstance()); } /** * repeated .query.Field primary_key_fields = 3; */ public java.util.List getPrimaryKeyFieldsBuilderList() { return getPrimaryKeyFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder> getPrimaryKeyFieldsFieldBuilder() { if (primaryKeyFieldsBuilder_ == null) { primaryKeyFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Field, com.youtube.vitess.proto.Query.Field.Builder, com.youtube.vitess.proto.Query.FieldOrBuilder>( primaryKeyFields_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); primaryKeyFields_ = null; } return primaryKeyFieldsBuilder_; } private java.util.List primaryKeyValues_ = java.util.Collections.emptyList(); private void ensurePrimaryKeyValuesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { primaryKeyValues_ = new java.util.ArrayList(primaryKeyValues_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder> primaryKeyValuesBuilder_; /** * repeated .query.Row primary_key_values = 4; */ public java.util.List getPrimaryKeyValuesList() { if (primaryKeyValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(primaryKeyValues_); } else { return primaryKeyValuesBuilder_.getMessageList(); } } /** * repeated .query.Row primary_key_values = 4; */ public int getPrimaryKeyValuesCount() { if (primaryKeyValuesBuilder_ == null) { return primaryKeyValues_.size(); } else { return primaryKeyValuesBuilder_.getCount(); } } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.Row getPrimaryKeyValues(int index) { if (primaryKeyValuesBuilder_ == null) { return primaryKeyValues_.get(index); } else { return primaryKeyValuesBuilder_.getMessage(index); } } /** * repeated .query.Row primary_key_values = 4; */ public Builder setPrimaryKeyValues( int index, com.youtube.vitess.proto.Query.Row value) { if (primaryKeyValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.set(index, value); onChanged(); } else { primaryKeyValuesBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder setPrimaryKeyValues( int index, com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (primaryKeyValuesBuilder_ == null) { ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.set(index, builderForValue.build()); onChanged(); } else { primaryKeyValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder addPrimaryKeyValues(com.youtube.vitess.proto.Query.Row value) { if (primaryKeyValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.add(value); onChanged(); } else { primaryKeyValuesBuilder_.addMessage(value); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder addPrimaryKeyValues( int index, com.youtube.vitess.proto.Query.Row value) { if (primaryKeyValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.add(index, value); onChanged(); } else { primaryKeyValuesBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder addPrimaryKeyValues( com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (primaryKeyValuesBuilder_ == null) { ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.add(builderForValue.build()); onChanged(); } else { primaryKeyValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder addPrimaryKeyValues( int index, com.youtube.vitess.proto.Query.Row.Builder builderForValue) { if (primaryKeyValuesBuilder_ == null) { ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.add(index, builderForValue.build()); onChanged(); } else { primaryKeyValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder addAllPrimaryKeyValues( java.lang.Iterable values) { if (primaryKeyValuesBuilder_ == null) { ensurePrimaryKeyValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, primaryKeyValues_); onChanged(); } else { primaryKeyValuesBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder clearPrimaryKeyValues() { if (primaryKeyValuesBuilder_ == null) { primaryKeyValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { primaryKeyValuesBuilder_.clear(); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public Builder removePrimaryKeyValues(int index) { if (primaryKeyValuesBuilder_ == null) { ensurePrimaryKeyValuesIsMutable(); primaryKeyValues_.remove(index); onChanged(); } else { primaryKeyValuesBuilder_.remove(index); } return this; } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.Row.Builder getPrimaryKeyValuesBuilder( int index) { return getPrimaryKeyValuesFieldBuilder().getBuilder(index); } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.RowOrBuilder getPrimaryKeyValuesOrBuilder( int index) { if (primaryKeyValuesBuilder_ == null) { return primaryKeyValues_.get(index); } else { return primaryKeyValuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Row primary_key_values = 4; */ public java.util.List getPrimaryKeyValuesOrBuilderList() { if (primaryKeyValuesBuilder_ != null) { return primaryKeyValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(primaryKeyValues_); } } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.Row.Builder addPrimaryKeyValuesBuilder() { return getPrimaryKeyValuesFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Row.getDefaultInstance()); } /** * repeated .query.Row primary_key_values = 4; */ public com.youtube.vitess.proto.Query.Row.Builder addPrimaryKeyValuesBuilder( int index) { return getPrimaryKeyValuesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Row.getDefaultInstance()); } /** * repeated .query.Row primary_key_values = 4; */ public java.util.List getPrimaryKeyValuesBuilderList() { return getPrimaryKeyValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder> getPrimaryKeyValuesFieldBuilder() { if (primaryKeyValuesBuilder_ == null) { primaryKeyValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Row, com.youtube.vitess.proto.Query.Row.Builder, com.youtube.vitess.proto.Query.RowOrBuilder>( primaryKeyValues_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); primaryKeyValues_ = null; } return primaryKeyValuesBuilder_; } private com.google.protobuf.ByteString sql_ = com.google.protobuf.ByteString.EMPTY; /** *
         * sql is set for all queries.
         * FIXME(alainjobart) we may not need it for DMLs.
         * 
* * optional bytes sql = 5; */ public com.google.protobuf.ByteString getSql() { return sql_; } /** *
         * sql is set for all queries.
         * FIXME(alainjobart) we may not need it for DMLs.
         * 
* * optional bytes sql = 5; */ public Builder setSql(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sql_ = value; onChanged(); return this; } /** *
         * sql is set for all queries.
         * FIXME(alainjobart) we may not need it for DMLs.
         * 
* * optional bytes sql = 5; */ public Builder clearSql() { sql_ = getDefaultInstance().getSql(); 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:query.StreamEvent.Statement) } // @@protoc_insertion_point(class_scope:query.StreamEvent.Statement) private static final com.youtube.vitess.proto.Query.StreamEvent.Statement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamEvent.Statement(); } public static com.youtube.vitess.proto.Query.StreamEvent.Statement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Statement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statement(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.Query.StreamEvent.Statement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int STATEMENTS_FIELD_NUMBER = 1; private java.util.List statements_; /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public java.util.List getStatementsList() { return statements_; } /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public java.util.List getStatementsOrBuilderList() { return statements_; } /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public int getStatementsCount() { return statements_.size(); } /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement getStatements(int index) { return statements_.get(index); } /** *
     * The statements in this transaction.
     * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder getStatementsOrBuilder( int index) { return statements_.get(index); } public static final int EVENT_TOKEN_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.EventToken eventToken_; /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ public boolean hasEventToken() { return eventToken_ != null; } /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ public com.youtube.vitess.proto.Query.EventToken getEventToken() { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } /** *
     * The Event Token for this event.
     * 
* * optional .query.EventToken event_token = 2; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder() { return getEventToken(); } 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 < statements_.size(); i++) { output.writeMessage(1, statements_.get(i)); } if (eventToken_ != null) { output.writeMessage(2, getEventToken()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < statements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, statements_.get(i)); } if (eventToken_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEventToken()); } 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.Query.StreamEvent)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamEvent other = (com.youtube.vitess.proto.Query.StreamEvent) obj; boolean result = true; result = result && getStatementsList() .equals(other.getStatementsList()); result = result && (hasEventToken() == other.hasEventToken()); if (hasEventToken()) { result = result && getEventToken() .equals(other.getEventToken()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getStatementsCount() > 0) { hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; hash = (53 * hash) + getStatementsList().hashCode(); } if (hasEventToken()) { hash = (37 * hash) + EVENT_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getEventToken().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.StreamEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamEvent 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.Query.StreamEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StreamEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent 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.Query.StreamEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent 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.Query.StreamEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamEvent 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.Query.StreamEvent 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; } /** *
     * StreamEvent describes a set of transformations that happened as a
     * single transactional unit on a server. It is streamed back by the
     * Update Stream calls.
     * 
* * Protobuf type {@code query.StreamEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamEvent) com.youtube.vitess.proto.Query.StreamEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamEvent.class, com.youtube.vitess.proto.Query.StreamEvent.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StreamEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatementsFieldBuilder(); } } public Builder clear() { super.clear(); if (statementsBuilder_ == null) { statements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { statementsBuilder_.clear(); } if (eventTokenBuilder_ == null) { eventToken_ = null; } else { eventToken_ = null; eventTokenBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_StreamEvent_descriptor; } public com.youtube.vitess.proto.Query.StreamEvent getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamEvent build() { com.youtube.vitess.proto.Query.StreamEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamEvent buildPartial() { com.youtube.vitess.proto.Query.StreamEvent result = new com.youtube.vitess.proto.Query.StreamEvent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (statementsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { statements_ = java.util.Collections.unmodifiableList(statements_); bitField0_ = (bitField0_ & ~0x00000001); } result.statements_ = statements_; } else { result.statements_ = statementsBuilder_.build(); } if (eventTokenBuilder_ == null) { result.eventToken_ = eventToken_; } else { result.eventToken_ = eventTokenBuilder_.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.Query.StreamEvent) { return mergeFrom((com.youtube.vitess.proto.Query.StreamEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamEvent other) { if (other == com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance()) return this; if (statementsBuilder_ == null) { if (!other.statements_.isEmpty()) { if (statements_.isEmpty()) { statements_ = other.statements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); } onChanged(); } } else { if (!other.statements_.isEmpty()) { if (statementsBuilder_.isEmpty()) { statementsBuilder_.dispose(); statementsBuilder_ = null; statements_ = other.statements_; bitField0_ = (bitField0_ & ~0x00000001); statementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatementsFieldBuilder() : null; } else { statementsBuilder_.addAllMessages(other.statements_); } } } if (other.hasEventToken()) { mergeEventToken(other.getEventToken()); } 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.Query.StreamEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StreamEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List statements_ = java.util.Collections.emptyList(); private void ensureStatementsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { statements_ = new java.util.ArrayList(statements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent.Statement, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder, com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder> statementsBuilder_; /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public java.util.List getStatementsList() { if (statementsBuilder_ == null) { return java.util.Collections.unmodifiableList(statements_); } else { return statementsBuilder_.getMessageList(); } } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public int getStatementsCount() { if (statementsBuilder_ == null) { return statements_.size(); } else { return statementsBuilder_.getCount(); } } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement getStatements(int index) { if (statementsBuilder_ == null) { return statements_.get(index); } else { return statementsBuilder_.getMessage(index); } } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder setStatements( int index, com.youtube.vitess.proto.Query.StreamEvent.Statement value) { if (statementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); onChanged(); } else { statementsBuilder_.setMessage(index, value); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder setStatements( int index, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder builderForValue) { if (statementsBuilder_ == null) { ensureStatementsIsMutable(); statements_.set(index, builderForValue.build()); onChanged(); } else { statementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder addStatements(com.youtube.vitess.proto.Query.StreamEvent.Statement value) { if (statementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); onChanged(); } else { statementsBuilder_.addMessage(value); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder addStatements( int index, com.youtube.vitess.proto.Query.StreamEvent.Statement value) { if (statementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(index, value); onChanged(); } else { statementsBuilder_.addMessage(index, value); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder addStatements( com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder builderForValue) { if (statementsBuilder_ == null) { ensureStatementsIsMutable(); statements_.add(builderForValue.build()); onChanged(); } else { statementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder addStatements( int index, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder builderForValue) { if (statementsBuilder_ == null) { ensureStatementsIsMutable(); statements_.add(index, builderForValue.build()); onChanged(); } else { statementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder addAllStatements( java.lang.Iterable values) { if (statementsBuilder_ == null) { ensureStatementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, statements_); onChanged(); } else { statementsBuilder_.addAllMessages(values); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder clearStatements() { if (statementsBuilder_ == null) { statements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { statementsBuilder_.clear(); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public Builder removeStatements(int index) { if (statementsBuilder_ == null) { ensureStatementsIsMutable(); statements_.remove(index); onChanged(); } else { statementsBuilder_.remove(index); } return this; } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder getStatementsBuilder( int index) { return getStatementsFieldBuilder().getBuilder(index); } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder getStatementsOrBuilder( int index) { if (statementsBuilder_ == null) { return statements_.get(index); } else { return statementsBuilder_.getMessageOrBuilder(index); } } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public java.util.List getStatementsOrBuilderList() { if (statementsBuilder_ != null) { return statementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(statements_); } } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder addStatementsBuilder() { return getStatementsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.StreamEvent.Statement.getDefaultInstance()); } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder addStatementsBuilder( int index) { return getStatementsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.StreamEvent.Statement.getDefaultInstance()); } /** *
       * The statements in this transaction.
       * 
* * repeated .query.StreamEvent.Statement statements = 1; */ public java.util.List getStatementsBuilderList() { return getStatementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent.Statement, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder, com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder> getStatementsFieldBuilder() { if (statementsBuilder_ == null) { statementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.StreamEvent.Statement, com.youtube.vitess.proto.Query.StreamEvent.Statement.Builder, com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder>( statements_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); statements_ = null; } return statementsBuilder_; } private com.youtube.vitess.proto.Query.EventToken eventToken_ = 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> eventTokenBuilder_; /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public boolean hasEventToken() { return eventTokenBuilder_ != null || eventToken_ != null; } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public com.youtube.vitess.proto.Query.EventToken getEventToken() { if (eventTokenBuilder_ == null) { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } else { return eventTokenBuilder_.getMessage(); } } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public Builder setEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (eventTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventToken_ = value; onChanged(); } else { eventTokenBuilder_.setMessage(value); } return this; } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public Builder setEventToken( com.youtube.vitess.proto.Query.EventToken.Builder builderForValue) { if (eventTokenBuilder_ == null) { eventToken_ = builderForValue.build(); onChanged(); } else { eventTokenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public Builder mergeEventToken(com.youtube.vitess.proto.Query.EventToken value) { if (eventTokenBuilder_ == null) { if (eventToken_ != null) { eventToken_ = com.youtube.vitess.proto.Query.EventToken.newBuilder(eventToken_).mergeFrom(value).buildPartial(); } else { eventToken_ = value; } onChanged(); } else { eventTokenBuilder_.mergeFrom(value); } return this; } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public Builder clearEventToken() { if (eventTokenBuilder_ == null) { eventToken_ = null; onChanged(); } else { eventToken_ = null; eventTokenBuilder_ = null; } return this; } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public com.youtube.vitess.proto.Query.EventToken.Builder getEventTokenBuilder() { onChanged(); return getEventTokenFieldBuilder().getBuilder(); } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ public com.youtube.vitess.proto.Query.EventTokenOrBuilder getEventTokenOrBuilder() { if (eventTokenBuilder_ != null) { return eventTokenBuilder_.getMessageOrBuilder(); } else { return eventToken_ == null ? com.youtube.vitess.proto.Query.EventToken.getDefaultInstance() : eventToken_; } } /** *
       * The Event Token for this event.
       * 
* * optional .query.EventToken event_token = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder> getEventTokenFieldBuilder() { if (eventTokenBuilder_ == null) { eventTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.EventToken, com.youtube.vitess.proto.Query.EventToken.Builder, com.youtube.vitess.proto.Query.EventTokenOrBuilder>( getEventToken(), getParentForChildren(), isClean()); eventToken_ = null; } return eventTokenBuilder_; } 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:query.StreamEvent) } // @@protoc_insertion_point(class_scope:query.StreamEvent) private static final com.youtube.vitess.proto.Query.StreamEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamEvent(); } public static com.youtube.vitess.proto.Query.StreamEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreamEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamEvent(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.Query.StreamEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ExecuteRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional .query.BoundQuery query = 4; */ boolean hasQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** * optional int64 transaction_id = 5; */ long getTransactionId(); /** * optional .query.ExecuteOptions options = 6; */ boolean hasOptions(); /** * optional .query.ExecuteOptions options = 6; */ com.youtube.vitess.proto.Query.ExecuteOptions getOptions(); /** * optional .query.ExecuteOptions options = 6; */ com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * ExecuteRequest is the payload to Execute
   * 
* * Protobuf type {@code query.ExecuteRequest} */ public static final class ExecuteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ExecuteRequest) ExecuteRequestOrBuilder { // Use ExecuteRequest.newBuilder() to construct. private ExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteRequest() { transactionId_ = 0L; } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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 40: { transactionId_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteRequest.class, com.youtube.vitess.proto.Query.ExecuteRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERY_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Query.BoundQuery query_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return query_ != null; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQuery() { return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 5; private long transactionId_; /** * optional int64 transaction_id = 5; */ public long getTransactionId() { return transactionId_; } public static final int OPTIONS_FIELD_NUMBER = 6; private com.youtube.vitess.proto.Query.ExecuteOptions options_; /** * optional .query.ExecuteOptions options = 6; */ public boolean hasOptions() { return options_ != null; } /** * optional .query.ExecuteOptions options = 6; */ public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() { return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (query_ != null) { output.writeMessage(4, getQuery()); } if (transactionId_ != 0L) { output.writeInt64(5, transactionId_); } if (options_ != null) { output.writeMessage(6, getOptions()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getQuery()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, transactionId_); } 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.Query.ExecuteRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ExecuteRequest other = (com.youtube.vitess.proto.Query.ExecuteRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); } hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionId()); 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.Query.ExecuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.ExecuteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ExecuteRequest) com.youtube.vitess.proto.Query.ExecuteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteRequest.class, com.youtube.vitess.proto.Query.ExecuteRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } transactionId_ = 0L; if (optionsBuilder_ == null) { options_ = null; } else { options_ = null; optionsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteRequest_descriptor; } public com.youtube.vitess.proto.Query.ExecuteRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ExecuteRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ExecuteRequest build() { com.youtube.vitess.proto.Query.ExecuteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ExecuteRequest buildPartial() { com.youtube.vitess.proto.Query.ExecuteRequest result = new com.youtube.vitess.proto.Query.ExecuteRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.ExecuteRequest) { return mergeFrom((com.youtube.vitess.proto.Query.ExecuteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ExecuteRequest other) { if (other == com.youtube.vitess.proto.Query.ExecuteRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.ExecuteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ExecuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 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_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** * optional .query.BoundQuery query = 4; */ 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(); } } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** * optional .query.BoundQuery query = 4; */ 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_; } } /** * optional .query.BoundQuery query = 4; */ 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 long transactionId_ ; /** * optional int64 transaction_id = 5; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 5; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 5; */ public Builder clearTransactionId() { transactionId_ = 0L; 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_; /** * optional .query.ExecuteOptions options = 6; */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.ExecuteOptions options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** * optional .query.ExecuteOptions options = 6; */ public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.ExecuteRequest) } // @@protoc_insertion_point(class_scope:query.ExecuteRequest) private static final com.youtube.vitess.proto.Query.ExecuteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ExecuteRequest(); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ExecuteResponse) com.google.protobuf.MessageOrBuilder { /** * optional .query.QueryResult result = 1; */ boolean hasResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); } /** *
   * ExecuteResponse is the returned value from Execute
   * 
* * Protobuf type {@code query.ExecuteResponse} */ public static final class ExecuteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.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.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.Query.internal_static_query_ExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteResponse.class, com.youtube.vitess.proto.Query.ExecuteResponse.Builder.class); } public static final int RESULT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.QueryResult result_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return result_ != null; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult getResult() { return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : 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.Query.ExecuteResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ExecuteResponse other = (com.youtube.vitess.proto.Query.ExecuteResponse) 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.Query.ExecuteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.ExecuteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ExecuteResponse) com.youtube.vitess.proto.Query.ExecuteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteResponse.class, com.youtube.vitess.proto.Query.ExecuteResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteResponse_descriptor; } public com.youtube.vitess.proto.Query.ExecuteResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ExecuteResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ExecuteResponse build() { com.youtube.vitess.proto.Query.ExecuteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ExecuteResponse buildPartial() { com.youtube.vitess.proto.Query.ExecuteResponse result = new com.youtube.vitess.proto.Query.ExecuteResponse(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.Query.ExecuteResponse) { return mergeFrom((com.youtube.vitess.proto.Query.ExecuteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ExecuteResponse other) { if (other == com.youtube.vitess.proto.Query.ExecuteResponse.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.Query.ExecuteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ExecuteResponse) 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_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.QueryResult result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.ExecuteResponse) } // @@protoc_insertion_point(class_scope:query.ExecuteResponse) private static final com.youtube.vitess.proto.Query.ExecuteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ExecuteResponse(); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResultWithErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ResultWithError) com.google.protobuf.MessageOrBuilder { /** *
     * error contains an query level error, only set if result is unset.
     * 
* * optional .vtrpc.RPCError error = 1; */ boolean hasError(); /** *
     * error contains an query level error, only set if result is unset.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCError getError(); /** *
     * error contains an query level error, only set if result is unset.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder(); /** *
     * result contains the query result, only set if error is unset.
     * 
* * optional .query.QueryResult result = 2; */ boolean hasResult(); /** *
     * result contains the query result, only set if error is unset.
     * 
* * optional .query.QueryResult result = 2; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** *
     * result contains the query result, only set if error is unset.
     * 
* * optional .query.QueryResult result = 2; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); } /** *
   * ResultWithError represents a query response
   * in the form of result or error but not both.
   * TODO: To be used in ExecuteBatchResponse and BeginExecuteBatchResponse.
   * 
* * Protobuf type {@code query.ResultWithError} */ public static final class ResultWithError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ResultWithError) ResultWithErrorOrBuilder { // Use ResultWithError.newBuilder() to construct. private ResultWithError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResultWithError() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ResultWithError( 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.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.Query.internal_static_query_ResultWithError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ResultWithError_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ResultWithError.class, com.youtube.vitess.proto.Query.ResultWithError.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.RPCError error_; /** *
     * error contains an query level error, only set if result is unset.
     * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return error_ != null; } /** *
     * error contains an query level error, only set if result is unset.
     * 
* * 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 query level error, only set if result is unset.
     * 
* * optional .vtrpc.RPCError error = 1; */ public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int RESULT_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.QueryResult result_; /** *
     * result contains the query result, only set if error is unset.
     * 
* * optional .query.QueryResult result = 2; */ public boolean hasResult() { return result_ != null; } /** *
     * result contains the query result, only set if error is unset.
     * 
* * optional .query.QueryResult result = 2; */ 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 = 2; */ 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 (result_ != null) { output.writeMessage(2, 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 (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, 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.Query.ResultWithError)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ResultWithError other = (com.youtube.vitess.proto.Query.ResultWithError) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (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.Query.ResultWithError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ResultWithError 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.Query.ResultWithError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ResultWithError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ResultWithError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultWithError 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.Query.ResultWithError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultWithError 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.Query.ResultWithError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ResultWithError 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.Query.ResultWithError 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; } /** *
     * ResultWithError represents a query response
     * in the form of result or error but not both.
     * TODO: To be used in ExecuteBatchResponse and BeginExecuteBatchResponse.
     * 
* * Protobuf type {@code query.ResultWithError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ResultWithError) com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ResultWithError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ResultWithError_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ResultWithError.class, com.youtube.vitess.proto.Query.ResultWithError.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ResultWithError.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 (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ResultWithError_descriptor; } public com.youtube.vitess.proto.Query.ResultWithError getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ResultWithError.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ResultWithError build() { com.youtube.vitess.proto.Query.ResultWithError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ResultWithError buildPartial() { com.youtube.vitess.proto.Query.ResultWithError result = new com.youtube.vitess.proto.Query.ResultWithError(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Query.ResultWithError) { return mergeFrom((com.youtube.vitess.proto.Query.ResultWithError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ResultWithError other) { if (other == com.youtube.vitess.proto.Query.ResultWithError.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } 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.Query.ResultWithError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ResultWithError) 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 query level error, only set if result is unset.
       * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * error contains an query level error, only set if result is unset.
       * 
* * 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 query level error, only set if result is unset.
       * 
* * 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 query level error, only set if result is unset.
       * 
* * 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 query level error, only set if result is unset.
       * 
* * 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 query level error, only set if result is unset.
       * 
* * optional .vtrpc.RPCError error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * error contains an query level error, only set if result is unset.
       * 
* * optional .vtrpc.RPCError error = 1; */ public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * error contains an query level error, only set if result is unset.
       * 
* * 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 query level error, only set if result is unset.
       * 
* * 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.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 = 2; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * result contains the query result, only set if error is unset.
       * 
* * optional .query.QueryResult result = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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:query.ResultWithError) } // @@protoc_insertion_point(class_scope:query.ResultWithError) private static final com.youtube.vitess.proto.Query.ResultWithError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ResultWithError(); } public static com.youtube.vitess.proto.Query.ResultWithError getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResultWithError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResultWithError(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.Query.ResultWithError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteBatchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ExecuteBatchRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * repeated .query.BoundQuery queries = 4; */ java.util.List getQueriesList(); /** * repeated .query.BoundQuery queries = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQueries(int index); /** * repeated .query.BoundQuery queries = 4; */ int getQueriesCount(); /** * repeated .query.BoundQuery queries = 4; */ java.util.List getQueriesOrBuilderList(); /** * repeated .query.BoundQuery queries = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index); /** * optional bool as_transaction = 5; */ boolean getAsTransaction(); /** * optional int64 transaction_id = 6; */ long getTransactionId(); /** * optional .query.ExecuteOptions options = 7; */ boolean hasOptions(); /** * optional .query.ExecuteOptions options = 7; */ com.youtube.vitess.proto.Query.ExecuteOptions getOptions(); /** * optional .query.ExecuteOptions options = 7; */ com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * ExecuteBatchRequest is the payload to ExecuteBatch
   * 
* * Protobuf type {@code query.ExecuteBatchRequest} */ public static final class ExecuteBatchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ExecuteBatchRequest) ExecuteBatchRequestOrBuilder { // Use ExecuteBatchRequest.newBuilder() to construct. private ExecuteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteBatchRequest() { queries_ = java.util.Collections.emptyList(); asTransaction_ = false; transactionId_ = 0L; } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { queries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } queries_.add( input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry)); break; } case 40: { asTransaction_ = input.readBool(); break; } case 48: { transactionId_ = input.readInt64(); 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_ & 0x00000008) == 0x00000008)) { queries_ = java.util.Collections.unmodifiableList(queries_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteBatchRequest.class, com.youtube.vitess.proto.Query.ExecuteBatchRequest.Builder.class); } private int bitField0_; public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERIES_FIELD_NUMBER = 4; private java.util.List queries_; /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesList() { return queries_; } /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesOrBuilderList() { return queries_; } /** * repeated .query.BoundQuery queries = 4; */ public int getQueriesCount() { return queries_.size(); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) { return queries_.get(index); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index) { return queries_.get(index); } public static final int AS_TRANSACTION_FIELD_NUMBER = 5; private boolean asTransaction_; /** * optional bool as_transaction = 5; */ public boolean getAsTransaction() { return asTransaction_; } public static final int TRANSACTION_ID_FIELD_NUMBER = 6; private long transactionId_; /** * optional int64 transaction_id = 6; */ public long getTransactionId() { return transactionId_; } public static final int OPTIONS_FIELD_NUMBER = 7; private com.youtube.vitess.proto.Query.ExecuteOptions options_; /** * optional .query.ExecuteOptions options = 7; */ public boolean hasOptions() { return options_ != null; } /** * optional .query.ExecuteOptions options = 7; */ public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() { return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(4, queries_.get(i)); } if (asTransaction_ != false) { output.writeBool(5, asTransaction_); } if (transactionId_ != 0L) { output.writeInt64(6, transactionId_); } if (options_ != null) { output.writeMessage(7, getOptions()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } for (int i = 0; i < queries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, queries_.get(i)); } if (asTransaction_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, asTransaction_); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, transactionId_); } 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.Query.ExecuteBatchRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ExecuteBatchRequest other = (com.youtube.vitess.proto.Query.ExecuteBatchRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && getQueriesList() .equals(other.getQueriesList()); result = result && (getAsTransaction() == other.getAsTransaction()); result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (getQueriesCount() > 0) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + getQueriesList().hashCode(); } hash = (37 * hash) + AS_TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAsTransaction()); hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionId()); 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.Query.ExecuteBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.ExecuteBatchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ExecuteBatchRequest) com.youtube.vitess.proto.Query.ExecuteBatchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteBatchRequest.class, com.youtube.vitess.proto.Query.ExecuteBatchRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { queriesBuilder_.clear(); } asTransaction_ = false; transactionId_ = 0L; if (optionsBuilder_ == null) { options_ = null; } else { options_ = null; optionsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchRequest_descriptor; } public com.youtube.vitess.proto.Query.ExecuteBatchRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ExecuteBatchRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ExecuteBatchRequest build() { com.youtube.vitess.proto.Query.ExecuteBatchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ExecuteBatchRequest buildPartial() { com.youtube.vitess.proto.Query.ExecuteBatchRequest result = new com.youtube.vitess.proto.Query.ExecuteBatchRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000008); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.build(); } result.asTransaction_ = asTransaction_; result.transactionId_ = transactionId_; 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.Query.ExecuteBatchRequest) { return mergeFrom((com.youtube.vitess.proto.Query.ExecuteBatchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ExecuteBatchRequest other) { if (other == com.youtube.vitess.proto.Query.ExecuteBatchRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000008); queriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueriesFieldBuilder() : null; } else { queriesBuilder_.addAllMessages(other.queries_); } } } if (other.getAsTransaction() != false) { setAsTransaction(other.getAsTransaction()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.ExecuteBatchRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ExecuteBatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000008; } } 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_; /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesList() { if (queriesBuilder_ == null) { return java.util.Collections.unmodifiableList(queries_); } else { return queriesBuilder_.getMessageList(); } } /** * repeated .query.BoundQuery queries = 4; */ public int getQueriesCount() { if (queriesBuilder_ == null) { return queries_.size(); } else { return queriesBuilder_.getCount(); } } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessage(index); } } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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 .query.BoundQuery queries = 4; */ public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { queriesBuilder_.clear(); } return this; } /** * repeated .query.BoundQuery queries = 4; */ public Builder removeQueries(int index) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.remove(index); onChanged(); } else { queriesBuilder_.remove(index); } return this; } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueriesBuilder( int index) { return getQueriesFieldBuilder().getBuilder(index); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesOrBuilderList() { if (queriesBuilder_ != null) { return queriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queries_); } } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder() { return getQueriesFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance()); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder( int index) { return getQueriesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance()); } /** * repeated .query.BoundQuery queries = 4; */ 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_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } private boolean asTransaction_ ; /** * optional bool as_transaction = 5; */ public boolean getAsTransaction() { return asTransaction_; } /** * optional bool as_transaction = 5; */ public Builder setAsTransaction(boolean value) { asTransaction_ = value; onChanged(); return this; } /** * optional bool as_transaction = 5; */ public Builder clearAsTransaction() { asTransaction_ = false; onChanged(); return this; } private long transactionId_ ; /** * optional int64 transaction_id = 6; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 6; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 6; */ public Builder clearTransactionId() { transactionId_ = 0L; 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_; /** * optional .query.ExecuteOptions options = 7; */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.ExecuteOptions options = 7; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** * optional .query.ExecuteOptions options = 7; */ public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.ExecuteBatchRequest) } // @@protoc_insertion_point(class_scope:query.ExecuteBatchRequest) private static final com.youtube.vitess.proto.Query.ExecuteBatchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ExecuteBatchRequest(); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteBatchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ExecuteBatchResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .query.QueryResult results = 1; */ java.util.List getResultsList(); /** * repeated .query.QueryResult results = 1; */ com.youtube.vitess.proto.Query.QueryResult getResults(int index); /** * repeated .query.QueryResult results = 1; */ int getResultsCount(); /** * repeated .query.QueryResult results = 1; */ java.util.List getResultsOrBuilderList(); /** * repeated .query.QueryResult results = 1; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder( int index); } /** *
   * ExecuteBatchResponse is the returned value from ExecuteBatch
   * 
* * Protobuf type {@code query.ExecuteBatchResponse} */ public static final class ExecuteBatchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } 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_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteBatchResponse.class, com.youtube.vitess.proto.Query.ExecuteBatchResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** * repeated .query.QueryResult results = 1; */ public java.util.List getResultsList() { return results_; } /** * repeated .query.QueryResult results = 1; */ public java.util.List getResultsOrBuilderList() { return results_; } /** * repeated .query.QueryResult results = 1; */ public int getResultsCount() { return results_.size(); } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResult getResults(int index) { return results_.get(index); } /** * repeated .query.QueryResult results = 1; */ 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 { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.Query.ExecuteBatchResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ExecuteBatchResponse other = (com.youtube.vitess.proto.Query.ExecuteBatchResponse) obj; boolean result = true; 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 (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.Query.ExecuteBatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.ExecuteBatchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ExecuteBatchResponse) com.youtube.vitess.proto.Query.ExecuteBatchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ExecuteBatchResponse.class, com.youtube.vitess.proto.Query.ExecuteBatchResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ExecuteBatchResponse_descriptor; } public com.youtube.vitess.proto.Query.ExecuteBatchResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ExecuteBatchResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ExecuteBatchResponse build() { com.youtube.vitess.proto.Query.ExecuteBatchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ExecuteBatchResponse buildPartial() { com.youtube.vitess.proto.Query.ExecuteBatchResponse result = new com.youtube.vitess.proto.Query.ExecuteBatchResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.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.Query.ExecuteBatchResponse) { return mergeFrom((com.youtube.vitess.proto.Query.ExecuteBatchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ExecuteBatchResponse other) { if (other == com.youtube.vitess.proto.Query.ExecuteBatchResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); 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.Query.ExecuteBatchResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ExecuteBatchResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } 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_; /** * repeated .query.QueryResult results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** * repeated .query.QueryResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ 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; } /** * repeated .query.QueryResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** * repeated .query.QueryResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.QueryResult results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance()); } /** * repeated .query.QueryResult results = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance()); } /** * repeated .query.QueryResult results = 1; */ 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_ & 0x00000001) == 0x00000001), 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:query.ExecuteBatchResponse) } // @@protoc_insertion_point(class_scope:query.ExecuteBatchResponse) private static final com.youtube.vitess.proto.Query.ExecuteBatchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ExecuteBatchResponse(); } public static com.youtube.vitess.proto.Query.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.Query.ExecuteBatchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamExecuteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamExecuteRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional .query.BoundQuery query = 4; */ boolean hasQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** * optional .query.ExecuteOptions options = 5; */ boolean hasOptions(); /** * optional .query.ExecuteOptions options = 5; */ com.youtube.vitess.proto.Query.ExecuteOptions getOptions(); /** * optional .query.ExecuteOptions options = 5; */ com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * StreamExecuteRequest is the payload to StreamExecute
   * 
* * Protobuf type {@code query.StreamExecuteRequest} */ public static final class StreamExecuteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StreamExecuteRequest) StreamExecuteRequestOrBuilder { // Use StreamExecuteRequest.newBuilder() to construct. private StreamExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamExecuteRequest() { } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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 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.Query.internal_static_query_StreamExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamExecuteRequest.class, com.youtube.vitess.proto.Query.StreamExecuteRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERY_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Query.BoundQuery query_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return query_ != null; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQuery() { return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int OPTIONS_FIELD_NUMBER = 5; private com.youtube.vitess.proto.Query.ExecuteOptions options_; /** * optional .query.ExecuteOptions options = 5; */ public boolean hasOptions() { return options_ != null; } /** * optional .query.ExecuteOptions options = 5; */ public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() { return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (query_ != null) { output.writeMessage(4, getQuery()); } if (options_ != null) { output.writeMessage(5, getOptions()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getQuery()); } 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.Query.StreamExecuteRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamExecuteRequest other = (com.youtube.vitess.proto.Query.StreamExecuteRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().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.Query.StreamExecuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.StreamExecuteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamExecuteRequest) com.youtube.vitess.proto.Query.StreamExecuteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamExecuteRequest.class, com.youtube.vitess.proto.Query.StreamExecuteRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } if (optionsBuilder_ == null) { options_ = null; } else { options_ = null; optionsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteRequest_descriptor; } public com.youtube.vitess.proto.Query.StreamExecuteRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamExecuteRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamExecuteRequest build() { com.youtube.vitess.proto.Query.StreamExecuteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamExecuteRequest buildPartial() { com.youtube.vitess.proto.Query.StreamExecuteRequest result = new com.youtube.vitess.proto.Query.StreamExecuteRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } 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.Query.StreamExecuteRequest) { return mergeFrom((com.youtube.vitess.proto.Query.StreamExecuteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamExecuteRequest other) { if (other == com.youtube.vitess.proto.Query.StreamExecuteRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } 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.Query.StreamExecuteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StreamExecuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 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_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** * optional .query.BoundQuery query = 4; */ 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(); } } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** * optional .query.BoundQuery query = 4; */ 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_; } } /** * optional .query.BoundQuery query = 4; */ 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.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_; /** * optional .query.ExecuteOptions options = 5; */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.ExecuteOptions options = 5; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** * optional .query.ExecuteOptions options = 5; */ public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.StreamExecuteRequest) } // @@protoc_insertion_point(class_scope:query.StreamExecuteRequest) private static final com.youtube.vitess.proto.Query.StreamExecuteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamExecuteRequest(); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamExecuteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamExecuteResponse) com.google.protobuf.MessageOrBuilder { /** * optional .query.QueryResult result = 1; */ boolean hasResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); } /** *
   * StreamExecuteResponse is the returned value from StreamExecute
   * 
* * Protobuf type {@code query.StreamExecuteResponse} */ public static final class StreamExecuteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.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.Query.internal_static_query_StreamExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamExecuteResponse.class, com.youtube.vitess.proto.Query.StreamExecuteResponse.Builder.class); } public static final int RESULT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.QueryResult result_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return result_ != null; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult getResult() { return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : 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.Query.StreamExecuteResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamExecuteResponse other = (com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.StreamExecuteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamExecuteResponse) com.youtube.vitess.proto.Query.StreamExecuteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamExecuteResponse.class, com.youtube.vitess.proto.Query.StreamExecuteResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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.Query.internal_static_query_StreamExecuteResponse_descriptor; } public com.youtube.vitess.proto.Query.StreamExecuteResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamExecuteResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamExecuteResponse build() { com.youtube.vitess.proto.Query.StreamExecuteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamExecuteResponse buildPartial() { com.youtube.vitess.proto.Query.StreamExecuteResponse result = new com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse) { return mergeFrom((com.youtube.vitess.proto.Query.StreamExecuteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamExecuteResponse other) { if (other == com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.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_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.QueryResult result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.StreamExecuteResponse) } // @@protoc_insertion_point(class_scope:query.StreamExecuteResponse) private static final com.youtube.vitess.proto.Query.StreamExecuteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamExecuteResponse(); } public static com.youtube.vitess.proto.Query.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.Query.StreamExecuteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); } /** *
   * BeginRequest is the payload to Begin
   * 
* * Protobuf type {@code query.BeginRequest} */ public static final class BeginRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginRequest) BeginRequestOrBuilder { // Use BeginRequest.newBuilder() to construct. private BeginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginRequest() { } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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; } } } } 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.Query.internal_static_query_BeginRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginRequest.class, com.youtube.vitess.proto.Query.BeginRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } 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.Query.BeginRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginRequest other = (com.youtube.vitess.proto.Query.BeginRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.BeginRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.BeginRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.BeginRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.BeginRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.BeginRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginRequest) com.youtube.vitess.proto.Query.BeginRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginRequest.class, com.youtube.vitess.proto.Query.BeginRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BeginRequest_descriptor; } public com.youtube.vitess.proto.Query.BeginRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginRequest build() { com.youtube.vitess.proto.Query.BeginRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginRequest buildPartial() { com.youtube.vitess.proto.Query.BeginRequest result = new com.youtube.vitess.proto.Query.BeginRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.Query.BeginRequest) { return mergeFrom((com.youtube.vitess.proto.Query.BeginRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginRequest other) { if (other == com.youtube.vitess.proto.Query.BeginRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.Query.BeginRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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_; } 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:query.BeginRequest) } // @@protoc_insertion_point(class_scope:query.BeginRequest) private static final com.youtube.vitess.proto.Query.BeginRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginRequest(); } public static com.youtube.vitess.proto.Query.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.Query.BeginRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginResponse) com.google.protobuf.MessageOrBuilder { /** * optional int64 transaction_id = 1; */ long getTransactionId(); } /** *
   * BeginResponse is the returned value from Begin
   * 
* * Protobuf type {@code query.BeginResponse} */ public static final class BeginResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginResponse) BeginResponseOrBuilder { // Use BeginResponse.newBuilder() to construct. private BeginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginResponse() { transactionId_ = 0L; } @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 8: { 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.Query.internal_static_query_BeginResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginResponse.class, com.youtube.vitess.proto.Query.BeginResponse.Builder.class); } public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private long transactionId_; /** * optional int64 transaction_id = 1; */ 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 (transactionId_ != 0L) { output.writeInt64(1, transactionId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, 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.Query.BeginResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginResponse other = (com.youtube.vitess.proto.Query.BeginResponse) obj; boolean result = true; 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(); 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.Query.BeginResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.BeginResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.BeginResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.BeginResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.BeginResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginResponse) com.youtube.vitess.proto.Query.BeginResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginResponse.class, com.youtube.vitess.proto.Query.BeginResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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(); transactionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BeginResponse_descriptor; } public com.youtube.vitess.proto.Query.BeginResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginResponse build() { com.youtube.vitess.proto.Query.BeginResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginResponse buildPartial() { com.youtube.vitess.proto.Query.BeginResponse result = new com.youtube.vitess.proto.Query.BeginResponse(this); 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.Query.BeginResponse) { return mergeFrom((com.youtube.vitess.proto.Query.BeginResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginResponse other) { if (other == com.youtube.vitess.proto.Query.BeginResponse.getDefaultInstance()) return this; 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.Query.BeginResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long transactionId_ ; /** * optional int64 transaction_id = 1; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 1; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 1; */ 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:query.BeginResponse) } // @@protoc_insertion_point(class_scope:query.BeginResponse) private static final com.youtube.vitess.proto.Query.BeginResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginResponse(); } public static com.youtube.vitess.proto.Query.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.Query.BeginResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CommitRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); } /** *
   * CommitRequest is the payload to Commit
   * 
* * Protobuf type {@code query.CommitRequest} */ public static final class CommitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.CommitRequest) CommitRequestOrBuilder { // Use CommitRequest.newBuilder() to construct. private CommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitRequest() { transactionId_ = 0L; } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { 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.Query.internal_static_query_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitRequest.class, com.youtube.vitess.proto.Query.CommitRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.Query.CommitRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CommitRequest other = (com.youtube.vitess.proto.Query.CommitRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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.Query.CommitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.CommitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.CommitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.CommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.CommitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CommitRequest) com.youtube.vitess.proto.Query.CommitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitRequest.class, com.youtube.vitess.proto.Query.CommitRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } 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.Query.internal_static_query_CommitRequest_descriptor; } public com.youtube.vitess.proto.Query.CommitRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CommitRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CommitRequest build() { com.youtube.vitess.proto.Query.CommitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CommitRequest buildPartial() { com.youtube.vitess.proto.Query.CommitRequest result = new com.youtube.vitess.proto.Query.CommitRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } 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.Query.CommitRequest) { return mergeFrom((com.youtube.vitess.proto.Query.CommitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CommitRequest other) { if (other == com.youtube.vitess.proto.Query.CommitRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } 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.Query.CommitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.CommitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ 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:query.CommitRequest) } // @@protoc_insertion_point(class_scope:query.CommitRequest) private static final com.youtube.vitess.proto.Query.CommitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CommitRequest(); } public static com.youtube.vitess.proto.Query.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.Query.CommitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CommitResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * CommitResponse is the returned value from Commit
   * 
* * Protobuf type {@code query.CommitResponse} */ public static final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.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.Query.internal_static_query_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitResponse.class, com.youtube.vitess.proto.Query.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.Query.CommitResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CommitResponse other = (com.youtube.vitess.proto.Query.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.Query.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.CommitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CommitResponse) com.youtube.vitess.proto.Query.CommitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitResponse.class, com.youtube.vitess.proto.Query.CommitResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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.Query.internal_static_query_CommitResponse_descriptor; } public com.youtube.vitess.proto.Query.CommitResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CommitResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CommitResponse build() { com.youtube.vitess.proto.Query.CommitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CommitResponse buildPartial() { com.youtube.vitess.proto.Query.CommitResponse result = new com.youtube.vitess.proto.Query.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.Query.CommitResponse) { return mergeFrom((com.youtube.vitess.proto.Query.CommitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CommitResponse other) { if (other == com.youtube.vitess.proto.Query.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.Query.CommitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.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:query.CommitResponse) } // @@protoc_insertion_point(class_scope:query.CommitResponse) private static final com.youtube.vitess.proto.Query.CommitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CommitResponse(); } public static com.youtube.vitess.proto.Query.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.Query.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.RollbackRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); } /** *
   * RollbackRequest is the payload to Rollback
   * 
* * Protobuf type {@code query.RollbackRequest} */ public static final class RollbackRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.RollbackRequest) RollbackRequestOrBuilder { // Use RollbackRequest.newBuilder() to construct. private RollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackRequest() { transactionId_ = 0L; } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { 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.Query.internal_static_query_RollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackRequest.class, com.youtube.vitess.proto.Query.RollbackRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.Query.RollbackRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.RollbackRequest other = (com.youtube.vitess.proto.Query.RollbackRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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.Query.RollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.RollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.RollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.RollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.RollbackRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.RollbackRequest) com.youtube.vitess.proto.Query.RollbackRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackRequest.class, com.youtube.vitess.proto.Query.RollbackRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } 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.Query.internal_static_query_RollbackRequest_descriptor; } public com.youtube.vitess.proto.Query.RollbackRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.RollbackRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.RollbackRequest build() { com.youtube.vitess.proto.Query.RollbackRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.RollbackRequest buildPartial() { com.youtube.vitess.proto.Query.RollbackRequest result = new com.youtube.vitess.proto.Query.RollbackRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } 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.Query.RollbackRequest) { return mergeFrom((com.youtube.vitess.proto.Query.RollbackRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.RollbackRequest other) { if (other == com.youtube.vitess.proto.Query.RollbackRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } 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.Query.RollbackRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.RollbackRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ 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:query.RollbackRequest) } // @@protoc_insertion_point(class_scope:query.RollbackRequest) private static final com.youtube.vitess.proto.Query.RollbackRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.RollbackRequest(); } public static com.youtube.vitess.proto.Query.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.Query.RollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.RollbackResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * RollbackResponse is the returned value from Rollback
   * 
* * Protobuf type {@code query.RollbackResponse} */ public static final class RollbackResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.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.Query.internal_static_query_RollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackResponse.class, com.youtube.vitess.proto.Query.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.Query.RollbackResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.RollbackResponse other = (com.youtube.vitess.proto.Query.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.Query.RollbackResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.RollbackResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.RollbackResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.RollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.RollbackResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.RollbackResponse) com.youtube.vitess.proto.Query.RollbackResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackResponse.class, com.youtube.vitess.proto.Query.RollbackResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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.Query.internal_static_query_RollbackResponse_descriptor; } public com.youtube.vitess.proto.Query.RollbackResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.RollbackResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.RollbackResponse build() { com.youtube.vitess.proto.Query.RollbackResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.RollbackResponse buildPartial() { com.youtube.vitess.proto.Query.RollbackResponse result = new com.youtube.vitess.proto.Query.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.Query.RollbackResponse) { return mergeFrom((com.youtube.vitess.proto.Query.RollbackResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.RollbackResponse other) { if (other == com.youtube.vitess.proto.Query.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.Query.RollbackResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.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:query.RollbackResponse) } // @@protoc_insertion_point(class_scope:query.RollbackResponse) private static final com.youtube.vitess.proto.Query.RollbackResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.RollbackResponse(); } public static com.youtube.vitess.proto.Query.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.Query.RollbackResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrepareRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.PrepareRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); /** * optional string dtid = 5; */ java.lang.String getDtid(); /** * optional string dtid = 5; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * PrepareRequest is the payload to Prepare
   * 
* * Protobuf type {@code query.PrepareRequest} */ public static final class PrepareRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.PrepareRequest) PrepareRequestOrBuilder { // Use PrepareRequest.newBuilder() to construct. private PrepareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrepareRequest() { transactionId_ = 0L; dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PrepareRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { transactionId_ = input.readInt64(); break; } case 42: { 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.Query.internal_static_query_PrepareRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.PrepareRequest.class, com.youtube.vitess.proto.Query.PrepareRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ public long getTransactionId() { return transactionId_; } public static final int DTID_FIELD_NUMBER = 5; private volatile java.lang.Object dtid_; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, transactionId_); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.Query.PrepareRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.PrepareRequest other = (com.youtube.vitess.proto.Query.PrepareRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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 = (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.Query.PrepareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.PrepareRequest 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.Query.PrepareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.PrepareRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.PrepareRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareRequest 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.Query.PrepareRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareRequest 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.Query.PrepareRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareRequest 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.Query.PrepareRequest 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; } /** *
     * PrepareRequest is the payload to Prepare
     * 
* * Protobuf type {@code query.PrepareRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.PrepareRequest) com.youtube.vitess.proto.Query.PrepareRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.PrepareRequest.class, com.youtube.vitess.proto.Query.PrepareRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.PrepareRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } transactionId_ = 0L; dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareRequest_descriptor; } public com.youtube.vitess.proto.Query.PrepareRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.PrepareRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.PrepareRequest build() { com.youtube.vitess.proto.Query.PrepareRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.PrepareRequest buildPartial() { com.youtube.vitess.proto.Query.PrepareRequest result = new com.youtube.vitess.proto.Query.PrepareRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.PrepareRequest) { return mergeFrom((com.youtube.vitess.proto.Query.PrepareRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.PrepareRequest other) { if (other == com.youtube.vitess.proto.Query.PrepareRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.PrepareRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.PrepareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ public Builder clearTransactionId() { transactionId_ = 0L; onChanged(); return this; } private java.lang.Object dtid_ = ""; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 5; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 5; */ 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:query.PrepareRequest) } // @@protoc_insertion_point(class_scope:query.PrepareRequest) private static final com.youtube.vitess.proto.Query.PrepareRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.PrepareRequest(); } public static com.youtube.vitess.proto.Query.PrepareRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrepareRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrepareRequest(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.Query.PrepareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrepareResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.PrepareResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * PrepareResponse is the returned value from Prepare
   * 
* * Protobuf type {@code query.PrepareResponse} */ public static final class PrepareResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.PrepareResponse) PrepareResponseOrBuilder { // Use PrepareResponse.newBuilder() to construct. private PrepareResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrepareResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PrepareResponse( 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.Query.internal_static_query_PrepareResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.PrepareResponse.class, com.youtube.vitess.proto.Query.PrepareResponse.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.Query.PrepareResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.PrepareResponse other = (com.youtube.vitess.proto.Query.PrepareResponse) 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.Query.PrepareResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.PrepareResponse 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.Query.PrepareResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.PrepareResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.PrepareResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareResponse 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.Query.PrepareResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareResponse 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.Query.PrepareResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.PrepareResponse 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.Query.PrepareResponse 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; } /** *
     * PrepareResponse is the returned value from Prepare
     * 
* * Protobuf type {@code query.PrepareResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.PrepareResponse) com.youtube.vitess.proto.Query.PrepareResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_PrepareResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.PrepareResponse.class, com.youtube.vitess.proto.Query.PrepareResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.PrepareResponse.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.Query.internal_static_query_PrepareResponse_descriptor; } public com.youtube.vitess.proto.Query.PrepareResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.PrepareResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.PrepareResponse build() { com.youtube.vitess.proto.Query.PrepareResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.PrepareResponse buildPartial() { com.youtube.vitess.proto.Query.PrepareResponse result = new com.youtube.vitess.proto.Query.PrepareResponse(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.Query.PrepareResponse) { return mergeFrom((com.youtube.vitess.proto.Query.PrepareResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.PrepareResponse other) { if (other == com.youtube.vitess.proto.Query.PrepareResponse.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.Query.PrepareResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.PrepareResponse) 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:query.PrepareResponse) } // @@protoc_insertion_point(class_scope:query.PrepareResponse) private static final com.youtube.vitess.proto.Query.PrepareResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.PrepareResponse(); } public static com.youtube.vitess.proto.Query.PrepareResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrepareResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrepareResponse(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.Query.PrepareResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitPreparedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CommitPreparedRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional string dtid = 4; */ java.lang.String getDtid(); /** * optional string dtid = 4; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * CommitPreparedRequest is the payload to CommitPrepared
   * 
* * Protobuf type {@code query.CommitPreparedRequest} */ public static final class CommitPreparedRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.CommitPreparedRequest) CommitPreparedRequestOrBuilder { // Use CommitPreparedRequest.newBuilder() to construct. private CommitPreparedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitPreparedRequest() { dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CommitPreparedRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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.Query.internal_static_query_CommitPreparedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitPreparedRequest.class, com.youtube.vitess.proto.Query.CommitPreparedRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int DTID_FIELD_NUMBER = 4; private volatile java.lang.Object dtid_; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.Query.CommitPreparedRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CommitPreparedRequest other = (com.youtube.vitess.proto.Query.CommitPreparedRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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.Query.CommitPreparedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest 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.Query.CommitPreparedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest 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.Query.CommitPreparedRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest 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.Query.CommitPreparedRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest 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.Query.CommitPreparedRequest 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; } /** *
     * CommitPreparedRequest is the payload to CommitPrepared
     * 
* * Protobuf type {@code query.CommitPreparedRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CommitPreparedRequest) com.youtube.vitess.proto.Query.CommitPreparedRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitPreparedRequest.class, com.youtube.vitess.proto.Query.CommitPreparedRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.CommitPreparedRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedRequest_descriptor; } public com.youtube.vitess.proto.Query.CommitPreparedRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CommitPreparedRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CommitPreparedRequest build() { com.youtube.vitess.proto.Query.CommitPreparedRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CommitPreparedRequest buildPartial() { com.youtube.vitess.proto.Query.CommitPreparedRequest result = new com.youtube.vitess.proto.Query.CommitPreparedRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.Query.CommitPreparedRequest) { return mergeFrom((com.youtube.vitess.proto.Query.CommitPreparedRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CommitPreparedRequest other) { if (other == com.youtube.vitess.proto.Query.CommitPreparedRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.Query.CommitPreparedRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.CommitPreparedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object dtid_ = ""; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 4; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 4; */ 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:query.CommitPreparedRequest) } // @@protoc_insertion_point(class_scope:query.CommitPreparedRequest) private static final com.youtube.vitess.proto.Query.CommitPreparedRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CommitPreparedRequest(); } public static com.youtube.vitess.proto.Query.CommitPreparedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitPreparedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitPreparedRequest(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.Query.CommitPreparedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitPreparedResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CommitPreparedResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * CommitPreparedResponse is the returned value from CommitPrepared
   * 
* * Protobuf type {@code query.CommitPreparedResponse} */ public static final class CommitPreparedResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.CommitPreparedResponse) CommitPreparedResponseOrBuilder { // Use CommitPreparedResponse.newBuilder() to construct. private CommitPreparedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitPreparedResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CommitPreparedResponse( 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.Query.internal_static_query_CommitPreparedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitPreparedResponse.class, com.youtube.vitess.proto.Query.CommitPreparedResponse.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.Query.CommitPreparedResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CommitPreparedResponse other = (com.youtube.vitess.proto.Query.CommitPreparedResponse) 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.Query.CommitPreparedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse 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.Query.CommitPreparedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse 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.Query.CommitPreparedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse 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.Query.CommitPreparedResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse 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.Query.CommitPreparedResponse 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; } /** *
     * CommitPreparedResponse is the returned value from CommitPrepared
     * 
* * Protobuf type {@code query.CommitPreparedResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CommitPreparedResponse) com.youtube.vitess.proto.Query.CommitPreparedResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CommitPreparedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CommitPreparedResponse.class, com.youtube.vitess.proto.Query.CommitPreparedResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.CommitPreparedResponse.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.Query.internal_static_query_CommitPreparedResponse_descriptor; } public com.youtube.vitess.proto.Query.CommitPreparedResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CommitPreparedResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CommitPreparedResponse build() { com.youtube.vitess.proto.Query.CommitPreparedResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CommitPreparedResponse buildPartial() { com.youtube.vitess.proto.Query.CommitPreparedResponse result = new com.youtube.vitess.proto.Query.CommitPreparedResponse(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.Query.CommitPreparedResponse) { return mergeFrom((com.youtube.vitess.proto.Query.CommitPreparedResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CommitPreparedResponse other) { if (other == com.youtube.vitess.proto.Query.CommitPreparedResponse.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.Query.CommitPreparedResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.CommitPreparedResponse) 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:query.CommitPreparedResponse) } // @@protoc_insertion_point(class_scope:query.CommitPreparedResponse) private static final com.youtube.vitess.proto.Query.CommitPreparedResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CommitPreparedResponse(); } public static com.youtube.vitess.proto.Query.CommitPreparedResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitPreparedResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitPreparedResponse(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.Query.CommitPreparedResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackPreparedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.RollbackPreparedRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); /** * optional string dtid = 5; */ java.lang.String getDtid(); /** * optional string dtid = 5; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * RollbackPreparedRequest is the payload to RollbackPrepared
   * 
* * Protobuf type {@code query.RollbackPreparedRequest} */ public static final class RollbackPreparedRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.RollbackPreparedRequest) RollbackPreparedRequestOrBuilder { // Use RollbackPreparedRequest.newBuilder() to construct. private RollbackPreparedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackPreparedRequest() { transactionId_ = 0L; dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RollbackPreparedRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { transactionId_ = input.readInt64(); break; } case 42: { 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.Query.internal_static_query_RollbackPreparedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackPreparedRequest.class, com.youtube.vitess.proto.Query.RollbackPreparedRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ public long getTransactionId() { return transactionId_; } public static final int DTID_FIELD_NUMBER = 5; private volatile java.lang.Object dtid_; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, transactionId_); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.Query.RollbackPreparedRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.RollbackPreparedRequest other = (com.youtube.vitess.proto.Query.RollbackPreparedRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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 = (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.Query.RollbackPreparedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest 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.Query.RollbackPreparedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest 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.Query.RollbackPreparedRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest 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.Query.RollbackPreparedRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest 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.Query.RollbackPreparedRequest 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; } /** *
     * RollbackPreparedRequest is the payload to RollbackPrepared
     * 
* * Protobuf type {@code query.RollbackPreparedRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.RollbackPreparedRequest) com.youtube.vitess.proto.Query.RollbackPreparedRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackPreparedRequest.class, com.youtube.vitess.proto.Query.RollbackPreparedRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.RollbackPreparedRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } transactionId_ = 0L; dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedRequest_descriptor; } public com.youtube.vitess.proto.Query.RollbackPreparedRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.RollbackPreparedRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.RollbackPreparedRequest build() { com.youtube.vitess.proto.Query.RollbackPreparedRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.RollbackPreparedRequest buildPartial() { com.youtube.vitess.proto.Query.RollbackPreparedRequest result = new com.youtube.vitess.proto.Query.RollbackPreparedRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.RollbackPreparedRequest) { return mergeFrom((com.youtube.vitess.proto.Query.RollbackPreparedRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.RollbackPreparedRequest other) { if (other == com.youtube.vitess.proto.Query.RollbackPreparedRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.RollbackPreparedRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.RollbackPreparedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ public Builder clearTransactionId() { transactionId_ = 0L; onChanged(); return this; } private java.lang.Object dtid_ = ""; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 5; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 5; */ 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:query.RollbackPreparedRequest) } // @@protoc_insertion_point(class_scope:query.RollbackPreparedRequest) private static final com.youtube.vitess.proto.Query.RollbackPreparedRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.RollbackPreparedRequest(); } public static com.youtube.vitess.proto.Query.RollbackPreparedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackPreparedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackPreparedRequest(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.Query.RollbackPreparedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackPreparedResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.RollbackPreparedResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * RollbackPreparedResponse is the returned value from RollbackPrepared
   * 
* * Protobuf type {@code query.RollbackPreparedResponse} */ public static final class RollbackPreparedResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.RollbackPreparedResponse) RollbackPreparedResponseOrBuilder { // Use RollbackPreparedResponse.newBuilder() to construct. private RollbackPreparedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackPreparedResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RollbackPreparedResponse( 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.Query.internal_static_query_RollbackPreparedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackPreparedResponse.class, com.youtube.vitess.proto.Query.RollbackPreparedResponse.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.Query.RollbackPreparedResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.RollbackPreparedResponse other = (com.youtube.vitess.proto.Query.RollbackPreparedResponse) 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.Query.RollbackPreparedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse 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.Query.RollbackPreparedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse 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.Query.RollbackPreparedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse 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.Query.RollbackPreparedResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse 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.Query.RollbackPreparedResponse 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; } /** *
     * RollbackPreparedResponse is the returned value from RollbackPrepared
     * 
* * Protobuf type {@code query.RollbackPreparedResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.RollbackPreparedResponse) com.youtube.vitess.proto.Query.RollbackPreparedResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RollbackPreparedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RollbackPreparedResponse.class, com.youtube.vitess.proto.Query.RollbackPreparedResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.RollbackPreparedResponse.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.Query.internal_static_query_RollbackPreparedResponse_descriptor; } public com.youtube.vitess.proto.Query.RollbackPreparedResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.RollbackPreparedResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.RollbackPreparedResponse build() { com.youtube.vitess.proto.Query.RollbackPreparedResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.RollbackPreparedResponse buildPartial() { com.youtube.vitess.proto.Query.RollbackPreparedResponse result = new com.youtube.vitess.proto.Query.RollbackPreparedResponse(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.Query.RollbackPreparedResponse) { return mergeFrom((com.youtube.vitess.proto.Query.RollbackPreparedResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.RollbackPreparedResponse other) { if (other == com.youtube.vitess.proto.Query.RollbackPreparedResponse.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.Query.RollbackPreparedResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.RollbackPreparedResponse) 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:query.RollbackPreparedResponse) } // @@protoc_insertion_point(class_scope:query.RollbackPreparedResponse) private static final com.youtube.vitess.proto.Query.RollbackPreparedResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.RollbackPreparedResponse(); } public static com.youtube.vitess.proto.Query.RollbackPreparedResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackPreparedResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackPreparedResponse(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.Query.RollbackPreparedResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CreateTransactionRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional string dtid = 4; */ java.lang.String getDtid(); /** * optional string dtid = 4; */ com.google.protobuf.ByteString getDtidBytes(); /** * repeated .query.Target participants = 5; */ java.util.List getParticipantsList(); /** * repeated .query.Target participants = 5; */ com.youtube.vitess.proto.Query.Target getParticipants(int index); /** * repeated .query.Target participants = 5; */ int getParticipantsCount(); /** * repeated .query.Target participants = 5; */ java.util.List getParticipantsOrBuilderList(); /** * repeated .query.Target participants = 5; */ com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index); } /** *
   * CreateTransactionRequest is the payload to CreateTransaction
   * 
* * Protobuf type {@code query.CreateTransactionRequest} */ public static final class CreateTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.CreateTransactionRequest) CreateTransactionRequestOrBuilder { // Use CreateTransactionRequest.newBuilder() to construct. private CreateTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateTransactionRequest() { dtid_ = ""; participants_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateTransactionRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); dtid_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { participants_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } participants_.add( input.readMessage(com.youtube.vitess.proto.Query.Target.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_ & 0x00000010) == 0x00000010)) { participants_ = java.util.Collections.unmodifiableList(participants_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CreateTransactionRequest.class, com.youtube.vitess.proto.Query.CreateTransactionRequest.Builder.class); } private int bitField0_; public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int DTID_FIELD_NUMBER = 4; private volatile java.lang.Object dtid_; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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; } } public static final int PARTICIPANTS_FIELD_NUMBER = 5; private java.util.List participants_; /** * repeated .query.Target participants = 5; */ public java.util.List getParticipantsList() { return participants_; } /** * repeated .query.Target participants = 5; */ public java.util.List getParticipantsOrBuilderList() { return participants_; } /** * repeated .query.Target participants = 5; */ public int getParticipantsCount() { return participants_.size(); } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.Target getParticipants(int index) { return participants_.get(index); } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index) { return participants_.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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dtid_); } for (int i = 0; i < participants_.size(); i++) { output.writeMessage(5, participants_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dtid_); } for (int i = 0; i < participants_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, participants_.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.Query.CreateTransactionRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CreateTransactionRequest other = (com.youtube.vitess.proto.Query.CreateTransactionRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && getDtid() .equals(other.getDtid()); result = result && getParticipantsList() .equals(other.getParticipantsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (37 * hash) + DTID_FIELD_NUMBER; hash = (53 * hash) + getDtid().hashCode(); if (getParticipantsCount() > 0) { hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER; hash = (53 * hash) + getParticipantsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.CreateTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest 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.Query.CreateTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest 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.Query.CreateTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest 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.Query.CreateTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest 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.Query.CreateTransactionRequest 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; } /** *
     * CreateTransactionRequest is the payload to CreateTransaction
     * 
* * Protobuf type {@code query.CreateTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CreateTransactionRequest) com.youtube.vitess.proto.Query.CreateTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CreateTransactionRequest.class, com.youtube.vitess.proto.Query.CreateTransactionRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.CreateTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParticipantsFieldBuilder(); } } public Builder clear() { super.clear(); if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } dtid_ = ""; if (participantsBuilder_ == null) { participants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { participantsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionRequest_descriptor; } public com.youtube.vitess.proto.Query.CreateTransactionRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CreateTransactionRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CreateTransactionRequest build() { com.youtube.vitess.proto.Query.CreateTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CreateTransactionRequest buildPartial() { com.youtube.vitess.proto.Query.CreateTransactionRequest result = new com.youtube.vitess.proto.Query.CreateTransactionRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.dtid_ = dtid_; if (participantsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { participants_ = java.util.Collections.unmodifiableList(participants_); bitField0_ = (bitField0_ & ~0x00000010); } result.participants_ = participants_; } else { result.participants_ = participantsBuilder_.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.Query.CreateTransactionRequest) { return mergeFrom((com.youtube.vitess.proto.Query.CreateTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CreateTransactionRequest other) { if (other == com.youtube.vitess.proto.Query.CreateTransactionRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (!other.getDtid().isEmpty()) { dtid_ = other.dtid_; onChanged(); } if (participantsBuilder_ == null) { if (!other.participants_.isEmpty()) { if (participants_.isEmpty()) { participants_ = other.participants_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureParticipantsIsMutable(); participants_.addAll(other.participants_); } onChanged(); } } else { if (!other.participants_.isEmpty()) { if (participantsBuilder_.isEmpty()) { participantsBuilder_.dispose(); participantsBuilder_ = null; participants_ = other.participants_; bitField0_ = (bitField0_ & ~0x00000010); participantsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParticipantsFieldBuilder() : null; } else { participantsBuilder_.addAllMessages(other.participants_); } } } 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.Query.CreateTransactionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.CreateTransactionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object dtid_ = ""; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 4; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 4; */ public Builder setDtidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dtid_ = value; onChanged(); return this; } private java.util.List participants_ = java.util.Collections.emptyList(); private void ensureParticipantsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { participants_ = new java.util.ArrayList(participants_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder> participantsBuilder_; /** * repeated .query.Target participants = 5; */ public java.util.List getParticipantsList() { if (participantsBuilder_ == null) { return java.util.Collections.unmodifiableList(participants_); } else { return participantsBuilder_.getMessageList(); } } /** * repeated .query.Target participants = 5; */ public int getParticipantsCount() { if (participantsBuilder_ == null) { return participants_.size(); } else { return participantsBuilder_.getCount(); } } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.Target getParticipants(int index) { if (participantsBuilder_ == null) { return participants_.get(index); } else { return participantsBuilder_.getMessage(index); } } /** * repeated .query.Target participants = 5; */ public Builder setParticipants( int index, com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.set(index, value); onChanged(); } else { participantsBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Target participants = 5; */ public Builder setParticipants( int index, com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.set(index, builderForValue.build()); onChanged(); } else { participantsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Target participants = 5; */ public Builder addParticipants(com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.add(value); onChanged(); } else { participantsBuilder_.addMessage(value); } return this; } /** * repeated .query.Target participants = 5; */ public Builder addParticipants( int index, com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.add(index, value); onChanged(); } else { participantsBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Target participants = 5; */ public Builder addParticipants( com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.add(builderForValue.build()); onChanged(); } else { participantsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Target participants = 5; */ public Builder addParticipants( int index, com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.add(index, builderForValue.build()); onChanged(); } else { participantsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Target participants = 5; */ public Builder addAllParticipants( java.lang.Iterable values) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, participants_); onChanged(); } else { participantsBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Target participants = 5; */ public Builder clearParticipants() { if (participantsBuilder_ == null) { participants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { participantsBuilder_.clear(); } return this; } /** * repeated .query.Target participants = 5; */ public Builder removeParticipants(int index) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.remove(index); onChanged(); } else { participantsBuilder_.remove(index); } return this; } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.Target.Builder getParticipantsBuilder( int index) { return getParticipantsFieldBuilder().getBuilder(index); } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index) { if (participantsBuilder_ == null) { return participants_.get(index); } else { return participantsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Target participants = 5; */ public java.util.List getParticipantsOrBuilderList() { if (participantsBuilder_ != null) { return participantsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(participants_); } } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.Target.Builder addParticipantsBuilder() { return getParticipantsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Target.getDefaultInstance()); } /** * repeated .query.Target participants = 5; */ public com.youtube.vitess.proto.Query.Target.Builder addParticipantsBuilder( int index) { return getParticipantsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Target.getDefaultInstance()); } /** * repeated .query.Target participants = 5; */ public java.util.List getParticipantsBuilderList() { return getParticipantsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder> getParticipantsFieldBuilder() { if (participantsBuilder_ == null) { participantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder>( participants_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); participants_ = null; } return participantsBuilder_; } 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:query.CreateTransactionRequest) } // @@protoc_insertion_point(class_scope:query.CreateTransactionRequest) private static final com.youtube.vitess.proto.Query.CreateTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CreateTransactionRequest(); } public static com.youtube.vitess.proto.Query.CreateTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateTransactionRequest(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.Query.CreateTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTransactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.CreateTransactionResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * CreateTransactionResponse is the returned value from CreateTransaction
   * 
* * Protobuf type {@code query.CreateTransactionResponse} */ public static final class CreateTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.CreateTransactionResponse) CreateTransactionResponseOrBuilder { // Use CreateTransactionResponse.newBuilder() to construct. private CreateTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateTransactionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateTransactionResponse( 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.Query.internal_static_query_CreateTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CreateTransactionResponse.class, com.youtube.vitess.proto.Query.CreateTransactionResponse.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.Query.CreateTransactionResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.CreateTransactionResponse other = (com.youtube.vitess.proto.Query.CreateTransactionResponse) 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.Query.CreateTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse 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.Query.CreateTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse 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.Query.CreateTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse 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.Query.CreateTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse 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.Query.CreateTransactionResponse 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; } /** *
     * CreateTransactionResponse is the returned value from CreateTransaction
     * 
* * Protobuf type {@code query.CreateTransactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.CreateTransactionResponse) com.youtube.vitess.proto.Query.CreateTransactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_CreateTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.CreateTransactionResponse.class, com.youtube.vitess.proto.Query.CreateTransactionResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.CreateTransactionResponse.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.Query.internal_static_query_CreateTransactionResponse_descriptor; } public com.youtube.vitess.proto.Query.CreateTransactionResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.CreateTransactionResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.CreateTransactionResponse build() { com.youtube.vitess.proto.Query.CreateTransactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.CreateTransactionResponse buildPartial() { com.youtube.vitess.proto.Query.CreateTransactionResponse result = new com.youtube.vitess.proto.Query.CreateTransactionResponse(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.Query.CreateTransactionResponse) { return mergeFrom((com.youtube.vitess.proto.Query.CreateTransactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.CreateTransactionResponse other) { if (other == com.youtube.vitess.proto.Query.CreateTransactionResponse.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.Query.CreateTransactionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.CreateTransactionResponse) 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:query.CreateTransactionResponse) } // @@protoc_insertion_point(class_scope:query.CreateTransactionResponse) private static final com.youtube.vitess.proto.Query.CreateTransactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.CreateTransactionResponse(); } public static com.youtube.vitess.proto.Query.CreateTransactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateTransactionResponse(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.Query.CreateTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartCommitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StartCommitRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); /** * optional string dtid = 5; */ java.lang.String getDtid(); /** * optional string dtid = 5; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * StartCommitRequest is the payload to StartCommit
   * 
* * Protobuf type {@code query.StartCommitRequest} */ public static final class StartCommitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StartCommitRequest) StartCommitRequestOrBuilder { // Use StartCommitRequest.newBuilder() to construct. private StartCommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartCommitRequest() { transactionId_ = 0L; dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StartCommitRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { transactionId_ = input.readInt64(); break; } case 42: { 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.Query.internal_static_query_StartCommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StartCommitRequest.class, com.youtube.vitess.proto.Query.StartCommitRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ public long getTransactionId() { return transactionId_; } public static final int DTID_FIELD_NUMBER = 5; private volatile java.lang.Object dtid_; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, transactionId_); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.Query.StartCommitRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StartCommitRequest other = (com.youtube.vitess.proto.Query.StartCommitRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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 = (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.Query.StartCommitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StartCommitRequest 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.Query.StartCommitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StartCommitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StartCommitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitRequest 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.Query.StartCommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitRequest 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.Query.StartCommitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitRequest 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.Query.StartCommitRequest 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; } /** *
     * StartCommitRequest is the payload to StartCommit
     * 
* * Protobuf type {@code query.StartCommitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StartCommitRequest) com.youtube.vitess.proto.Query.StartCommitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StartCommitRequest.class, com.youtube.vitess.proto.Query.StartCommitRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StartCommitRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } transactionId_ = 0L; dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitRequest_descriptor; } public com.youtube.vitess.proto.Query.StartCommitRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StartCommitRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StartCommitRequest build() { com.youtube.vitess.proto.Query.StartCommitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StartCommitRequest buildPartial() { com.youtube.vitess.proto.Query.StartCommitRequest result = new com.youtube.vitess.proto.Query.StartCommitRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.StartCommitRequest) { return mergeFrom((com.youtube.vitess.proto.Query.StartCommitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StartCommitRequest other) { if (other == com.youtube.vitess.proto.Query.StartCommitRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.StartCommitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StartCommitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ public Builder clearTransactionId() { transactionId_ = 0L; onChanged(); return this; } private java.lang.Object dtid_ = ""; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 5; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 5; */ 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:query.StartCommitRequest) } // @@protoc_insertion_point(class_scope:query.StartCommitRequest) private static final com.youtube.vitess.proto.Query.StartCommitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StartCommitRequest(); } public static com.youtube.vitess.proto.Query.StartCommitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StartCommitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StartCommitRequest(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.Query.StartCommitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartCommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StartCommitResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * StartCommitResponse is the returned value from StartCommit
   * 
* * Protobuf type {@code query.StartCommitResponse} */ public static final class StartCommitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StartCommitResponse) StartCommitResponseOrBuilder { // Use StartCommitResponse.newBuilder() to construct. private StartCommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartCommitResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StartCommitResponse( 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.Query.internal_static_query_StartCommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StartCommitResponse.class, com.youtube.vitess.proto.Query.StartCommitResponse.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.Query.StartCommitResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StartCommitResponse other = (com.youtube.vitess.proto.Query.StartCommitResponse) 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.Query.StartCommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StartCommitResponse 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.Query.StartCommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StartCommitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StartCommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitResponse 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.Query.StartCommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitResponse 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.Query.StartCommitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StartCommitResponse 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.Query.StartCommitResponse 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; } /** *
     * StartCommitResponse is the returned value from StartCommit
     * 
* * Protobuf type {@code query.StartCommitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StartCommitResponse) com.youtube.vitess.proto.Query.StartCommitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StartCommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StartCommitResponse.class, com.youtube.vitess.proto.Query.StartCommitResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StartCommitResponse.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.Query.internal_static_query_StartCommitResponse_descriptor; } public com.youtube.vitess.proto.Query.StartCommitResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StartCommitResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StartCommitResponse build() { com.youtube.vitess.proto.Query.StartCommitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StartCommitResponse buildPartial() { com.youtube.vitess.proto.Query.StartCommitResponse result = new com.youtube.vitess.proto.Query.StartCommitResponse(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.Query.StartCommitResponse) { return mergeFrom((com.youtube.vitess.proto.Query.StartCommitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StartCommitResponse other) { if (other == com.youtube.vitess.proto.Query.StartCommitResponse.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.Query.StartCommitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StartCommitResponse) 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:query.StartCommitResponse) } // @@protoc_insertion_point(class_scope:query.StartCommitResponse) private static final com.youtube.vitess.proto.Query.StartCommitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StartCommitResponse(); } public static com.youtube.vitess.proto.Query.StartCommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StartCommitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StartCommitResponse(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.Query.StartCommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetRollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.SetRollbackRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional int64 transaction_id = 4; */ long getTransactionId(); /** * optional string dtid = 5; */ java.lang.String getDtid(); /** * optional string dtid = 5; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * SetRollbackRequest is the payload to SetRollback
   * 
* * Protobuf type {@code query.SetRollbackRequest} */ public static final class SetRollbackRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.SetRollbackRequest) SetRollbackRequestOrBuilder { // Use SetRollbackRequest.newBuilder() to construct. private SetRollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetRollbackRequest() { transactionId_ = 0L; dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetRollbackRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 32: { transactionId_ = input.readInt64(); break; } case 42: { 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.Query.internal_static_query_SetRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SetRollbackRequest.class, com.youtube.vitess.proto.Query.SetRollbackRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 4; private long transactionId_; /** * optional int64 transaction_id = 4; */ public long getTransactionId() { return transactionId_; } public static final int DTID_FIELD_NUMBER = 5; private volatile java.lang.Object dtid_; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (transactionId_ != 0L) { output.writeInt64(4, transactionId_); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, transactionId_); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.Query.SetRollbackRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.SetRollbackRequest other = (com.youtube.vitess.proto.Query.SetRollbackRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getTransactionId() == other.getTransactionId()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().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 = (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.Query.SetRollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.SetRollbackRequest 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.Query.SetRollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.SetRollbackRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.SetRollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackRequest 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.Query.SetRollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackRequest 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.Query.SetRollbackRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackRequest 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.Query.SetRollbackRequest 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; } /** *
     * SetRollbackRequest is the payload to SetRollback
     * 
* * Protobuf type {@code query.SetRollbackRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.SetRollbackRequest) com.youtube.vitess.proto.Query.SetRollbackRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SetRollbackRequest.class, com.youtube.vitess.proto.Query.SetRollbackRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.SetRollbackRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } transactionId_ = 0L; dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackRequest_descriptor; } public com.youtube.vitess.proto.Query.SetRollbackRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.SetRollbackRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.SetRollbackRequest build() { com.youtube.vitess.proto.Query.SetRollbackRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.SetRollbackRequest buildPartial() { com.youtube.vitess.proto.Query.SetRollbackRequest result = new com.youtube.vitess.proto.Query.SetRollbackRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.SetRollbackRequest) { return mergeFrom((com.youtube.vitess.proto.Query.SetRollbackRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.SetRollbackRequest other) { if (other == com.youtube.vitess.proto.Query.SetRollbackRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getTransactionId() != 0L) { setTransactionId(other.getTransactionId()); } 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.Query.SetRollbackRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.SetRollbackRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 4; */ public long getTransactionId() { return transactionId_; } /** * optional int64 transaction_id = 4; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** * optional int64 transaction_id = 4; */ public Builder clearTransactionId() { transactionId_ = 0L; onChanged(); return this; } private java.lang.Object dtid_ = ""; /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ 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; } } /** * optional string dtid = 5; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 5; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 5; */ 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:query.SetRollbackRequest) } // @@protoc_insertion_point(class_scope:query.SetRollbackRequest) private static final com.youtube.vitess.proto.Query.SetRollbackRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.SetRollbackRequest(); } public static com.youtube.vitess.proto.Query.SetRollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SetRollbackRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetRollbackRequest(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.Query.SetRollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetRollbackResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.SetRollbackResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * SetRollbackResponse is the returned value from SetRollback
   * 
* * Protobuf type {@code query.SetRollbackResponse} */ public static final class SetRollbackResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.SetRollbackResponse) SetRollbackResponseOrBuilder { // Use SetRollbackResponse.newBuilder() to construct. private SetRollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetRollbackResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetRollbackResponse( 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.Query.internal_static_query_SetRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SetRollbackResponse.class, com.youtube.vitess.proto.Query.SetRollbackResponse.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.Query.SetRollbackResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.SetRollbackResponse other = (com.youtube.vitess.proto.Query.SetRollbackResponse) 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.Query.SetRollbackResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.SetRollbackResponse 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.Query.SetRollbackResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.SetRollbackResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.SetRollbackResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackResponse 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.Query.SetRollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackResponse 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.Query.SetRollbackResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.SetRollbackResponse 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.Query.SetRollbackResponse 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; } /** *
     * SetRollbackResponse is the returned value from SetRollback
     * 
* * Protobuf type {@code query.SetRollbackResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.SetRollbackResponse) com.youtube.vitess.proto.Query.SetRollbackResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SetRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SetRollbackResponse.class, com.youtube.vitess.proto.Query.SetRollbackResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.SetRollbackResponse.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.Query.internal_static_query_SetRollbackResponse_descriptor; } public com.youtube.vitess.proto.Query.SetRollbackResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.SetRollbackResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.SetRollbackResponse build() { com.youtube.vitess.proto.Query.SetRollbackResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.SetRollbackResponse buildPartial() { com.youtube.vitess.proto.Query.SetRollbackResponse result = new com.youtube.vitess.proto.Query.SetRollbackResponse(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.Query.SetRollbackResponse) { return mergeFrom((com.youtube.vitess.proto.Query.SetRollbackResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.SetRollbackResponse other) { if (other == com.youtube.vitess.proto.Query.SetRollbackResponse.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.Query.SetRollbackResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.SetRollbackResponse) 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:query.SetRollbackResponse) } // @@protoc_insertion_point(class_scope:query.SetRollbackResponse) private static final com.youtube.vitess.proto.Query.SetRollbackResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.SetRollbackResponse(); } public static com.youtube.vitess.proto.Query.SetRollbackResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SetRollbackResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetRollbackResponse(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.Query.SetRollbackResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConcludeTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ConcludeTransactionRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional string dtid = 4; */ java.lang.String getDtid(); /** * optional string dtid = 4; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * ConcludeTransactionRequest is the payload to ConcludeTransaction
   * 
* * Protobuf type {@code query.ConcludeTransactionRequest} */ public static final class ConcludeTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ConcludeTransactionRequest) ConcludeTransactionRequestOrBuilder { // Use ConcludeTransactionRequest.newBuilder() to construct. private ConcludeTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConcludeTransactionRequest() { dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConcludeTransactionRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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.Query.internal_static_query_ConcludeTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ConcludeTransactionRequest.class, com.youtube.vitess.proto.Query.ConcludeTransactionRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int DTID_FIELD_NUMBER = 4; private volatile java.lang.Object dtid_; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.Query.ConcludeTransactionRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ConcludeTransactionRequest other = (com.youtube.vitess.proto.Query.ConcludeTransactionRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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.Query.ConcludeTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest 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.Query.ConcludeTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest 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.Query.ConcludeTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest 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.Query.ConcludeTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest 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.Query.ConcludeTransactionRequest 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; } /** *
     * ConcludeTransactionRequest is the payload to ConcludeTransaction
     * 
* * Protobuf type {@code query.ConcludeTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ConcludeTransactionRequest) com.youtube.vitess.proto.Query.ConcludeTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ConcludeTransactionRequest.class, com.youtube.vitess.proto.Query.ConcludeTransactionRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ConcludeTransactionRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionRequest_descriptor; } public com.youtube.vitess.proto.Query.ConcludeTransactionRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ConcludeTransactionRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ConcludeTransactionRequest build() { com.youtube.vitess.proto.Query.ConcludeTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ConcludeTransactionRequest buildPartial() { com.youtube.vitess.proto.Query.ConcludeTransactionRequest result = new com.youtube.vitess.proto.Query.ConcludeTransactionRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.Query.ConcludeTransactionRequest) { return mergeFrom((com.youtube.vitess.proto.Query.ConcludeTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ConcludeTransactionRequest other) { if (other == com.youtube.vitess.proto.Query.ConcludeTransactionRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.Query.ConcludeTransactionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ConcludeTransactionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object dtid_ = ""; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 4; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 4; */ 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:query.ConcludeTransactionRequest) } // @@protoc_insertion_point(class_scope:query.ConcludeTransactionRequest) private static final com.youtube.vitess.proto.Query.ConcludeTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ConcludeTransactionRequest(); } public static com.youtube.vitess.proto.Query.ConcludeTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConcludeTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConcludeTransactionRequest(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.Query.ConcludeTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConcludeTransactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ConcludeTransactionResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * ConcludeTransactionResponse is the returned value from ConcludeTransaction
   * 
* * Protobuf type {@code query.ConcludeTransactionResponse} */ public static final class ConcludeTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ConcludeTransactionResponse) ConcludeTransactionResponseOrBuilder { // Use ConcludeTransactionResponse.newBuilder() to construct. private ConcludeTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConcludeTransactionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConcludeTransactionResponse( 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.Query.internal_static_query_ConcludeTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ConcludeTransactionResponse.class, com.youtube.vitess.proto.Query.ConcludeTransactionResponse.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.Query.ConcludeTransactionResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ConcludeTransactionResponse other = (com.youtube.vitess.proto.Query.ConcludeTransactionResponse) 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.Query.ConcludeTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse 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.Query.ConcludeTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse 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.Query.ConcludeTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse 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.Query.ConcludeTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse 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.Query.ConcludeTransactionResponse 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; } /** *
     * ConcludeTransactionResponse is the returned value from ConcludeTransaction
     * 
* * Protobuf type {@code query.ConcludeTransactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ConcludeTransactionResponse) com.youtube.vitess.proto.Query.ConcludeTransactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ConcludeTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ConcludeTransactionResponse.class, com.youtube.vitess.proto.Query.ConcludeTransactionResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ConcludeTransactionResponse.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.Query.internal_static_query_ConcludeTransactionResponse_descriptor; } public com.youtube.vitess.proto.Query.ConcludeTransactionResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ConcludeTransactionResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ConcludeTransactionResponse build() { com.youtube.vitess.proto.Query.ConcludeTransactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ConcludeTransactionResponse buildPartial() { com.youtube.vitess.proto.Query.ConcludeTransactionResponse result = new com.youtube.vitess.proto.Query.ConcludeTransactionResponse(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.Query.ConcludeTransactionResponse) { return mergeFrom((com.youtube.vitess.proto.Query.ConcludeTransactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ConcludeTransactionResponse other) { if (other == com.youtube.vitess.proto.Query.ConcludeTransactionResponse.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.Query.ConcludeTransactionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ConcludeTransactionResponse) 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:query.ConcludeTransactionResponse) } // @@protoc_insertion_point(class_scope:query.ConcludeTransactionResponse) private static final com.youtube.vitess.proto.Query.ConcludeTransactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ConcludeTransactionResponse(); } public static com.youtube.vitess.proto.Query.ConcludeTransactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConcludeTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConcludeTransactionResponse(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.Query.ConcludeTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ReadTransactionRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional string dtid = 4; */ java.lang.String getDtid(); /** * optional string dtid = 4; */ com.google.protobuf.ByteString getDtidBytes(); } /** *
   * ReadTransactionRequest is the payload to ReadTransaction
   * 
* * Protobuf type {@code query.ReadTransactionRequest} */ public static final class ReadTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ReadTransactionRequest) ReadTransactionRequestOrBuilder { // Use ReadTransactionRequest.newBuilder() to construct. private ReadTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadTransactionRequest() { dtid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ReadTransactionRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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.Query.internal_static_query_ReadTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ReadTransactionRequest.class, com.youtube.vitess.proto.Query.ReadTransactionRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int DTID_FIELD_NUMBER = 4; private volatile java.lang.Object dtid_; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dtid_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.Query.ReadTransactionRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ReadTransactionRequest other = (com.youtube.vitess.proto.Query.ReadTransactionRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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.Query.ReadTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest 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.Query.ReadTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest 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.Query.ReadTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest 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.Query.ReadTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest 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.Query.ReadTransactionRequest 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; } /** *
     * ReadTransactionRequest is the payload to ReadTransaction
     * 
* * Protobuf type {@code query.ReadTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ReadTransactionRequest) com.youtube.vitess.proto.Query.ReadTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ReadTransactionRequest.class, com.youtube.vitess.proto.Query.ReadTransactionRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ReadTransactionRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } dtid_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionRequest_descriptor; } public com.youtube.vitess.proto.Query.ReadTransactionRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ReadTransactionRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ReadTransactionRequest build() { com.youtube.vitess.proto.Query.ReadTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ReadTransactionRequest buildPartial() { com.youtube.vitess.proto.Query.ReadTransactionRequest result = new com.youtube.vitess.proto.Query.ReadTransactionRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.Query.ReadTransactionRequest) { return mergeFrom((com.youtube.vitess.proto.Query.ReadTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ReadTransactionRequest other) { if (other == com.youtube.vitess.proto.Query.ReadTransactionRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.Query.ReadTransactionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ReadTransactionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object dtid_ = ""; /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ 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; } } /** * optional string dtid = 4; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 4; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 4; */ 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:query.ReadTransactionRequest) } // @@protoc_insertion_point(class_scope:query.ReadTransactionRequest) private static final com.youtube.vitess.proto.Query.ReadTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ReadTransactionRequest(); } public static com.youtube.vitess.proto.Query.ReadTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadTransactionRequest(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.Query.ReadTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadTransactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.ReadTransactionResponse) com.google.protobuf.MessageOrBuilder { /** * optional .query.TransactionMetadata metadata = 1; */ boolean hasMetadata(); /** * optional .query.TransactionMetadata metadata = 1; */ com.youtube.vitess.proto.Query.TransactionMetadata getMetadata(); /** * optional .query.TransactionMetadata metadata = 1; */ com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder getMetadataOrBuilder(); } /** *
   * ReadTransactionResponse is the returned value from ReadTransaction
   * 
* * Protobuf type {@code query.ReadTransactionResponse} */ public static final class ReadTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.ReadTransactionResponse) ReadTransactionResponseOrBuilder { // Use ReadTransactionResponse.newBuilder() to construct. private ReadTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadTransactionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ReadTransactionResponse( 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.TransactionMetadata.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.youtube.vitess.proto.Query.TransactionMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = 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.Query.internal_static_query_ReadTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ReadTransactionResponse.class, com.youtube.vitess.proto.Query.ReadTransactionResponse.Builder.class); } public static final int METADATA_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.TransactionMetadata metadata_; /** * optional .query.TransactionMetadata metadata = 1; */ public boolean hasMetadata() { return metadata_ != null; } /** * optional .query.TransactionMetadata metadata = 1; */ public com.youtube.vitess.proto.Query.TransactionMetadata getMetadata() { return metadata_ == null ? com.youtube.vitess.proto.Query.TransactionMetadata.getDefaultInstance() : metadata_; } /** * optional .query.TransactionMetadata metadata = 1; */ public com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } 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 (metadata_ != null) { output.writeMessage(1, getMetadata()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMetadata()); } 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.Query.ReadTransactionResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.ReadTransactionResponse other = (com.youtube.vitess.proto.Query.ReadTransactionResponse) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.ReadTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse 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.Query.ReadTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse 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.Query.ReadTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse 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.Query.ReadTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse 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.Query.ReadTransactionResponse 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; } /** *
     * ReadTransactionResponse is the returned value from ReadTransaction
     * 
* * Protobuf type {@code query.ReadTransactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.ReadTransactionResponse) com.youtube.vitess.proto.Query.ReadTransactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.ReadTransactionResponse.class, com.youtube.vitess.proto.Query.ReadTransactionResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.ReadTransactionResponse.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 (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_ReadTransactionResponse_descriptor; } public com.youtube.vitess.proto.Query.ReadTransactionResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.ReadTransactionResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.ReadTransactionResponse build() { com.youtube.vitess.proto.Query.ReadTransactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.ReadTransactionResponse buildPartial() { com.youtube.vitess.proto.Query.ReadTransactionResponse result = new com.youtube.vitess.proto.Query.ReadTransactionResponse(this); if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.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.Query.ReadTransactionResponse) { return mergeFrom((com.youtube.vitess.proto.Query.ReadTransactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.ReadTransactionResponse other) { if (other == com.youtube.vitess.proto.Query.ReadTransactionResponse.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } 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.Query.ReadTransactionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.ReadTransactionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Query.TransactionMetadata metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.TransactionMetadata, com.youtube.vitess.proto.Query.TransactionMetadata.Builder, com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder> metadataBuilder_; /** * optional .query.TransactionMetadata metadata = 1; */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** * optional .query.TransactionMetadata metadata = 1; */ public com.youtube.vitess.proto.Query.TransactionMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.youtube.vitess.proto.Query.TransactionMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * optional .query.TransactionMetadata metadata = 1; */ public Builder setMetadata(com.youtube.vitess.proto.Query.TransactionMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** * optional .query.TransactionMetadata metadata = 1; */ public Builder setMetadata( com.youtube.vitess.proto.Query.TransactionMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.TransactionMetadata metadata = 1; */ public Builder mergeMetadata(com.youtube.vitess.proto.Query.TransactionMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.youtube.vitess.proto.Query.TransactionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** * optional .query.TransactionMetadata metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** * optional .query.TransactionMetadata metadata = 1; */ public com.youtube.vitess.proto.Query.TransactionMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * optional .query.TransactionMetadata metadata = 1; */ public com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.youtube.vitess.proto.Query.TransactionMetadata.getDefaultInstance() : metadata_; } } /** * optional .query.TransactionMetadata metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.TransactionMetadata, com.youtube.vitess.proto.Query.TransactionMetadata.Builder, com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.TransactionMetadata, com.youtube.vitess.proto.Query.TransactionMetadata.Builder, com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } 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:query.ReadTransactionResponse) } // @@protoc_insertion_point(class_scope:query.ReadTransactionResponse) private static final com.youtube.vitess.proto.Query.ReadTransactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.ReadTransactionResponse(); } public static com.youtube.vitess.proto.Query.ReadTransactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadTransactionResponse(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.Query.ReadTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginExecuteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginExecuteRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional .query.BoundQuery query = 4; */ boolean hasQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** * optional .query.ExecuteOptions options = 5; */ boolean hasOptions(); /** * optional .query.ExecuteOptions options = 5; */ com.youtube.vitess.proto.Query.ExecuteOptions getOptions(); /** * optional .query.ExecuteOptions options = 5; */ com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * BeginExecuteRequest is the payload to BeginExecute
   * 
* * Protobuf type {@code query.BeginExecuteRequest} */ public static final class BeginExecuteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginExecuteRequest) BeginExecuteRequestOrBuilder { // Use BeginExecuteRequest.newBuilder() to construct. private BeginExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginExecuteRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginExecuteRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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 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.Query.internal_static_query_BeginExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteRequest.class, com.youtube.vitess.proto.Query.BeginExecuteRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERY_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Query.BoundQuery query_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return query_ != null; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQuery() { return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int OPTIONS_FIELD_NUMBER = 5; private com.youtube.vitess.proto.Query.ExecuteOptions options_; /** * optional .query.ExecuteOptions options = 5; */ public boolean hasOptions() { return options_ != null; } /** * optional .query.ExecuteOptions options = 5; */ public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() { return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (query_ != null) { output.writeMessage(4, getQuery()); } if (options_ != null) { output.writeMessage(5, getOptions()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getQuery()); } 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.Query.BeginExecuteRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginExecuteRequest other = (com.youtube.vitess.proto.Query.BeginExecuteRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().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.Query.BeginExecuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest 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.Query.BeginExecuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest 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.Query.BeginExecuteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest 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.Query.BeginExecuteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest 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.Query.BeginExecuteRequest 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; } /** *
     * BeginExecuteRequest is the payload to BeginExecute
     * 
* * Protobuf type {@code query.BeginExecuteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginExecuteRequest) com.youtube.vitess.proto.Query.BeginExecuteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteRequest.class, com.youtube.vitess.proto.Query.BeginExecuteRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BeginExecuteRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } if (optionsBuilder_ == null) { options_ = null; } else { options_ = null; optionsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteRequest_descriptor; } public com.youtube.vitess.proto.Query.BeginExecuteRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginExecuteRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginExecuteRequest build() { com.youtube.vitess.proto.Query.BeginExecuteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginExecuteRequest buildPartial() { com.youtube.vitess.proto.Query.BeginExecuteRequest result = new com.youtube.vitess.proto.Query.BeginExecuteRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } 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.Query.BeginExecuteRequest) { return mergeFrom((com.youtube.vitess.proto.Query.BeginExecuteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginExecuteRequest other) { if (other == com.youtube.vitess.proto.Query.BeginExecuteRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } 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.Query.BeginExecuteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginExecuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 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_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** * optional .query.BoundQuery query = 4; */ 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(); } } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** * optional .query.BoundQuery query = 4; */ 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_; } } /** * optional .query.BoundQuery query = 4; */ 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.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_; /** * optional .query.ExecuteOptions options = 5; */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.ExecuteOptions options = 5; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** * optional .query.ExecuteOptions options = 5; */ public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.BeginExecuteRequest) } // @@protoc_insertion_point(class_scope:query.BeginExecuteRequest) private static final com.youtube.vitess.proto.Query.BeginExecuteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginExecuteRequest(); } public static com.youtube.vitess.proto.Query.BeginExecuteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginExecuteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginExecuteRequest(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.Query.BeginExecuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginExecuteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginExecuteResponse) com.google.protobuf.MessageOrBuilder { /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ boolean hasError(); /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCError getError(); /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder(); /** * optional .query.QueryResult result = 2; */ boolean hasResult(); /** * optional .query.QueryResult result = 2; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** * optional .query.QueryResult result = 2; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); /** *
     * transaction_id might be non-zero even if an error is present.
     * 
* * optional int64 transaction_id = 3; */ long getTransactionId(); } /** *
   * BeginExecuteResponse is the returned value from BeginExecute
   * 
* * Protobuf type {@code query.BeginExecuteResponse} */ public static final class BeginExecuteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginExecuteResponse) BeginExecuteResponseOrBuilder { // Use BeginExecuteResponse.newBuilder() to construct. private BeginExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginExecuteResponse() { transactionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginExecuteResponse( 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.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; } case 24: { 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.Query.internal_static_query_BeginExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteResponse.class, com.youtube.vitess.proto.Query.BeginExecuteResponse.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
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return error_ != null; } /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * 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
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int RESULT_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.QueryResult result_; /** * optional .query.QueryResult result = 2; */ public boolean hasResult() { return result_ != null; } /** * optional .query.QueryResult result = 2; */ public com.youtube.vitess.proto.Query.QueryResult getResult() { return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_; } /** * optional .query.QueryResult result = 2; */ public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() { return getResult(); } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; private long transactionId_; /** *
     * transaction_id might be non-zero even if an error is present.
     * 
* * optional int64 transaction_id = 3; */ 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 (error_ != null) { output.writeMessage(1, getError()); } if (result_ != null) { output.writeMessage(2, getResult()); } if (transactionId_ != 0L) { output.writeInt64(3, transactionId_); } } 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 (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, 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.Query.BeginExecuteResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginExecuteResponse other = (com.youtube.vitess.proto.Query.BeginExecuteResponse) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (hasResult() == other.hasResult()); if (hasResult()) { result = result && getResult() .equals(other.getResult()); } 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().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.Query.BeginExecuteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse 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.Query.BeginExecuteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse 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.Query.BeginExecuteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse 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.Query.BeginExecuteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse 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.Query.BeginExecuteResponse 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; } /** *
     * BeginExecuteResponse is the returned value from BeginExecute
     * 
* * Protobuf type {@code query.BeginExecuteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginExecuteResponse) com.youtube.vitess.proto.Query.BeginExecuteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteResponse.class, com.youtube.vitess.proto.Query.BeginExecuteResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BeginExecuteResponse.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 (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } transactionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteResponse_descriptor; } public com.youtube.vitess.proto.Query.BeginExecuteResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginExecuteResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginExecuteResponse build() { com.youtube.vitess.proto.Query.BeginExecuteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginExecuteResponse buildPartial() { com.youtube.vitess.proto.Query.BeginExecuteResponse result = new com.youtube.vitess.proto.Query.BeginExecuteResponse(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.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.Query.BeginExecuteResponse) { return mergeFrom((com.youtube.vitess.proto.Query.BeginExecuteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginExecuteResponse other) { if (other == com.youtube.vitess.proto.Query.BeginExecuteResponse.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.hasResult()) { mergeResult(other.getResult()); } 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.Query.BeginExecuteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginExecuteResponse) 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * error contains an application level error if necessary. Note the
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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.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_; /** * optional .query.QueryResult result = 2; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * optional .query.QueryResult result = 2; */ 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(); } } /** * optional .query.QueryResult result = 2; */ 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; } /** * optional .query.QueryResult result = 2; */ 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; } /** * optional .query.QueryResult result = 2; */ 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; } /** * optional .query.QueryResult result = 2; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * optional .query.QueryResult result = 2; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * optional .query.QueryResult result = 2; */ 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_; } } /** * optional .query.QueryResult result = 2; */ 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_; } private long transactionId_ ; /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ public long getTransactionId() { return transactionId_; } /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ 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:query.BeginExecuteResponse) } // @@protoc_insertion_point(class_scope:query.BeginExecuteResponse) private static final com.youtube.vitess.proto.Query.BeginExecuteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginExecuteResponse(); } public static com.youtube.vitess.proto.Query.BeginExecuteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginExecuteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginExecuteResponse(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.Query.BeginExecuteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginExecuteBatchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginExecuteBatchRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * repeated .query.BoundQuery queries = 4; */ java.util.List getQueriesList(); /** * repeated .query.BoundQuery queries = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQueries(int index); /** * repeated .query.BoundQuery queries = 4; */ int getQueriesCount(); /** * repeated .query.BoundQuery queries = 4; */ java.util.List getQueriesOrBuilderList(); /** * repeated .query.BoundQuery queries = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index); /** * optional bool as_transaction = 5; */ boolean getAsTransaction(); /** * optional .query.ExecuteOptions options = 6; */ boolean hasOptions(); /** * optional .query.ExecuteOptions options = 6; */ com.youtube.vitess.proto.Query.ExecuteOptions getOptions(); /** * optional .query.ExecuteOptions options = 6; */ com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * BeginExecuteBatchRequest is the payload to BeginExecuteBatch
   * 
* * Protobuf type {@code query.BeginExecuteBatchRequest} */ public static final class BeginExecuteBatchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginExecuteBatchRequest) BeginExecuteBatchRequestOrBuilder { // Use BeginExecuteBatchRequest.newBuilder() to construct. private BeginExecuteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginExecuteBatchRequest() { queries_ = java.util.Collections.emptyList(); asTransaction_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginExecuteBatchRequest( 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { queries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } queries_.add( input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry)); 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_ & 0x00000008) == 0x00000008)) { queries_ = java.util.Collections.unmodifiableList(queries_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.class, com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.Builder.class); } private int bitField0_; public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERIES_FIELD_NUMBER = 4; private java.util.List queries_; /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesList() { return queries_; } /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesOrBuilderList() { return queries_; } /** * repeated .query.BoundQuery queries = 4; */ public int getQueriesCount() { return queries_.size(); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) { return queries_.get(index); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index) { return queries_.get(index); } public static final int AS_TRANSACTION_FIELD_NUMBER = 5; private boolean asTransaction_; /** * 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_; /** * optional .query.ExecuteOptions options = 6; */ public boolean hasOptions() { return options_ != null; } /** * optional .query.ExecuteOptions options = 6; */ public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() { return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(4, queries_.get(i)); } 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 (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } for (int i = 0; i < queries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, queries_.get(i)); } 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.Query.BeginExecuteBatchRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginExecuteBatchRequest other = (com.youtube.vitess.proto.Query.BeginExecuteBatchRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && getQueriesList() .equals(other.getQueriesList()); 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (getQueriesCount() > 0) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + getQueriesList().hashCode(); } 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.Query.BeginExecuteBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest 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.Query.BeginExecuteBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest 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.Query.BeginExecuteBatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest 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.Query.BeginExecuteBatchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest 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.Query.BeginExecuteBatchRequest 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; } /** *
     * BeginExecuteBatchRequest is the payload to BeginExecuteBatch
     * 
* * Protobuf type {@code query.BeginExecuteBatchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginExecuteBatchRequest) com.youtube.vitess.proto.Query.BeginExecuteBatchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.class, com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { queriesBuilder_.clear(); } 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.Query.internal_static_query_BeginExecuteBatchRequest_descriptor; } public com.youtube.vitess.proto.Query.BeginExecuteBatchRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginExecuteBatchRequest build() { com.youtube.vitess.proto.Query.BeginExecuteBatchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginExecuteBatchRequest buildPartial() { com.youtube.vitess.proto.Query.BeginExecuteBatchRequest result = new com.youtube.vitess.proto.Query.BeginExecuteBatchRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000008); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.build(); } 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.Query.BeginExecuteBatchRequest) { return mergeFrom((com.youtube.vitess.proto.Query.BeginExecuteBatchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginExecuteBatchRequest other) { if (other == com.youtube.vitess.proto.Query.BeginExecuteBatchRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000008); queriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueriesFieldBuilder() : null; } else { queriesBuilder_.addAllMessages(other.queries_); } } } 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.Query.BeginExecuteBatchRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginExecuteBatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000008; } } 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_; /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesList() { if (queriesBuilder_ == null) { return java.util.Collections.unmodifiableList(queries_); } else { return queriesBuilder_.getMessageList(); } } /** * repeated .query.BoundQuery queries = 4; */ public int getQueriesCount() { if (queriesBuilder_ == null) { return queries_.size(); } else { return queriesBuilder_.getCount(); } } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessage(index); } } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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; } /** * repeated .query.BoundQuery queries = 4; */ 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 .query.BoundQuery queries = 4; */ public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { queriesBuilder_.clear(); } return this; } /** * repeated .query.BoundQuery queries = 4; */ public Builder removeQueries(int index) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.remove(index); onChanged(); } else { queriesBuilder_.remove(index); } return this; } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueriesBuilder( int index) { return getQueriesFieldBuilder().getBuilder(index); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder( int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.BoundQuery queries = 4; */ public java.util.List getQueriesOrBuilderList() { if (queriesBuilder_ != null) { return queriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queries_); } } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder() { return getQueriesFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance()); } /** * repeated .query.BoundQuery queries = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder( int index) { return getQueriesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance()); } /** * repeated .query.BoundQuery queries = 4; */ 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_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } private boolean asTransaction_ ; /** * optional bool as_transaction = 5; */ public boolean getAsTransaction() { return asTransaction_; } /** * optional bool as_transaction = 5; */ public Builder setAsTransaction(boolean value) { asTransaction_ = value; onChanged(); return this; } /** * 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_; /** * optional .query.ExecuteOptions options = 6; */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.ExecuteOptions options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** * optional .query.ExecuteOptions options = 6; */ public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.BeginExecuteBatchRequest) } // @@protoc_insertion_point(class_scope:query.BeginExecuteBatchRequest) private static final com.youtube.vitess.proto.Query.BeginExecuteBatchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginExecuteBatchRequest(); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginExecuteBatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginExecuteBatchRequest(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.Query.BeginExecuteBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginExecuteBatchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.BeginExecuteBatchResponse) com.google.protobuf.MessageOrBuilder { /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ boolean hasError(); /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCError getError(); /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder(); /** * repeated .query.QueryResult results = 2; */ java.util.List getResultsList(); /** * repeated .query.QueryResult results = 2; */ com.youtube.vitess.proto.Query.QueryResult getResults(int index); /** * repeated .query.QueryResult results = 2; */ int getResultsCount(); /** * repeated .query.QueryResult results = 2; */ java.util.List getResultsOrBuilderList(); /** * repeated .query.QueryResult results = 2; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder( int index); /** *
     * transaction_id might be non-zero even if an error is present.
     * 
* * optional int64 transaction_id = 3; */ long getTransactionId(); } /** *
   * BeginExecuteBatchResponse is the returned value from BeginExecuteBatch
   * 
* * Protobuf type {@code query.BeginExecuteBatchResponse} */ public static final class BeginExecuteBatchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.BeginExecuteBatchResponse) BeginExecuteBatchResponseOrBuilder { // Use BeginExecuteBatchResponse.newBuilder() to construct. private BeginExecuteBatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginExecuteBatchResponse() { results_ = java.util.Collections.emptyList(); transactionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BeginExecuteBatchResponse( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry)); break; } case 24: { 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.class, com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.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
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return error_ != null; } /** *
     * error contains an application level error if necessary. Note the
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * 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
     * transaction_id may be set, even when an error is returned, if the begin
     * worked but the execute failed.
     * 
* * optional .vtrpc.RPCError error = 1; */ public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** * repeated .query.QueryResult results = 2; */ public java.util.List getResultsList() { return results_; } /** * repeated .query.QueryResult results = 2; */ public java.util.List getResultsOrBuilderList() { return results_; } /** * repeated .query.QueryResult results = 2; */ public int getResultsCount() { return results_.size(); } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResult getResults(int index) { return results_.get(index); } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; private long transactionId_; /** *
     * transaction_id might be non-zero even if an error is present.
     * 
* * optional int64 transaction_id = 3; */ 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 (error_ != null) { output.writeMessage(1, getError()); } for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } if (transactionId_ != 0L) { output.writeInt64(3, transactionId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } if (transactionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, 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.Query.BeginExecuteBatchResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.BeginExecuteBatchResponse other = (com.youtube.vitess.proto.Query.BeginExecuteBatchResponse) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getResultsList() .equals(other.getResultsList()); 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().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.Query.BeginExecuteBatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse 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.Query.BeginExecuteBatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse 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.Query.BeginExecuteBatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse 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.Query.BeginExecuteBatchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse 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.Query.BeginExecuteBatchResponse 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; } /** *
     * BeginExecuteBatchResponse is the returned value from BeginExecuteBatch
     * 
* * Protobuf type {@code query.BeginExecuteBatchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.BeginExecuteBatchResponse) com.youtube.vitess.proto.Query.BeginExecuteBatchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.class, com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.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 (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } transactionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_BeginExecuteBatchResponse_descriptor; } public com.youtube.vitess.proto.Query.BeginExecuteBatchResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.BeginExecuteBatchResponse build() { com.youtube.vitess.proto.Query.BeginExecuteBatchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.BeginExecuteBatchResponse buildPartial() { com.youtube.vitess.proto.Query.BeginExecuteBatchResponse result = new com.youtube.vitess.proto.Query.BeginExecuteBatchResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } result.transactionId_ = transactionId_; 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.Query.BeginExecuteBatchResponse) { return mergeFrom((com.youtube.vitess.proto.Query.BeginExecuteBatchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.BeginExecuteBatchResponse other) { if (other == com.youtube.vitess.proto.Query.BeginExecuteBatchResponse.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } 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.Query.BeginExecuteBatchResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.BeginExecuteBatchResponse) 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * optional .vtrpc.RPCError error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * error contains an application level error if necessary. Note the
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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
       * transaction_id may be set, even when an error is returned, if the begin
       * worked but the execute failed.
       * 
* * 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 java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000002; } } 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_; /** * repeated .query.QueryResult results = 2; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** * repeated .query.QueryResult results = 2; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ 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; } /** * repeated .query.QueryResult results = 2; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** * repeated .query.QueryResult results = 2; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.QueryResult results = 2; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance()); } /** * repeated .query.QueryResult results = 2; */ public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance()); } /** * repeated .query.QueryResult results = 2; */ 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_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } private long transactionId_ ; /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ public long getTransactionId() { return transactionId_; } /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ public Builder setTransactionId(long value) { transactionId_ = value; onChanged(); return this; } /** *
       * transaction_id might be non-zero even if an error is present.
       * 
* * optional int64 transaction_id = 3; */ 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:query.BeginExecuteBatchResponse) } // @@protoc_insertion_point(class_scope:query.BeginExecuteBatchResponse) private static final com.youtube.vitess.proto.Query.BeginExecuteBatchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.BeginExecuteBatchResponse(); } public static com.youtube.vitess.proto.Query.BeginExecuteBatchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BeginExecuteBatchResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BeginExecuteBatchResponse(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.Query.BeginExecuteBatchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.MessageStreamRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ java.lang.String getName(); /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * MessageStreamRequest is the request payload for MessageStream.
   * 
* * Protobuf type {@code query.MessageStreamRequest} */ public static final class MessageStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.MessageStreamRequest) MessageStreamRequestOrBuilder { // Use MessageStreamRequest.newBuilder() to construct. private MessageStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageStreamRequest() { 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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.Query.internal_static_query_MessageStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageStreamRequest.class, com.youtube.vitess.proto.Query.MessageStreamRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ 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 = 4; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.Query.MessageStreamRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.MessageStreamRequest other = (com.youtube.vitess.proto.Query.MessageStreamRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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.Query.MessageStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.MessageStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.MessageStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.MessageStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.MessageStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.MessageStreamRequest) com.youtube.vitess.proto.Query.MessageStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageStreamRequest.class, com.youtube.vitess.proto.Query.MessageStreamRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamRequest_descriptor; } public com.youtube.vitess.proto.Query.MessageStreamRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.MessageStreamRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.MessageStreamRequest build() { com.youtube.vitess.proto.Query.MessageStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.MessageStreamRequest buildPartial() { com.youtube.vitess.proto.Query.MessageStreamRequest result = new com.youtube.vitess.proto.Query.MessageStreamRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.Query.MessageStreamRequest) { return mergeFrom((com.youtube.vitess.proto.Query.MessageStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.MessageStreamRequest other) { if (other == com.youtube.vitess.proto.Query.MessageStreamRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.Query.MessageStreamRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.MessageStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object name_ = ""; /** *
       * name is the message table name.
       * 
* * optional string name = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 4; */ 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:query.MessageStreamRequest) } // @@protoc_insertion_point(class_scope:query.MessageStreamRequest) private static final com.youtube.vitess.proto.Query.MessageStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.MessageStreamRequest(); } public static com.youtube.vitess.proto.Query.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.Query.MessageStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageStreamResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.MessageStreamResponse) com.google.protobuf.MessageOrBuilder { /** * optional .query.QueryResult result = 1; */ boolean hasResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); } /** *
   * MessageStreamResponse is a response for MessageStream.
   * 
* * Protobuf type {@code query.MessageStreamResponse} */ public static final class MessageStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.MessageStreamResponse) MessageStreamResponseOrBuilder { // Use MessageStreamResponse.newBuilder() to construct. private MessageStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageStreamResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MessageStreamResponse( 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.Query.internal_static_query_MessageStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageStreamResponse.class, com.youtube.vitess.proto.Query.MessageStreamResponse.Builder.class); } public static final int RESULT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.QueryResult result_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return result_ != null; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult getResult() { return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : 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.Query.MessageStreamResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.MessageStreamResponse other = (com.youtube.vitess.proto.Query.MessageStreamResponse) 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.Query.MessageStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.MessageStreamResponse 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.Query.MessageStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.MessageStreamResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.MessageStreamResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageStreamResponse 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.Query.MessageStreamResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageStreamResponse 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.Query.MessageStreamResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageStreamResponse 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.Query.MessageStreamResponse 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; } /** *
     * MessageStreamResponse is a response for MessageStream.
     * 
* * Protobuf type {@code query.MessageStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.MessageStreamResponse) com.youtube.vitess.proto.Query.MessageStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageStreamResponse.class, com.youtube.vitess.proto.Query.MessageStreamResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.MessageStreamResponse.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.Query.internal_static_query_MessageStreamResponse_descriptor; } public com.youtube.vitess.proto.Query.MessageStreamResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.MessageStreamResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.MessageStreamResponse build() { com.youtube.vitess.proto.Query.MessageStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.MessageStreamResponse buildPartial() { com.youtube.vitess.proto.Query.MessageStreamResponse result = new com.youtube.vitess.proto.Query.MessageStreamResponse(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.Query.MessageStreamResponse) { return mergeFrom((com.youtube.vitess.proto.Query.MessageStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.MessageStreamResponse other) { if (other == com.youtube.vitess.proto.Query.MessageStreamResponse.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.Query.MessageStreamResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.MessageStreamResponse) 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_; /** * optional .query.QueryResult result = 1; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.QueryResult result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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:query.MessageStreamResponse) } // @@protoc_insertion_point(class_scope:query.MessageStreamResponse) private static final com.youtube.vitess.proto.Query.MessageStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.MessageStreamResponse(); } public static com.youtube.vitess.proto.Query.MessageStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageStreamResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageStreamResponse(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.Query.MessageStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageAckRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.MessageAckRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ java.lang.String getName(); /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .query.Value ids = 5; */ java.util.List getIdsList(); /** * repeated .query.Value ids = 5; */ com.youtube.vitess.proto.Query.Value getIds(int index); /** * repeated .query.Value ids = 5; */ int getIdsCount(); /** * repeated .query.Value ids = 5; */ java.util.List getIdsOrBuilderList(); /** * repeated .query.Value ids = 5; */ com.youtube.vitess.proto.Query.ValueOrBuilder getIdsOrBuilder( int index); } /** *
   * MessageAckRequest is the request payload for MessageAck.
   * 
* * Protobuf type {@code query.MessageAckRequest} */ public static final class MessageAckRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.MessageAckRequest) MessageAckRequestOrBuilder { // Use MessageAckRequest.newBuilder() to construct. private MessageAckRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageAckRequest() { 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } 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_ & 0x00000010) == 0x00000010)) { ids_ = java.util.Collections.unmodifiableList(ids_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageAckRequest.class, com.youtube.vitess.proto.Query.MessageAckRequest.Builder.class); } private int bitField0_; public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * name is the message table name.
     * 
* * optional string name = 4; */ 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 = 4; */ 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 = 5; private java.util.List ids_; /** * repeated .query.Value ids = 5; */ public java.util.List getIdsList() { return ids_; } /** * repeated .query.Value ids = 5; */ public java.util.List getIdsOrBuilderList() { return ids_; } /** * repeated .query.Value ids = 5; */ public int getIdsCount() { return ids_.size(); } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.Value getIds(int index) { return ids_.get(index); } /** * repeated .query.Value ids = 5; */ 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } for (int i = 0; i < ids_.size(); i++) { output.writeMessage(5, ids_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } for (int i = 0; i < ids_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, 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.Query.MessageAckRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.MessageAckRequest other = (com.youtube.vitess.proto.Query.MessageAckRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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.Query.MessageAckRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.MessageAckRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.MessageAckRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.MessageAckRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 query.MessageAckRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.MessageAckRequest) com.youtube.vitess.proto.Query.MessageAckRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageAckRequest.class, com.youtube.vitess.proto.Query.MessageAckRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } name_ = ""; if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { idsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckRequest_descriptor; } public com.youtube.vitess.proto.Query.MessageAckRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.MessageAckRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.MessageAckRequest build() { com.youtube.vitess.proto.Query.MessageAckRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.MessageAckRequest buildPartial() { com.youtube.vitess.proto.Query.MessageAckRequest result = new com.youtube.vitess.proto.Query.MessageAckRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.name_ = name_; if (idsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000010); } 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.Query.MessageAckRequest) { return mergeFrom((com.youtube.vitess.proto.Query.MessageAckRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.MessageAckRequest other) { if (other == com.youtube.vitess.proto.Query.MessageAckRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (idsBuilder_ == null) { if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } onChanged(); } } else { if (!other.ids_.isEmpty()) { if (idsBuilder_.isEmpty()) { idsBuilder_.dispose(); idsBuilder_ = null; ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000010); 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.Query.MessageAckRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.MessageAckRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object name_ = ""; /** *
       * name is the message table name.
       * 
* * optional string name = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the message table name.
       * 
* * optional string name = 4; */ 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_ & 0x00000010) == 0x00000010)) { ids_ = new java.util.ArrayList(ids_); bitField0_ |= 0x00000010; } } 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_; /** * repeated .query.Value ids = 5; */ public java.util.List getIdsList() { if (idsBuilder_ == null) { return java.util.Collections.unmodifiableList(ids_); } else { return idsBuilder_.getMessageList(); } } /** * repeated .query.Value ids = 5; */ public int getIdsCount() { if (idsBuilder_ == null) { return ids_.size(); } else { return idsBuilder_.getCount(); } } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.Value getIds(int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessage(index); } } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ 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; } /** * repeated .query.Value ids = 5; */ public Builder clearIds() { if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { idsBuilder_.clear(); } return this; } /** * repeated .query.Value ids = 5; */ public Builder removeIds(int index) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.remove(index); onChanged(); } else { idsBuilder_.remove(index); } return this; } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.Value.Builder getIdsBuilder( int index) { return getIdsFieldBuilder().getBuilder(index); } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.ValueOrBuilder getIdsOrBuilder( int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Value ids = 5; */ public java.util.List getIdsOrBuilderList() { if (idsBuilder_ != null) { return idsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ids_); } } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.Value.Builder addIdsBuilder() { return getIdsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** * repeated .query.Value ids = 5; */ public com.youtube.vitess.proto.Query.Value.Builder addIdsBuilder( int index) { return getIdsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Value.getDefaultInstance()); } /** * repeated .query.Value ids = 5; */ 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_ & 0x00000010) == 0x00000010), 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:query.MessageAckRequest) } // @@protoc_insertion_point(class_scope:query.MessageAckRequest) private static final com.youtube.vitess.proto.Query.MessageAckRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.MessageAckRequest(); } public static com.youtube.vitess.proto.Query.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.Query.MessageAckRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageAckResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.MessageAckResponse) com.google.protobuf.MessageOrBuilder { /** *
     * result contains the result of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the result.
     * 
* * optional .query.QueryResult result = 1; */ boolean hasResult(); /** *
     * result contains the result of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the result.
     * 
* * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResult getResult(); /** *
     * result contains the result of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the result.
     * 
* * optional .query.QueryResult result = 1; */ com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder(); } /** *
   * MessageAckResponse is the response for MessageAck.
   * 
* * Protobuf type {@code query.MessageAckResponse} */ public static final class MessageAckResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.MessageAckResponse) MessageAckResponseOrBuilder { // Use MessageAckResponse.newBuilder() to construct. private MessageAckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageAckResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MessageAckResponse( 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.Query.internal_static_query_MessageAckResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageAckResponse.class, com.youtube.vitess.proto.Query.MessageAckResponse.Builder.class); } public static final int RESULT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.QueryResult result_; /** *
     * result contains the result of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the result.
     * 
* * optional .query.QueryResult result = 1; */ public boolean hasResult() { return result_ != null; } /** *
     * result contains the result of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the 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 of the ack operation.
     * Since this acts like a DML, only
     * RowsAffected is returned in the 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.Query.MessageAckResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.MessageAckResponse other = (com.youtube.vitess.proto.Query.MessageAckResponse) 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.Query.MessageAckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.MessageAckResponse 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.Query.MessageAckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.MessageAckResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.MessageAckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageAckResponse 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.Query.MessageAckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageAckResponse 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.Query.MessageAckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.MessageAckResponse 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.Query.MessageAckResponse 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; } /** *
     * MessageAckResponse is the response for MessageAck.
     * 
* * Protobuf type {@code query.MessageAckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.MessageAckResponse) com.youtube.vitess.proto.Query.MessageAckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_MessageAckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.MessageAckResponse.class, com.youtube.vitess.proto.Query.MessageAckResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.MessageAckResponse.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.Query.internal_static_query_MessageAckResponse_descriptor; } public com.youtube.vitess.proto.Query.MessageAckResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.MessageAckResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.MessageAckResponse build() { com.youtube.vitess.proto.Query.MessageAckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.MessageAckResponse buildPartial() { com.youtube.vitess.proto.Query.MessageAckResponse result = new com.youtube.vitess.proto.Query.MessageAckResponse(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.Query.MessageAckResponse) { return mergeFrom((com.youtube.vitess.proto.Query.MessageAckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.MessageAckResponse other) { if (other == com.youtube.vitess.proto.Query.MessageAckResponse.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.Query.MessageAckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.MessageAckResponse) 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the result.
       * 
* * optional .query.QueryResult result = 1; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * result contains the result of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the result.
       * 
* * optional .query.QueryResult result = 1; */ public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * result contains the result of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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 of the ack operation.
       * Since this acts like a DML, only
       * RowsAffected is returned in the 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:query.MessageAckResponse) } // @@protoc_insertion_point(class_scope:query.MessageAckResponse) private static final com.youtube.vitess.proto.Query.MessageAckResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.MessageAckResponse(); } public static com.youtube.vitess.proto.Query.MessageAckResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageAckResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageAckResponse(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.Query.MessageAckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.SplitQueryRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** * optional .query.BoundQuery query = 4; */ boolean hasQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** * optional .query.BoundQuery query = 4; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** * repeated string split_column = 5; */ java.util.List getSplitColumnList(); /** * repeated string split_column = 5; */ int getSplitColumnCount(); /** * repeated string split_column = 5; */ java.lang.String getSplitColumn(int index); /** * repeated string split_column = 5; */ com.google.protobuf.ByteString getSplitColumnBytes(int index); /** *
     * Exactly one of the following must be nonzero.
     * 
* * optional int64 split_count = 6; */ long getSplitCount(); /** * optional int64 num_rows_per_query_part = 8; */ long getNumRowsPerQueryPart(); /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ int getAlgorithmValue(); /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm getAlgorithm(); } /** *
   * SplitQueryRequest is the payload for SplitQuery sent by VTGate to a VTTablet.
   * See vtgate.SplitQueryRequest for more details.
   * 
* * Protobuf type {@code query.SplitQueryRequest} */ public static final class SplitQueryRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.SplitQueryRequest) SplitQueryRequestOrBuilder { // Use SplitQueryRequest.newBuilder() to construct. private SplitQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitQueryRequest() { splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; splitCount_ = 0L; numRowsPerQueryPart_ = 0L; algorithm_ = 0; } @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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { 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 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { splitColumn_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } splitColumn_.add(s); break; } case 48: { splitCount_ = input.readInt64(); break; } case 64: { numRowsPerQueryPart_ = input.readInt64(); break; } case 72: { int rawValue = input.readEnum(); algorithm_ = rawValue; 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)) { splitColumn_ = splitColumn_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SplitQueryRequest.class, com.youtube.vitess.proto.Query.SplitQueryRequest.Builder.class); } /** * Protobuf enum {@code query.SplitQueryRequest.Algorithm} */ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { /** * EQUAL_SPLITS = 0; */ EQUAL_SPLITS(0), /** * FULL_SCAN = 1; */ FULL_SCAN(1), UNRECOGNIZED(-1), ; /** * EQUAL_SPLITS = 0; */ public static final int EQUAL_SPLITS_VALUE = 0; /** * FULL_SCAN = 1; */ public static final int FULL_SCAN_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Algorithm valueOf(int value) { return forNumber(value); } public static Algorithm forNumber(int value) { switch (value) { case 0: return EQUAL_SPLITS; case 1: return FULL_SCAN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Algorithm> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Algorithm findValueByNumber(int number) { return Algorithm.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.youtube.vitess.proto.Query.SplitQueryRequest.getDescriptor().getEnumTypes().get(0); } private static final Algorithm[] VALUES = values(); public static Algorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Algorithm(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:query.SplitQueryRequest.Algorithm) } private int bitField0_; public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int QUERY_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Query.BoundQuery query_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return query_ != null; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery getQuery() { return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int SPLIT_COLUMN_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList splitColumn_; /** * repeated string split_column = 5; */ public com.google.protobuf.ProtocolStringList getSplitColumnList() { return splitColumn_; } /** * repeated string split_column = 5; */ public int getSplitColumnCount() { return splitColumn_.size(); } /** * repeated string split_column = 5; */ public java.lang.String getSplitColumn(int index) { return splitColumn_.get(index); } /** * repeated string split_column = 5; */ public com.google.protobuf.ByteString getSplitColumnBytes(int index) { return splitColumn_.getByteString(index); } public static final int SPLIT_COUNT_FIELD_NUMBER = 6; private long splitCount_; /** *
     * Exactly one of the following must be nonzero.
     * 
* * optional int64 split_count = 6; */ public long getSplitCount() { return splitCount_; } public static final int NUM_ROWS_PER_QUERY_PART_FIELD_NUMBER = 8; private long numRowsPerQueryPart_; /** * optional int64 num_rows_per_query_part = 8; */ public long getNumRowsPerQueryPart() { return numRowsPerQueryPart_; } public static final int ALGORITHM_FIELD_NUMBER = 9; private int algorithm_; /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ public int getAlgorithmValue() { return algorithm_; } /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ 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; } 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (query_ != null) { output.writeMessage(4, getQuery()); } for (int i = 0; i < splitColumn_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, splitColumn_.getRaw(i)); } if (splitCount_ != 0L) { output.writeInt64(6, splitCount_); } if (numRowsPerQueryPart_ != 0L) { output.writeInt64(8, numRowsPerQueryPart_); } if (algorithm_ != com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.EQUAL_SPLITS.getNumber()) { output.writeEnum(9, algorithm_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, 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(6, splitCount_); } if (numRowsPerQueryPart_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, numRowsPerQueryPart_); } if (algorithm_ != com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm.EQUAL_SPLITS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, algorithm_); } 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.Query.SplitQueryRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.SplitQueryRequest other = (com.youtube.vitess.proto.Query.SplitQueryRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.SplitQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 for SplitQuery sent by VTGate to a VTTablet.
     * See vtgate.SplitQueryRequest for more details.
     * 
* * Protobuf type {@code query.SplitQueryRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.SplitQueryRequest) com.youtube.vitess.proto.Query.SplitQueryRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SplitQueryRequest.class, com.youtube.vitess.proto.Query.SplitQueryRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); splitCount_ = 0L; numRowsPerQueryPart_ = 0L; algorithm_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryRequest_descriptor; } public com.youtube.vitess.proto.Query.SplitQueryRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.SplitQueryRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.SplitQueryRequest build() { com.youtube.vitess.proto.Query.SplitQueryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.SplitQueryRequest buildPartial() { com.youtube.vitess.proto.Query.SplitQueryRequest result = new com.youtube.vitess.proto.Query.SplitQueryRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { splitColumn_ = splitColumn_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.splitColumn_ = splitColumn_; result.splitCount_ = splitCount_; result.numRowsPerQueryPart_ = numRowsPerQueryPart_; result.algorithm_ = algorithm_; 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.Query.SplitQueryRequest) { return mergeFrom((com.youtube.vitess.proto.Query.SplitQueryRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.SplitQueryRequest other) { if (other == com.youtube.vitess.proto.Query.SplitQueryRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (!other.splitColumn_.isEmpty()) { if (splitColumn_.isEmpty()) { splitColumn_ = other.splitColumn_; bitField0_ = (bitField0_ & ~0x00000010); } 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()); } 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.Query.SplitQueryRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.SplitQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 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_; /** * optional .query.BoundQuery query = 4; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** * optional .query.BoundQuery query = 4; */ 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(); } } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ 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; } /** * optional .query.BoundQuery query = 4; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** * optional .query.BoundQuery query = 4; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** * optional .query.BoundQuery query = 4; */ 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_; } } /** * optional .query.BoundQuery query = 4; */ 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_ & 0x00000010) == 0x00000010)) { splitColumn_ = new com.google.protobuf.LazyStringArrayList(splitColumn_); bitField0_ |= 0x00000010; } } /** * repeated string split_column = 5; */ public com.google.protobuf.ProtocolStringList getSplitColumnList() { return splitColumn_.getUnmodifiableView(); } /** * repeated string split_column = 5; */ public int getSplitColumnCount() { return splitColumn_.size(); } /** * repeated string split_column = 5; */ public java.lang.String getSplitColumn(int index) { return splitColumn_.get(index); } /** * repeated string split_column = 5; */ public com.google.protobuf.ByteString getSplitColumnBytes(int index) { return splitColumn_.getByteString(index); } /** * repeated string split_column = 5; */ public Builder setSplitColumn( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSplitColumnIsMutable(); splitColumn_.set(index, value); onChanged(); return this; } /** * repeated string split_column = 5; */ public Builder addSplitColumn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSplitColumnIsMutable(); splitColumn_.add(value); onChanged(); return this; } /** * repeated string split_column = 5; */ public Builder addAllSplitColumn( java.lang.Iterable values) { ensureSplitColumnIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, splitColumn_); onChanged(); return this; } /** * repeated string split_column = 5; */ public Builder clearSplitColumn() { splitColumn_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string split_column = 5; */ 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_ ; /** *
       * Exactly one of the following must be nonzero.
       * 
* * optional int64 split_count = 6; */ public long getSplitCount() { return splitCount_; } /** *
       * Exactly one of the following must be nonzero.
       * 
* * optional int64 split_count = 6; */ public Builder setSplitCount(long value) { splitCount_ = value; onChanged(); return this; } /** *
       * Exactly one of the following must be nonzero.
       * 
* * optional int64 split_count = 6; */ public Builder clearSplitCount() { splitCount_ = 0L; onChanged(); return this; } private long numRowsPerQueryPart_ ; /** * optional int64 num_rows_per_query_part = 8; */ public long getNumRowsPerQueryPart() { return numRowsPerQueryPart_; } /** * optional int64 num_rows_per_query_part = 8; */ public Builder setNumRowsPerQueryPart(long value) { numRowsPerQueryPart_ = value; onChanged(); return this; } /** * optional int64 num_rows_per_query_part = 8; */ public Builder clearNumRowsPerQueryPart() { numRowsPerQueryPart_ = 0L; onChanged(); return this; } private int algorithm_ = 0; /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ public int getAlgorithmValue() { return algorithm_; } /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ public Builder setAlgorithmValue(int value) { algorithm_ = value; onChanged(); return this; } /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ 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; } /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ public Builder setAlgorithm(com.youtube.vitess.proto.Query.SplitQueryRequest.Algorithm value) { if (value == null) { throw new NullPointerException(); } algorithm_ = value.getNumber(); onChanged(); return this; } /** * optional .query.SplitQueryRequest.Algorithm algorithm = 9; */ public Builder clearAlgorithm() { algorithm_ = 0; 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:query.SplitQueryRequest) } // @@protoc_insertion_point(class_scope:query.SplitQueryRequest) private static final com.youtube.vitess.proto.Query.SplitQueryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.SplitQueryRequest(); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QuerySplitOrBuilder extends // @@protoc_insertion_point(interface_extends:query.QuerySplit) com.google.protobuf.MessageOrBuilder { /** *
     * query is the query to execute
     * 
* * optional .query.BoundQuery query = 1; */ boolean hasQuery(); /** *
     * query is the query to execute
     * 
* * optional .query.BoundQuery query = 1; */ com.youtube.vitess.proto.Query.BoundQuery getQuery(); /** *
     * query is the query to execute
     * 
* * optional .query.BoundQuery query = 1; */ com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder(); /** *
     * row_count is the approximate row count the query will return
     * 
* * optional int64 row_count = 2; */ long getRowCount(); } /** *
   * QuerySplit represents one query to execute on the tablet
   * 
* * Protobuf type {@code query.QuerySplit} */ public static final class QuerySplit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.QuerySplit) QuerySplitOrBuilder { // Use QuerySplit.newBuilder() to construct. private QuerySplit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QuerySplit() { rowCount_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private QuerySplit( 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 16: { rowCount_ = 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.Query.internal_static_query_QuerySplit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_QuerySplit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.QuerySplit.class, com.youtube.vitess.proto.Query.QuerySplit.Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.BoundQuery query_; /** *
     * query is the query to execute
     * 
* * optional .query.BoundQuery query = 1; */ public boolean hasQuery() { return query_ != null; } /** *
     * query is the query 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 to execute
     * 
* * optional .query.BoundQuery query = 1; */ public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_; /** *
     * row_count is the approximate row count the query will return
     * 
* * optional int64 row_count = 2; */ public long getRowCount() { return rowCount_; } 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 (rowCount_ != 0L) { output.writeInt64(2, rowCount_); } } 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 (rowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, rowCount_); } 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.Query.QuerySplit)) { return super.equals(obj); } com.youtube.vitess.proto.Query.QuerySplit other = (com.youtube.vitess.proto.Query.QuerySplit) obj; boolean result = true; result = result && (hasQuery() == other.hasQuery()); if (hasQuery()) { result = result && getQuery() .equals(other.getQuery()); } result = result && (getRowCount() == other.getRowCount()); 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) + ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRowCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.QuerySplit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.QuerySplit 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.Query.QuerySplit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.QuerySplit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.QuerySplit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QuerySplit 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.Query.QuerySplit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QuerySplit 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.Query.QuerySplit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.QuerySplit 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.Query.QuerySplit 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; } /** *
     * QuerySplit represents one query to execute on the tablet
     * 
* * Protobuf type {@code query.QuerySplit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.QuerySplit) com.youtube.vitess.proto.Query.QuerySplitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_QuerySplit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_QuerySplit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.QuerySplit.class, com.youtube.vitess.proto.Query.QuerySplit.Builder.class); } // Construct using com.youtube.vitess.proto.Query.QuerySplit.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; } rowCount_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_QuerySplit_descriptor; } public com.youtube.vitess.proto.Query.QuerySplit getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.QuerySplit.getDefaultInstance(); } public com.youtube.vitess.proto.Query.QuerySplit build() { com.youtube.vitess.proto.Query.QuerySplit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.QuerySplit buildPartial() { com.youtube.vitess.proto.Query.QuerySplit result = new com.youtube.vitess.proto.Query.QuerySplit(this); if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } result.rowCount_ = rowCount_; 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.Query.QuerySplit) { return mergeFrom((com.youtube.vitess.proto.Query.QuerySplit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.QuerySplit other) { if (other == com.youtube.vitess.proto.Query.QuerySplit.getDefaultInstance()) return this; if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (other.getRowCount() != 0L) { setRowCount(other.getRowCount()); } 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.Query.QuerySplit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.QuerySplit) 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 to execute
       * 
* * optional .query.BoundQuery query = 1; */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** *
       * query is the query 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 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 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 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 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 to execute
       * 
* * optional .query.BoundQuery query = 1; */ public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** *
       * query is the query 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 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 long rowCount_ ; /** *
       * row_count is the approximate row count the query will return
       * 
* * optional int64 row_count = 2; */ public long getRowCount() { return rowCount_; } /** *
       * row_count is the approximate row count the query will return
       * 
* * optional int64 row_count = 2; */ public Builder setRowCount(long value) { rowCount_ = value; onChanged(); return this; } /** *
       * row_count is the approximate row count the query will return
       * 
* * optional int64 row_count = 2; */ public Builder clearRowCount() { rowCount_ = 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:query.QuerySplit) } // @@protoc_insertion_point(class_scope:query.QuerySplit) private static final com.youtube.vitess.proto.Query.QuerySplit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.QuerySplit(); } public static com.youtube.vitess.proto.Query.QuerySplit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public QuerySplit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QuerySplit(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.Query.QuerySplit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitQueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.SplitQueryResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .query.QuerySplit queries = 1; */ java.util.List getQueriesList(); /** * repeated .query.QuerySplit queries = 1; */ com.youtube.vitess.proto.Query.QuerySplit getQueries(int index); /** * repeated .query.QuerySplit queries = 1; */ int getQueriesCount(); /** * repeated .query.QuerySplit queries = 1; */ java.util.List getQueriesOrBuilderList(); /** * repeated .query.QuerySplit queries = 1; */ com.youtube.vitess.proto.Query.QuerySplitOrBuilder getQueriesOrBuilder( int index); } /** *
   * SplitQueryResponse is returned by SplitQuery and represents all the queries
   * to execute in order to get the entire data set.
   * 
* * Protobuf type {@code query.SplitQueryResponse} */ public static final class SplitQueryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.SplitQueryResponse) SplitQueryResponseOrBuilder { // Use SplitQueryResponse.newBuilder() to construct. private SplitQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitQueryResponse() { queries_ = 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)) { queries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } queries_.add( input.readMessage(com.youtube.vitess.proto.Query.QuerySplit.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)) { queries_ = java.util.Collections.unmodifiableList(queries_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SplitQueryResponse.class, com.youtube.vitess.proto.Query.SplitQueryResponse.Builder.class); } public static final int QUERIES_FIELD_NUMBER = 1; private java.util.List queries_; /** * repeated .query.QuerySplit queries = 1; */ public java.util.List getQueriesList() { return queries_; } /** * repeated .query.QuerySplit queries = 1; */ public java.util.List getQueriesOrBuilderList() { return queries_; } /** * repeated .query.QuerySplit queries = 1; */ public int getQueriesCount() { return queries_.size(); } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplit getQueries(int index) { return queries_.get(index); } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplitOrBuilder getQueriesOrBuilder( int index) { return queries_.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 < queries_.size(); i++) { output.writeMessage(1, queries_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < queries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, queries_.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.Query.SplitQueryResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.SplitQueryResponse other = (com.youtube.vitess.proto.Query.SplitQueryResponse) obj; boolean result = true; result = result && getQueriesList() .equals(other.getQueriesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getQueriesCount() > 0) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + getQueriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.SplitQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 returned by SplitQuery and represents all the queries
     * to execute in order to get the entire data set.
     * 
* * Protobuf type {@code query.SplitQueryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.SplitQueryResponse) com.youtube.vitess.proto.Query.SplitQueryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.SplitQueryResponse.class, com.youtube.vitess.proto.Query.SplitQueryResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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) { getQueriesFieldBuilder(); } } public Builder clear() { super.clear(); if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { queriesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_SplitQueryResponse_descriptor; } public com.youtube.vitess.proto.Query.SplitQueryResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.SplitQueryResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.SplitQueryResponse build() { com.youtube.vitess.proto.Query.SplitQueryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.SplitQueryResponse buildPartial() { com.youtube.vitess.proto.Query.SplitQueryResponse result = new com.youtube.vitess.proto.Query.SplitQueryResponse(this); int from_bitField0_ = bitField0_; if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000001); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.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.Query.SplitQueryResponse) { return mergeFrom((com.youtube.vitess.proto.Query.SplitQueryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.SplitQueryResponse other) { if (other == com.youtube.vitess.proto.Query.SplitQueryResponse.getDefaultInstance()) return this; if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000001); queriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueriesFieldBuilder() : null; } else { queriesBuilder_.addAllMessages(other.queries_); } } } 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.Query.SplitQueryResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.SplitQueryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.QuerySplit, com.youtube.vitess.proto.Query.QuerySplit.Builder, com.youtube.vitess.proto.Query.QuerySplitOrBuilder> queriesBuilder_; /** * repeated .query.QuerySplit queries = 1; */ public java.util.List getQueriesList() { if (queriesBuilder_ == null) { return java.util.Collections.unmodifiableList(queries_); } else { return queriesBuilder_.getMessageList(); } } /** * repeated .query.QuerySplit queries = 1; */ public int getQueriesCount() { if (queriesBuilder_ == null) { return queries_.size(); } else { return queriesBuilder_.getCount(); } } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplit getQueries(int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessage(index); } } /** * repeated .query.QuerySplit queries = 1; */ public Builder setQueries( int index, com.youtube.vitess.proto.Query.QuerySplit value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.set(index, value); onChanged(); } else { queriesBuilder_.setMessage(index, value); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder setQueries( int index, com.youtube.vitess.proto.Query.QuerySplit.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.set(index, builderForValue.build()); onChanged(); } else { queriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder addQueries(com.youtube.vitess.proto.Query.QuerySplit value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.add(value); onChanged(); } else { queriesBuilder_.addMessage(value); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder addQueries( int index, com.youtube.vitess.proto.Query.QuerySplit value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.add(index, value); onChanged(); } else { queriesBuilder_.addMessage(index, value); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder addQueries( com.youtube.vitess.proto.Query.QuerySplit.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.add(builderForValue.build()); onChanged(); } else { queriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder addQueries( int index, com.youtube.vitess.proto.Query.QuerySplit.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.add(index, builderForValue.build()); onChanged(); } else { queriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.QuerySplit queries = 1; */ 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 .query.QuerySplit queries = 1; */ public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { queriesBuilder_.clear(); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public Builder removeQueries(int index) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.remove(index); onChanged(); } else { queriesBuilder_.remove(index); } return this; } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplit.Builder getQueriesBuilder( int index) { return getQueriesFieldBuilder().getBuilder(index); } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplitOrBuilder getQueriesOrBuilder( int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.QuerySplit queries = 1; */ public java.util.List getQueriesOrBuilderList() { if (queriesBuilder_ != null) { return queriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queries_); } } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplit.Builder addQueriesBuilder() { return getQueriesFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.QuerySplit.getDefaultInstance()); } /** * repeated .query.QuerySplit queries = 1; */ public com.youtube.vitess.proto.Query.QuerySplit.Builder addQueriesBuilder( int index) { return getQueriesFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.QuerySplit.getDefaultInstance()); } /** * repeated .query.QuerySplit queries = 1; */ public java.util.List getQueriesBuilderList() { return getQueriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.QuerySplit, com.youtube.vitess.proto.Query.QuerySplit.Builder, com.youtube.vitess.proto.Query.QuerySplitOrBuilder> getQueriesFieldBuilder() { if (queriesBuilder_ == null) { queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.QuerySplit, com.youtube.vitess.proto.Query.QuerySplit.Builder, com.youtube.vitess.proto.Query.QuerySplitOrBuilder>( queries_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } 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:query.SplitQueryResponse) } // @@protoc_insertion_point(class_scope:query.SplitQueryResponse) private static final com.youtube.vitess.proto.Query.SplitQueryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.SplitQueryResponse(); } public static com.youtube.vitess.proto.Query.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.Query.SplitQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamHealthRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamHealthRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * StreamHealthRequest is the payload for StreamHealth
   * 
* * Protobuf type {@code query.StreamHealthRequest} */ public static final class StreamHealthRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StreamHealthRequest) StreamHealthRequestOrBuilder { // Use StreamHealthRequest.newBuilder() to construct. private StreamHealthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamHealthRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StreamHealthRequest( 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.Query.internal_static_query_StreamHealthRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamHealthRequest.class, com.youtube.vitess.proto.Query.StreamHealthRequest.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.Query.StreamHealthRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamHealthRequest other = (com.youtube.vitess.proto.Query.StreamHealthRequest) 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.Query.StreamHealthRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamHealthRequest 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.Query.StreamHealthRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamHealthRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StreamHealthRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthRequest 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.Query.StreamHealthRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthRequest 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.Query.StreamHealthRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthRequest 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.Query.StreamHealthRequest 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; } /** *
     * StreamHealthRequest is the payload for StreamHealth
     * 
* * Protobuf type {@code query.StreamHealthRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamHealthRequest) com.youtube.vitess.proto.Query.StreamHealthRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamHealthRequest.class, com.youtube.vitess.proto.Query.StreamHealthRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StreamHealthRequest.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.Query.internal_static_query_StreamHealthRequest_descriptor; } public com.youtube.vitess.proto.Query.StreamHealthRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamHealthRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamHealthRequest build() { com.youtube.vitess.proto.Query.StreamHealthRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamHealthRequest buildPartial() { com.youtube.vitess.proto.Query.StreamHealthRequest result = new com.youtube.vitess.proto.Query.StreamHealthRequest(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.Query.StreamHealthRequest) { return mergeFrom((com.youtube.vitess.proto.Query.StreamHealthRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamHealthRequest other) { if (other == com.youtube.vitess.proto.Query.StreamHealthRequest.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.Query.StreamHealthRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StreamHealthRequest) 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:query.StreamHealthRequest) } // @@protoc_insertion_point(class_scope:query.StreamHealthRequest) private static final com.youtube.vitess.proto.Query.StreamHealthRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamHealthRequest(); } public static com.youtube.vitess.proto.Query.StreamHealthRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreamHealthRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamHealthRequest(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.Query.StreamHealthRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RealtimeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:query.RealtimeStats) com.google.protobuf.MessageOrBuilder { /** *
     * health_error is the last error we got from health check,
     * or empty is the server is healthy. This is used for subset selection,
     * we do not send queries to servers that are not healthy.
     * 
* * optional string health_error = 1; */ java.lang.String getHealthError(); /** *
     * health_error is the last error we got from health check,
     * or empty is the server is healthy. This is used for subset selection,
     * we do not send queries to servers that are not healthy.
     * 
* * optional string health_error = 1; */ com.google.protobuf.ByteString getHealthErrorBytes(); /** *
     * seconds_behind_master is populated for slaves only. It indicates
     * how far behind on (MySQL) replication a slave currently is.  It is used
     * by clients for subset selection (so we don't try to send traffic
     * to tablets that are too far behind).
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * TODO(mberlin): Let's switch it to int64 instead?
     * 
* * optional uint32 seconds_behind_master = 2; */ int getSecondsBehindMaster(); /** *
     * bin_log_players_count is the number of currently running binlog players.
     * if the value is 0, it means that filtered replication is currently not
     * running on the tablet. If >0, filtered replication is running.
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * 
* * optional int32 binlog_players_count = 3; */ int getBinlogPlayersCount(); /** *
     * seconds_behind_master_filtered_replication is populated for the receiving
     * master of an ongoing filtered replication only.
     * It specifies how far the receiving master lags behind the sending master.
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
     * 
* * optional int64 seconds_behind_master_filtered_replication = 4; */ long getSecondsBehindMasterFilteredReplication(); /** *
     * cpu_usage is used for load-based balancing
     * 
* * optional double cpu_usage = 5; */ double getCpuUsage(); /** *
     * qps is the average QPS (queries per second) rate in the last XX seconds
     * where XX is usually 60 (See query_service_stats.go).
     * 
* * optional double qps = 6; */ double getQps(); } /** *
   * RealtimeStats contains information about the tablet status
   * 
* * Protobuf type {@code query.RealtimeStats} */ public static final class RealtimeStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.RealtimeStats) RealtimeStatsOrBuilder { // Use RealtimeStats.newBuilder() to construct. private RealtimeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RealtimeStats() { healthError_ = ""; secondsBehindMaster_ = 0; binlogPlayersCount_ = 0; secondsBehindMasterFilteredReplication_ = 0L; cpuUsage_ = 0D; qps_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RealtimeStats( 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(); healthError_ = s; break; } case 16: { secondsBehindMaster_ = input.readUInt32(); break; } case 24: { binlogPlayersCount_ = input.readInt32(); break; } case 32: { secondsBehindMasterFilteredReplication_ = input.readInt64(); break; } case 41: { cpuUsage_ = input.readDouble(); break; } case 49: { qps_ = input.readDouble(); 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.Query.internal_static_query_RealtimeStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RealtimeStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RealtimeStats.class, com.youtube.vitess.proto.Query.RealtimeStats.Builder.class); } public static final int HEALTH_ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object healthError_; /** *
     * health_error is the last error we got from health check,
     * or empty is the server is healthy. This is used for subset selection,
     * we do not send queries to servers that are not healthy.
     * 
* * optional string health_error = 1; */ public java.lang.String getHealthError() { java.lang.Object ref = healthError_; 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(); healthError_ = s; return s; } } /** *
     * health_error is the last error we got from health check,
     * or empty is the server is healthy. This is used for subset selection,
     * we do not send queries to servers that are not healthy.
     * 
* * optional string health_error = 1; */ public com.google.protobuf.ByteString getHealthErrorBytes() { java.lang.Object ref = healthError_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthError_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECONDS_BEHIND_MASTER_FIELD_NUMBER = 2; private int secondsBehindMaster_; /** *
     * seconds_behind_master is populated for slaves only. It indicates
     * how far behind on (MySQL) replication a slave currently is.  It is used
     * by clients for subset selection (so we don't try to send traffic
     * to tablets that are too far behind).
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * TODO(mberlin): Let's switch it to int64 instead?
     * 
* * optional uint32 seconds_behind_master = 2; */ public int getSecondsBehindMaster() { return secondsBehindMaster_; } public static final int BINLOG_PLAYERS_COUNT_FIELD_NUMBER = 3; private int binlogPlayersCount_; /** *
     * bin_log_players_count is the number of currently running binlog players.
     * if the value is 0, it means that filtered replication is currently not
     * running on the tablet. If >0, filtered replication is running.
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * 
* * optional int32 binlog_players_count = 3; */ public int getBinlogPlayersCount() { return binlogPlayersCount_; } public static final int SECONDS_BEHIND_MASTER_FILTERED_REPLICATION_FIELD_NUMBER = 4; private long secondsBehindMasterFilteredReplication_; /** *
     * seconds_behind_master_filtered_replication is populated for the receiving
     * master of an ongoing filtered replication only.
     * It specifies how far the receiving master lags behind the sending master.
     * NOTE: This field must not be evaluated if "health_error" is not empty.
     * NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
     * 
* * optional int64 seconds_behind_master_filtered_replication = 4; */ public long getSecondsBehindMasterFilteredReplication() { return secondsBehindMasterFilteredReplication_; } public static final int CPU_USAGE_FIELD_NUMBER = 5; private double cpuUsage_; /** *
     * cpu_usage is used for load-based balancing
     * 
* * optional double cpu_usage = 5; */ public double getCpuUsage() { return cpuUsage_; } public static final int QPS_FIELD_NUMBER = 6; private double qps_; /** *
     * qps is the average QPS (queries per second) rate in the last XX seconds
     * where XX is usually 60 (See query_service_stats.go).
     * 
* * optional double qps = 6; */ public double getQps() { return qps_; } 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 (!getHealthErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, healthError_); } if (secondsBehindMaster_ != 0) { output.writeUInt32(2, secondsBehindMaster_); } if (binlogPlayersCount_ != 0) { output.writeInt32(3, binlogPlayersCount_); } if (secondsBehindMasterFilteredReplication_ != 0L) { output.writeInt64(4, secondsBehindMasterFilteredReplication_); } if (cpuUsage_ != 0D) { output.writeDouble(5, cpuUsage_); } if (qps_ != 0D) { output.writeDouble(6, qps_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getHealthErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, healthError_); } if (secondsBehindMaster_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, secondsBehindMaster_); } if (binlogPlayersCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, binlogPlayersCount_); } if (secondsBehindMasterFilteredReplication_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, secondsBehindMasterFilteredReplication_); } if (cpuUsage_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, cpuUsage_); } if (qps_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, qps_); } 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.Query.RealtimeStats)) { return super.equals(obj); } com.youtube.vitess.proto.Query.RealtimeStats other = (com.youtube.vitess.proto.Query.RealtimeStats) obj; boolean result = true; result = result && getHealthError() .equals(other.getHealthError()); result = result && (getSecondsBehindMaster() == other.getSecondsBehindMaster()); result = result && (getBinlogPlayersCount() == other.getBinlogPlayersCount()); result = result && (getSecondsBehindMasterFilteredReplication() == other.getSecondsBehindMasterFilteredReplication()); result = result && ( java.lang.Double.doubleToLongBits(getCpuUsage()) == java.lang.Double.doubleToLongBits( other.getCpuUsage())); result = result && ( java.lang.Double.doubleToLongBits(getQps()) == java.lang.Double.doubleToLongBits( other.getQps())); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + HEALTH_ERROR_FIELD_NUMBER; hash = (53 * hash) + getHealthError().hashCode(); hash = (37 * hash) + SECONDS_BEHIND_MASTER_FIELD_NUMBER; hash = (53 * hash) + getSecondsBehindMaster(); hash = (37 * hash) + BINLOG_PLAYERS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getBinlogPlayersCount(); hash = (37 * hash) + SECONDS_BEHIND_MASTER_FILTERED_REPLICATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSecondsBehindMasterFilteredReplication()); hash = (37 * hash) + CPU_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpuUsage())); hash = (37 * hash) + QPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getQps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.RealtimeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RealtimeStats 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.Query.RealtimeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.RealtimeStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.RealtimeStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RealtimeStats 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.Query.RealtimeStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RealtimeStats 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.Query.RealtimeStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.RealtimeStats 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.Query.RealtimeStats 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; } /** *
     * RealtimeStats contains information about the tablet status
     * 
* * Protobuf type {@code query.RealtimeStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.RealtimeStats) com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_RealtimeStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_RealtimeStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.RealtimeStats.class, com.youtube.vitess.proto.Query.RealtimeStats.Builder.class); } // Construct using com.youtube.vitess.proto.Query.RealtimeStats.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(); healthError_ = ""; secondsBehindMaster_ = 0; binlogPlayersCount_ = 0; secondsBehindMasterFilteredReplication_ = 0L; cpuUsage_ = 0D; qps_ = 0D; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_RealtimeStats_descriptor; } public com.youtube.vitess.proto.Query.RealtimeStats getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.RealtimeStats.getDefaultInstance(); } public com.youtube.vitess.proto.Query.RealtimeStats build() { com.youtube.vitess.proto.Query.RealtimeStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.RealtimeStats buildPartial() { com.youtube.vitess.proto.Query.RealtimeStats result = new com.youtube.vitess.proto.Query.RealtimeStats(this); result.healthError_ = healthError_; result.secondsBehindMaster_ = secondsBehindMaster_; result.binlogPlayersCount_ = binlogPlayersCount_; result.secondsBehindMasterFilteredReplication_ = secondsBehindMasterFilteredReplication_; result.cpuUsage_ = cpuUsage_; result.qps_ = qps_; 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.Query.RealtimeStats) { return mergeFrom((com.youtube.vitess.proto.Query.RealtimeStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.RealtimeStats other) { if (other == com.youtube.vitess.proto.Query.RealtimeStats.getDefaultInstance()) return this; if (!other.getHealthError().isEmpty()) { healthError_ = other.healthError_; onChanged(); } if (other.getSecondsBehindMaster() != 0) { setSecondsBehindMaster(other.getSecondsBehindMaster()); } if (other.getBinlogPlayersCount() != 0) { setBinlogPlayersCount(other.getBinlogPlayersCount()); } if (other.getSecondsBehindMasterFilteredReplication() != 0L) { setSecondsBehindMasterFilteredReplication(other.getSecondsBehindMasterFilteredReplication()); } if (other.getCpuUsage() != 0D) { setCpuUsage(other.getCpuUsage()); } if (other.getQps() != 0D) { setQps(other.getQps()); } 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.Query.RealtimeStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.RealtimeStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object healthError_ = ""; /** *
       * health_error is the last error we got from health check,
       * or empty is the server is healthy. This is used for subset selection,
       * we do not send queries to servers that are not healthy.
       * 
* * optional string health_error = 1; */ public java.lang.String getHealthError() { java.lang.Object ref = healthError_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthError_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * health_error is the last error we got from health check,
       * or empty is the server is healthy. This is used for subset selection,
       * we do not send queries to servers that are not healthy.
       * 
* * optional string health_error = 1; */ public com.google.protobuf.ByteString getHealthErrorBytes() { java.lang.Object ref = healthError_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthError_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * health_error is the last error we got from health check,
       * or empty is the server is healthy. This is used for subset selection,
       * we do not send queries to servers that are not healthy.
       * 
* * optional string health_error = 1; */ public Builder setHealthError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } healthError_ = value; onChanged(); return this; } /** *
       * health_error is the last error we got from health check,
       * or empty is the server is healthy. This is used for subset selection,
       * we do not send queries to servers that are not healthy.
       * 
* * optional string health_error = 1; */ public Builder clearHealthError() { healthError_ = getDefaultInstance().getHealthError(); onChanged(); return this; } /** *
       * health_error is the last error we got from health check,
       * or empty is the server is healthy. This is used for subset selection,
       * we do not send queries to servers that are not healthy.
       * 
* * optional string health_error = 1; */ public Builder setHealthErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); healthError_ = value; onChanged(); return this; } private int secondsBehindMaster_ ; /** *
       * seconds_behind_master is populated for slaves only. It indicates
       * how far behind on (MySQL) replication a slave currently is.  It is used
       * by clients for subset selection (so we don't try to send traffic
       * to tablets that are too far behind).
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * TODO(mberlin): Let's switch it to int64 instead?
       * 
* * optional uint32 seconds_behind_master = 2; */ public int getSecondsBehindMaster() { return secondsBehindMaster_; } /** *
       * seconds_behind_master is populated for slaves only. It indicates
       * how far behind on (MySQL) replication a slave currently is.  It is used
       * by clients for subset selection (so we don't try to send traffic
       * to tablets that are too far behind).
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * TODO(mberlin): Let's switch it to int64 instead?
       * 
* * optional uint32 seconds_behind_master = 2; */ public Builder setSecondsBehindMaster(int value) { secondsBehindMaster_ = value; onChanged(); return this; } /** *
       * seconds_behind_master is populated for slaves only. It indicates
       * how far behind on (MySQL) replication a slave currently is.  It is used
       * by clients for subset selection (so we don't try to send traffic
       * to tablets that are too far behind).
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * TODO(mberlin): Let's switch it to int64 instead?
       * 
* * optional uint32 seconds_behind_master = 2; */ public Builder clearSecondsBehindMaster() { secondsBehindMaster_ = 0; onChanged(); return this; } private int binlogPlayersCount_ ; /** *
       * bin_log_players_count is the number of currently running binlog players.
       * if the value is 0, it means that filtered replication is currently not
       * running on the tablet. If >0, filtered replication is running.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * 
* * optional int32 binlog_players_count = 3; */ public int getBinlogPlayersCount() { return binlogPlayersCount_; } /** *
       * bin_log_players_count is the number of currently running binlog players.
       * if the value is 0, it means that filtered replication is currently not
       * running on the tablet. If >0, filtered replication is running.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * 
* * optional int32 binlog_players_count = 3; */ public Builder setBinlogPlayersCount(int value) { binlogPlayersCount_ = value; onChanged(); return this; } /** *
       * bin_log_players_count is the number of currently running binlog players.
       * if the value is 0, it means that filtered replication is currently not
       * running on the tablet. If >0, filtered replication is running.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * 
* * optional int32 binlog_players_count = 3; */ public Builder clearBinlogPlayersCount() { binlogPlayersCount_ = 0; onChanged(); return this; } private long secondsBehindMasterFilteredReplication_ ; /** *
       * seconds_behind_master_filtered_replication is populated for the receiving
       * master of an ongoing filtered replication only.
       * It specifies how far the receiving master lags behind the sending master.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
       * 
* * optional int64 seconds_behind_master_filtered_replication = 4; */ public long getSecondsBehindMasterFilteredReplication() { return secondsBehindMasterFilteredReplication_; } /** *
       * seconds_behind_master_filtered_replication is populated for the receiving
       * master of an ongoing filtered replication only.
       * It specifies how far the receiving master lags behind the sending master.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
       * 
* * optional int64 seconds_behind_master_filtered_replication = 4; */ public Builder setSecondsBehindMasterFilteredReplication(long value) { secondsBehindMasterFilteredReplication_ = value; onChanged(); return this; } /** *
       * seconds_behind_master_filtered_replication is populated for the receiving
       * master of an ongoing filtered replication only.
       * It specifies how far the receiving master lags behind the sending master.
       * NOTE: This field must not be evaluated if "health_error" is not empty.
       * NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
       * 
* * optional int64 seconds_behind_master_filtered_replication = 4; */ public Builder clearSecondsBehindMasterFilteredReplication() { secondsBehindMasterFilteredReplication_ = 0L; onChanged(); return this; } private double cpuUsage_ ; /** *
       * cpu_usage is used for load-based balancing
       * 
* * optional double cpu_usage = 5; */ public double getCpuUsage() { return cpuUsage_; } /** *
       * cpu_usage is used for load-based balancing
       * 
* * optional double cpu_usage = 5; */ public Builder setCpuUsage(double value) { cpuUsage_ = value; onChanged(); return this; } /** *
       * cpu_usage is used for load-based balancing
       * 
* * optional double cpu_usage = 5; */ public Builder clearCpuUsage() { cpuUsage_ = 0D; onChanged(); return this; } private double qps_ ; /** *
       * qps is the average QPS (queries per second) rate in the last XX seconds
       * where XX is usually 60 (See query_service_stats.go).
       * 
* * optional double qps = 6; */ public double getQps() { return qps_; } /** *
       * qps is the average QPS (queries per second) rate in the last XX seconds
       * where XX is usually 60 (See query_service_stats.go).
       * 
* * optional double qps = 6; */ public Builder setQps(double value) { qps_ = value; onChanged(); return this; } /** *
       * qps is the average QPS (queries per second) rate in the last XX seconds
       * where XX is usually 60 (See query_service_stats.go).
       * 
* * optional double qps = 6; */ public Builder clearQps() { qps_ = 0D; 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:query.RealtimeStats) } // @@protoc_insertion_point(class_scope:query.RealtimeStats) private static final com.youtube.vitess.proto.Query.RealtimeStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.RealtimeStats(); } public static com.youtube.vitess.proto.Query.RealtimeStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RealtimeStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RealtimeStats(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.Query.RealtimeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamHealthResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.StreamHealthResponse) com.google.protobuf.MessageOrBuilder { /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ boolean hasTarget(); /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ com.youtube.vitess.proto.Query.Target getTarget(); /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** *
     * serving is true iff the tablet is serving. A tablet may not be serving
     * if filtered replication is enabled on a master for instance,
     * or if a replica should not be used because the keyspace is being resharded.
     * 
* * optional bool serving = 2; */ boolean getServing(); /** *
     * tablet_externally_reparented_timestamp contains the last time
     * tabletmanager.TabletExternallyReparented was called on this tablet,
     * or 0 if it was never called. This is meant to differentiate two tablets
     * that report a target.TabletType of MASTER, only the one with the latest
     * timestamp should be trusted.
     * 
* * optional int64 tablet_externally_reparented_timestamp = 3; */ long getTabletExternallyReparentedTimestamp(); /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ boolean hasRealtimeStats(); /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ com.youtube.vitess.proto.Query.RealtimeStats getRealtimeStats(); /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder getRealtimeStatsOrBuilder(); } /** *
   * StreamHealthResponse is streamed by StreamHealth on a regular basis
   * 
* * Protobuf type {@code query.StreamHealthResponse} */ public static final class StreamHealthResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.StreamHealthResponse) StreamHealthResponseOrBuilder { // Use StreamHealthResponse.newBuilder() to construct. private StreamHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamHealthResponse() { serving_ = false; tabletExternallyReparentedTimestamp_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StreamHealthResponse( 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: { serving_ = input.readBool(); break; } case 24: { tabletExternallyReparentedTimestamp_ = input.readInt64(); break; } case 34: { com.youtube.vitess.proto.Query.RealtimeStats.Builder subBuilder = null; if (realtimeStats_ != null) { subBuilder = realtimeStats_.toBuilder(); } realtimeStats_ = input.readMessage(com.youtube.vitess.proto.Query.RealtimeStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(realtimeStats_); realtimeStats_ = 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.Query.internal_static_query_StreamHealthResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamHealthResponse.class, com.youtube.vitess.proto.Query.StreamHealthResponse.Builder.class); } public static final int TARGET_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.Target target_; /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ public boolean hasTarget() { return target_ != null; } /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** *
     * target is the current server type. Only queries with that exact Target
     * record will be accepted.
     * 
* * optional .query.Target target = 1; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int SERVING_FIELD_NUMBER = 2; private boolean serving_; /** *
     * serving is true iff the tablet is serving. A tablet may not be serving
     * if filtered replication is enabled on a master for instance,
     * or if a replica should not be used because the keyspace is being resharded.
     * 
* * optional bool serving = 2; */ public boolean getServing() { return serving_; } public static final int TABLET_EXTERNALLY_REPARENTED_TIMESTAMP_FIELD_NUMBER = 3; private long tabletExternallyReparentedTimestamp_; /** *
     * tablet_externally_reparented_timestamp contains the last time
     * tabletmanager.TabletExternallyReparented was called on this tablet,
     * or 0 if it was never called. This is meant to differentiate two tablets
     * that report a target.TabletType of MASTER, only the one with the latest
     * timestamp should be trusted.
     * 
* * optional int64 tablet_externally_reparented_timestamp = 3; */ public long getTabletExternallyReparentedTimestamp() { return tabletExternallyReparentedTimestamp_; } public static final int REALTIME_STATS_FIELD_NUMBER = 4; private com.youtube.vitess.proto.Query.RealtimeStats realtimeStats_; /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public boolean hasRealtimeStats() { return realtimeStats_ != null; } /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public com.youtube.vitess.proto.Query.RealtimeStats getRealtimeStats() { return realtimeStats_ == null ? com.youtube.vitess.proto.Query.RealtimeStats.getDefaultInstance() : realtimeStats_; } /** *
     * realtime_stats contains information about the tablet status
     * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder getRealtimeStatsOrBuilder() { return getRealtimeStats(); } 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 (serving_ != false) { output.writeBool(2, serving_); } if (tabletExternallyReparentedTimestamp_ != 0L) { output.writeInt64(3, tabletExternallyReparentedTimestamp_); } if (realtimeStats_ != null) { output.writeMessage(4, getRealtimeStats()); } } 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 (serving_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, serving_); } if (tabletExternallyReparentedTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tabletExternallyReparentedTimestamp_); } if (realtimeStats_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRealtimeStats()); } 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.Query.StreamHealthResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.StreamHealthResponse other = (com.youtube.vitess.proto.Query.StreamHealthResponse) obj; boolean result = true; result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getServing() == other.getServing()); result = result && (getTabletExternallyReparentedTimestamp() == other.getTabletExternallyReparentedTimestamp()); result = result && (hasRealtimeStats() == other.hasRealtimeStats()); if (hasRealtimeStats()) { result = result && getRealtimeStats() .equals(other.getRealtimeStats()); } 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) + SERVING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getServing()); hash = (37 * hash) + TABLET_EXTERNALLY_REPARENTED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTabletExternallyReparentedTimestamp()); if (hasRealtimeStats()) { hash = (37 * hash) + REALTIME_STATS_FIELD_NUMBER; hash = (53 * hash) + getRealtimeStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.StreamHealthResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamHealthResponse 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.Query.StreamHealthResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.StreamHealthResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.StreamHealthResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthResponse 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.Query.StreamHealthResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthResponse 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.Query.StreamHealthResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.StreamHealthResponse 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.Query.StreamHealthResponse 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; } /** *
     * StreamHealthResponse is streamed by StreamHealth on a regular basis
     * 
* * Protobuf type {@code query.StreamHealthResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.StreamHealthResponse) com.youtube.vitess.proto.Query.StreamHealthResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.StreamHealthResponse.class, com.youtube.vitess.proto.Query.StreamHealthResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.StreamHealthResponse.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; } serving_ = false; tabletExternallyReparentedTimestamp_ = 0L; if (realtimeStatsBuilder_ == null) { realtimeStats_ = null; } else { realtimeStats_ = null; realtimeStatsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_StreamHealthResponse_descriptor; } public com.youtube.vitess.proto.Query.StreamHealthResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.StreamHealthResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.StreamHealthResponse build() { com.youtube.vitess.proto.Query.StreamHealthResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.StreamHealthResponse buildPartial() { com.youtube.vitess.proto.Query.StreamHealthResponse result = new com.youtube.vitess.proto.Query.StreamHealthResponse(this); if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.serving_ = serving_; result.tabletExternallyReparentedTimestamp_ = tabletExternallyReparentedTimestamp_; if (realtimeStatsBuilder_ == null) { result.realtimeStats_ = realtimeStats_; } else { result.realtimeStats_ = realtimeStatsBuilder_.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.Query.StreamHealthResponse) { return mergeFrom((com.youtube.vitess.proto.Query.StreamHealthResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.StreamHealthResponse other) { if (other == com.youtube.vitess.proto.Query.StreamHealthResponse.getDefaultInstance()) return this; if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getServing() != false) { setServing(other.getServing()); } if (other.getTabletExternallyReparentedTimestamp() != 0L) { setTabletExternallyReparentedTimestamp(other.getTabletExternallyReparentedTimestamp()); } if (other.hasRealtimeStats()) { mergeRealtimeStats(other.getRealtimeStats()); } 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.Query.StreamHealthResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.StreamHealthResponse) 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_; /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * optional .query.Target target = 1; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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(); } } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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; } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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; } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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; } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * optional .query.Target target = 1; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * optional .query.Target target = 1; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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_; } } /** *
       * target is the current server type. Only queries with that exact Target
       * record will be accepted.
       * 
* * 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 boolean serving_ ; /** *
       * serving is true iff the tablet is serving. A tablet may not be serving
       * if filtered replication is enabled on a master for instance,
       * or if a replica should not be used because the keyspace is being resharded.
       * 
* * optional bool serving = 2; */ public boolean getServing() { return serving_; } /** *
       * serving is true iff the tablet is serving. A tablet may not be serving
       * if filtered replication is enabled on a master for instance,
       * or if a replica should not be used because the keyspace is being resharded.
       * 
* * optional bool serving = 2; */ public Builder setServing(boolean value) { serving_ = value; onChanged(); return this; } /** *
       * serving is true iff the tablet is serving. A tablet may not be serving
       * if filtered replication is enabled on a master for instance,
       * or if a replica should not be used because the keyspace is being resharded.
       * 
* * optional bool serving = 2; */ public Builder clearServing() { serving_ = false; onChanged(); return this; } private long tabletExternallyReparentedTimestamp_ ; /** *
       * tablet_externally_reparented_timestamp contains the last time
       * tabletmanager.TabletExternallyReparented was called on this tablet,
       * or 0 if it was never called. This is meant to differentiate two tablets
       * that report a target.TabletType of MASTER, only the one with the latest
       * timestamp should be trusted.
       * 
* * optional int64 tablet_externally_reparented_timestamp = 3; */ public long getTabletExternallyReparentedTimestamp() { return tabletExternallyReparentedTimestamp_; } /** *
       * tablet_externally_reparented_timestamp contains the last time
       * tabletmanager.TabletExternallyReparented was called on this tablet,
       * or 0 if it was never called. This is meant to differentiate two tablets
       * that report a target.TabletType of MASTER, only the one with the latest
       * timestamp should be trusted.
       * 
* * optional int64 tablet_externally_reparented_timestamp = 3; */ public Builder setTabletExternallyReparentedTimestamp(long value) { tabletExternallyReparentedTimestamp_ = value; onChanged(); return this; } /** *
       * tablet_externally_reparented_timestamp contains the last time
       * tabletmanager.TabletExternallyReparented was called on this tablet,
       * or 0 if it was never called. This is meant to differentiate two tablets
       * that report a target.TabletType of MASTER, only the one with the latest
       * timestamp should be trusted.
       * 
* * optional int64 tablet_externally_reparented_timestamp = 3; */ public Builder clearTabletExternallyReparentedTimestamp() { tabletExternallyReparentedTimestamp_ = 0L; onChanged(); return this; } private com.youtube.vitess.proto.Query.RealtimeStats realtimeStats_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.RealtimeStats, com.youtube.vitess.proto.Query.RealtimeStats.Builder, com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder> realtimeStatsBuilder_; /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public boolean hasRealtimeStats() { return realtimeStatsBuilder_ != null || realtimeStats_ != null; } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public com.youtube.vitess.proto.Query.RealtimeStats getRealtimeStats() { if (realtimeStatsBuilder_ == null) { return realtimeStats_ == null ? com.youtube.vitess.proto.Query.RealtimeStats.getDefaultInstance() : realtimeStats_; } else { return realtimeStatsBuilder_.getMessage(); } } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public Builder setRealtimeStats(com.youtube.vitess.proto.Query.RealtimeStats value) { if (realtimeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } realtimeStats_ = value; onChanged(); } else { realtimeStatsBuilder_.setMessage(value); } return this; } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public Builder setRealtimeStats( com.youtube.vitess.proto.Query.RealtimeStats.Builder builderForValue) { if (realtimeStatsBuilder_ == null) { realtimeStats_ = builderForValue.build(); onChanged(); } else { realtimeStatsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public Builder mergeRealtimeStats(com.youtube.vitess.proto.Query.RealtimeStats value) { if (realtimeStatsBuilder_ == null) { if (realtimeStats_ != null) { realtimeStats_ = com.youtube.vitess.proto.Query.RealtimeStats.newBuilder(realtimeStats_).mergeFrom(value).buildPartial(); } else { realtimeStats_ = value; } onChanged(); } else { realtimeStatsBuilder_.mergeFrom(value); } return this; } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public Builder clearRealtimeStats() { if (realtimeStatsBuilder_ == null) { realtimeStats_ = null; onChanged(); } else { realtimeStats_ = null; realtimeStatsBuilder_ = null; } return this; } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public com.youtube.vitess.proto.Query.RealtimeStats.Builder getRealtimeStatsBuilder() { onChanged(); return getRealtimeStatsFieldBuilder().getBuilder(); } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ public com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder getRealtimeStatsOrBuilder() { if (realtimeStatsBuilder_ != null) { return realtimeStatsBuilder_.getMessageOrBuilder(); } else { return realtimeStats_ == null ? com.youtube.vitess.proto.Query.RealtimeStats.getDefaultInstance() : realtimeStats_; } } /** *
       * realtime_stats contains information about the tablet status
       * 
* * optional .query.RealtimeStats realtime_stats = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.RealtimeStats, com.youtube.vitess.proto.Query.RealtimeStats.Builder, com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder> getRealtimeStatsFieldBuilder() { if (realtimeStatsBuilder_ == null) { realtimeStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.RealtimeStats, com.youtube.vitess.proto.Query.RealtimeStats.Builder, com.youtube.vitess.proto.Query.RealtimeStatsOrBuilder>( getRealtimeStats(), getParentForChildren(), isClean()); realtimeStats_ = null; } return realtimeStatsBuilder_; } 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:query.StreamHealthResponse) } // @@protoc_insertion_point(class_scope:query.StreamHealthResponse) private static final com.youtube.vitess.proto.Query.StreamHealthResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.StreamHealthResponse(); } public static com.youtube.vitess.proto.Query.StreamHealthResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreamHealthResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamHealthResponse(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.Query.StreamHealthResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:query.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** * optional .vtrpc.CallerID effective_caller_id = 1; */ boolean hasEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId(); /** * optional .vtrpc.CallerID effective_caller_id = 1; */ com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ boolean hasImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId(); /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder(); /** * optional .query.Target target = 3; */ boolean hasTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.Target getTarget(); /** * optional .query.Target target = 3; */ com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder(); /** *
     * If position is set, we will start the streaming from that replication
     * position. Incompatible with timestamp.
     * 
* * optional string position = 4; */ java.lang.String getPosition(); /** *
     * If position is set, we will start the streaming from that replication
     * position. Incompatible with timestamp.
     * 
* * optional string position = 4; */ com.google.protobuf.ByteString getPositionBytes(); /** *
     * If timestamp is set, we will start the streaming from the first
     * event in the binlogs that have that timestamp. Incompatible with position.
     * 
* * optional int64 timestamp = 5; */ long getTimestamp(); } /** *
   * UpdateStreamRequest is the payload for UpdateStream. At most one of
   * position and timestamp can be set. If neither is set, we will start
   * streaming from the current binlog position.
   * 
* * Protobuf type {@code query.UpdateStreamRequest} */ public static final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.UpdateStreamRequest) UpdateStreamRequestOrBuilder { // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateStreamRequest() { position_ = ""; 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 (effectiveCallerId_ != null) { subBuilder = effectiveCallerId_.toBuilder(); } effectiveCallerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCallerId_); effectiveCallerId_ = subBuilder.buildPartial(); } break; } case 18: { com.youtube.vitess.proto.Query.VTGateCallerID.Builder subBuilder = null; if (immediateCallerId_ != null) { subBuilder = immediateCallerId_.toBuilder(); } immediateCallerId_ = input.readMessage(com.youtube.vitess.proto.Query.VTGateCallerID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(immediateCallerId_); immediateCallerId_ = subBuilder.buildPartial(); } break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); position_ = s; break; } case 40: { timestamp_ = 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.Query.internal_static_query_UpdateStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.UpdateStreamRequest.class, com.youtube.vitess.proto.Query.UpdateStreamRequest.Builder.class); } public static final int EFFECTIVE_CALLER_ID_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { return getEffectiveCallerId(); } public static final int IMMEDIATE_CALLER_ID_FIELD_NUMBER = 2; private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { return getImmediateCallerId(); } public static final int TARGET_FIELD_NUMBER = 3; private com.youtube.vitess.proto.Query.Target target_; /** * optional .query.Target target = 3; */ public boolean hasTarget() { return target_ != null; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target getTarget() { return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int POSITION_FIELD_NUMBER = 4; private volatile java.lang.Object position_; /** *
     * If position is set, we will start the streaming from that replication
     * position. Incompatible with timestamp.
     * 
* * optional string position = 4; */ public java.lang.String getPosition() { java.lang.Object ref = position_; 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(); position_ = s; return s; } } /** *
     * If position is set, we will start the streaming from that replication
     * position. Incompatible with timestamp.
     * 
* * optional string position = 4; */ public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); position_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMESTAMP_FIELD_NUMBER = 5; private long timestamp_; /** *
     * If timestamp is set, we will start the streaming from the first
     * event in the binlogs that have that timestamp. Incompatible with position.
     * 
* * optional int64 timestamp = 5; */ public long getTimestamp() { return timestamp_; } 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 (effectiveCallerId_ != null) { output.writeMessage(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { output.writeMessage(2, getImmediateCallerId()); } if (target_ != null) { output.writeMessage(3, getTarget()); } if (!getPositionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, position_); } if (timestamp_ != 0L) { output.writeInt64(5, timestamp_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (effectiveCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEffectiveCallerId()); } if (immediateCallerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImmediateCallerId()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTarget()); } if (!getPositionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, position_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, timestamp_); } 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.Query.UpdateStreamRequest)) { return super.equals(obj); } com.youtube.vitess.proto.Query.UpdateStreamRequest other = (com.youtube.vitess.proto.Query.UpdateStreamRequest) obj; boolean result = true; result = result && (hasEffectiveCallerId() == other.hasEffectiveCallerId()); if (hasEffectiveCallerId()) { result = result && getEffectiveCallerId() .equals(other.getEffectiveCallerId()); } result = result && (hasImmediateCallerId() == other.hasImmediateCallerId()); if (hasImmediateCallerId()) { result = result && getImmediateCallerId() .equals(other.getImmediateCallerId()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && getPosition() .equals(other.getPosition()); result = result && (getTimestamp() == other.getTimestamp()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveCallerId()) { hash = (37 * hash) + EFFECTIVE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCallerId().hashCode(); } if (hasImmediateCallerId()) { hash = (37 * hash) + IMMEDIATE_CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getImmediateCallerId().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + getPosition().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 for UpdateStream. At most one of
     * position and timestamp can be set. If neither is set, we will start
     * streaming from the current binlog position.
     * 
* * Protobuf type {@code query.UpdateStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.UpdateStreamRequest) com.youtube.vitess.proto.Query.UpdateStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.UpdateStreamRequest.class, com.youtube.vitess.proto.Query.UpdateStreamRequest.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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 (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } position_ = ""; timestamp_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamRequest_descriptor; } public com.youtube.vitess.proto.Query.UpdateStreamRequest getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.UpdateStreamRequest.getDefaultInstance(); } public com.youtube.vitess.proto.Query.UpdateStreamRequest build() { com.youtube.vitess.proto.Query.UpdateStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.UpdateStreamRequest buildPartial() { com.youtube.vitess.proto.Query.UpdateStreamRequest result = new com.youtube.vitess.proto.Query.UpdateStreamRequest(this); if (effectiveCallerIdBuilder_ == null) { result.effectiveCallerId_ = effectiveCallerId_; } else { result.effectiveCallerId_ = effectiveCallerIdBuilder_.build(); } if (immediateCallerIdBuilder_ == null) { result.immediateCallerId_ = immediateCallerId_; } else { result.immediateCallerId_ = immediateCallerIdBuilder_.build(); } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.position_ = position_; result.timestamp_ = timestamp_; 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.Query.UpdateStreamRequest) { return mergeFrom((com.youtube.vitess.proto.Query.UpdateStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.UpdateStreamRequest other) { if (other == com.youtube.vitess.proto.Query.UpdateStreamRequest.getDefaultInstance()) return this; if (other.hasEffectiveCallerId()) { mergeEffectiveCallerId(other.getEffectiveCallerId()); } if (other.hasImmediateCallerId()) { mergeImmediateCallerId(other.getImmediateCallerId()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (!other.getPosition().isEmpty()) { position_ = other.position_; onChanged(); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } 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.Query.UpdateStreamRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.UpdateStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.youtube.vitess.proto.Vtrpc.CallerID effectiveCallerId_ = 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> effectiveCallerIdBuilder_; /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public boolean hasEffectiveCallerId() { return effectiveCallerIdBuilder_ != null || effectiveCallerId_ != null; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID getEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } else { return effectiveCallerIdBuilder_.getMessage(); } } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCallerId_ = value; onChanged(); } else { effectiveCallerIdBuilder_.setMessage(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder setEffectiveCallerId( com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = builderForValue.build(); onChanged(); } else { effectiveCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder mergeEffectiveCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) { if (effectiveCallerIdBuilder_ == null) { if (effectiveCallerId_ != null) { effectiveCallerId_ = com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(effectiveCallerId_).mergeFrom(value).buildPartial(); } else { effectiveCallerId_ = value; } onChanged(); } else { effectiveCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public Builder clearEffectiveCallerId() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerId_ = null; onChanged(); } else { effectiveCallerId_ = null; effectiveCallerIdBuilder_ = null; } return this; } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getEffectiveCallerIdBuilder() { onChanged(); return getEffectiveCallerIdFieldBuilder().getBuilder(); } /** * optional .vtrpc.CallerID effective_caller_id = 1; */ public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getEffectiveCallerIdOrBuilder() { if (effectiveCallerIdBuilder_ != null) { return effectiveCallerIdBuilder_.getMessageOrBuilder(); } else { return effectiveCallerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : effectiveCallerId_; } } /** * optional .vtrpc.CallerID effective_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> getEffectiveCallerIdFieldBuilder() { if (effectiveCallerIdBuilder_ == null) { effectiveCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>( getEffectiveCallerId(), getParentForChildren(), isClean()); effectiveCallerId_ = null; } return effectiveCallerIdBuilder_; } private com.youtube.vitess.proto.Query.VTGateCallerID immediateCallerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> immediateCallerIdBuilder_; /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public boolean hasImmediateCallerId() { return immediateCallerIdBuilder_ != null || immediateCallerId_ != null; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID getImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } else { return immediateCallerIdBuilder_.getMessage(); } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } immediateCallerId_ = value; onChanged(); } else { immediateCallerIdBuilder_.setMessage(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder setImmediateCallerId( com.youtube.vitess.proto.Query.VTGateCallerID.Builder builderForValue) { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = builderForValue.build(); onChanged(); } else { immediateCallerIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder mergeImmediateCallerId(com.youtube.vitess.proto.Query.VTGateCallerID value) { if (immediateCallerIdBuilder_ == null) { if (immediateCallerId_ != null) { immediateCallerId_ = com.youtube.vitess.proto.Query.VTGateCallerID.newBuilder(immediateCallerId_).mergeFrom(value).buildPartial(); } else { immediateCallerId_ = value; } onChanged(); } else { immediateCallerIdBuilder_.mergeFrom(value); } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public Builder clearImmediateCallerId() { if (immediateCallerIdBuilder_ == null) { immediateCallerId_ = null; onChanged(); } else { immediateCallerId_ = null; immediateCallerIdBuilder_ = null; } return this; } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerID.Builder getImmediateCallerIdBuilder() { onChanged(); return getImmediateCallerIdFieldBuilder().getBuilder(); } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ public com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder getImmediateCallerIdOrBuilder() { if (immediateCallerIdBuilder_ != null) { return immediateCallerIdBuilder_.getMessageOrBuilder(); } else { return immediateCallerId_ == null ? com.youtube.vitess.proto.Query.VTGateCallerID.getDefaultInstance() : immediateCallerId_; } } /** * optional .query.VTGateCallerID immediate_caller_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder> getImmediateCallerIdFieldBuilder() { if (immediateCallerIdBuilder_ == null) { immediateCallerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.youtube.vitess.proto.Query.VTGateCallerID, com.youtube.vitess.proto.Query.VTGateCallerID.Builder, com.youtube.vitess.proto.Query.VTGateCallerIDOrBuilder>( getImmediateCallerId(), getParentForChildren(), isClean()); immediateCallerId_ = null; } return immediateCallerIdBuilder_; } 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 = 3; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * optional .query.Target target = 3; */ public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * optional .query.Target target = 3; */ 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 = 3; */ 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 java.lang.Object position_ = ""; /** *
       * If position is set, we will start the streaming from that replication
       * position. Incompatible with timestamp.
       * 
* * optional string position = 4; */ public java.lang.String getPosition() { java.lang.Object ref = position_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); position_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If position is set, we will start the streaming from that replication
       * position. Incompatible with timestamp.
       * 
* * optional string position = 4; */ public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); position_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If position is set, we will start the streaming from that replication
       * position. Incompatible with timestamp.
       * 
* * optional string position = 4; */ public Builder setPosition( java.lang.String value) { if (value == null) { throw new NullPointerException(); } position_ = value; onChanged(); return this; } /** *
       * If position is set, we will start the streaming from that replication
       * position. Incompatible with timestamp.
       * 
* * optional string position = 4; */ public Builder clearPosition() { position_ = getDefaultInstance().getPosition(); onChanged(); return this; } /** *
       * If position is set, we will start the streaming from that replication
       * position. Incompatible with timestamp.
       * 
* * optional string position = 4; */ public Builder setPositionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); position_ = value; onChanged(); return this; } private long timestamp_ ; /** *
       * If timestamp is set, we will start the streaming from the first
       * event in the binlogs that have that timestamp. Incompatible with position.
       * 
* * optional int64 timestamp = 5; */ public long getTimestamp() { return timestamp_; } /** *
       * If timestamp is set, we will start the streaming from the first
       * event in the binlogs that have that timestamp. Incompatible with position.
       * 
* * optional int64 timestamp = 5; */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
       * If timestamp is set, we will start the streaming from the first
       * event in the binlogs that have that timestamp. Incompatible with position.
       * 
* * optional int64 timestamp = 5; */ public Builder clearTimestamp() { timestamp_ = 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:query.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:query.UpdateStreamRequest) private static final com.youtube.vitess.proto.Query.UpdateStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.UpdateStreamRequest(); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateStreamResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:query.UpdateStreamResponse) com.google.protobuf.MessageOrBuilder { /** * optional .query.StreamEvent event = 1; */ boolean hasEvent(); /** * optional .query.StreamEvent event = 1; */ com.youtube.vitess.proto.Query.StreamEvent getEvent(); /** * optional .query.StreamEvent event = 1; */ com.youtube.vitess.proto.Query.StreamEventOrBuilder getEventOrBuilder(); } /** *
   * UpdateStreamResponse is returned by UpdateStream
   * 
* * Protobuf type {@code query.UpdateStreamResponse} */ public static final class UpdateStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.UpdateStreamResponse) UpdateStreamResponseOrBuilder { // Use UpdateStreamResponse.newBuilder() to construct. private UpdateStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateStreamResponse() { } @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; } } } } 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.Query.internal_static_query_UpdateStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.UpdateStreamResponse.class, com.youtube.vitess.proto.Query.UpdateStreamResponse.Builder.class); } public static final int EVENT_FIELD_NUMBER = 1; private com.youtube.vitess.proto.Query.StreamEvent event_; /** * optional .query.StreamEvent event = 1; */ public boolean hasEvent() { return event_ != null; } /** * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEvent getEvent() { return event_ == null ? com.youtube.vitess.proto.Query.StreamEvent.getDefaultInstance() : event_; } /** * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEventOrBuilder 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 (event_ != null) { output.writeMessage(1, getEvent()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (event_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.Query.UpdateStreamResponse)) { return super.equals(obj); } com.youtube.vitess.proto.Query.UpdateStreamResponse other = (com.youtube.vitess.proto.Query.UpdateStreamResponse) obj; boolean result = true; 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 (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.Query.UpdateStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.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.Query.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.Query.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.Query.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 returned by UpdateStream
     * 
* * Protobuf type {@code query.UpdateStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.UpdateStreamResponse) com.youtube.vitess.proto.Query.UpdateStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.UpdateStreamResponse.class, com.youtube.vitess.proto.Query.UpdateStreamResponse.Builder.class); } // Construct using com.youtube.vitess.proto.Query.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; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_UpdateStreamResponse_descriptor; } public com.youtube.vitess.proto.Query.UpdateStreamResponse getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.UpdateStreamResponse.getDefaultInstance(); } public com.youtube.vitess.proto.Query.UpdateStreamResponse build() { com.youtube.vitess.proto.Query.UpdateStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.UpdateStreamResponse buildPartial() { com.youtube.vitess.proto.Query.UpdateStreamResponse result = new com.youtube.vitess.proto.Query.UpdateStreamResponse(this); 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.Query.UpdateStreamResponse) { return mergeFrom((com.youtube.vitess.proto.Query.UpdateStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.UpdateStreamResponse other) { if (other == com.youtube.vitess.proto.Query.UpdateStreamResponse.getDefaultInstance()) return this; 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.Query.UpdateStreamResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.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_; /** * optional .query.StreamEvent event = 1; */ public boolean hasEvent() { return eventBuilder_ != null || event_ != null; } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .query.StreamEvent event = 1; */ public Builder clearEvent() { if (eventBuilder_ == null) { event_ = null; onChanged(); } else { event_ = null; eventBuilder_ = null; } return this; } /** * optional .query.StreamEvent event = 1; */ public com.youtube.vitess.proto.Query.StreamEvent.Builder getEventBuilder() { onChanged(); return getEventFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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_; } 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:query.UpdateStreamResponse) } // @@protoc_insertion_point(class_scope:query.UpdateStreamResponse) private static final com.youtube.vitess.proto.Query.UpdateStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.UpdateStreamResponse(); } public static com.youtube.vitess.proto.Query.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.Query.UpdateStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:query.TransactionMetadata) com.google.protobuf.MessageOrBuilder { /** * optional string dtid = 1; */ java.lang.String getDtid(); /** * optional string dtid = 1; */ com.google.protobuf.ByteString getDtidBytes(); /** * optional .query.TransactionState state = 2; */ int getStateValue(); /** * optional .query.TransactionState state = 2; */ com.youtube.vitess.proto.Query.TransactionState getState(); /** * optional int64 time_created = 3; */ long getTimeCreated(); /** * repeated .query.Target participants = 4; */ java.util.List getParticipantsList(); /** * repeated .query.Target participants = 4; */ com.youtube.vitess.proto.Query.Target getParticipants(int index); /** * repeated .query.Target participants = 4; */ int getParticipantsCount(); /** * repeated .query.Target participants = 4; */ java.util.List getParticipantsOrBuilderList(); /** * repeated .query.Target participants = 4; */ com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index); } /** *
   * TransactionMetadata contains the metadata for a distributed transaction.
   * 
* * Protobuf type {@code query.TransactionMetadata} */ public static final class TransactionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:query.TransactionMetadata) TransactionMetadataOrBuilder { // Use TransactionMetadata.newBuilder() to construct. private TransactionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionMetadata() { dtid_ = ""; state_ = 0; timeCreated_ = 0L; participants_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private TransactionMetadata( 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(); dtid_ = s; break; } case 16: { int rawValue = input.readEnum(); state_ = rawValue; break; } case 24: { timeCreated_ = input.readInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { participants_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } participants_.add( input.readMessage(com.youtube.vitess.proto.Query.Target.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)) { participants_ = java.util.Collections.unmodifiableList(participants_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_TransactionMetadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_TransactionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.TransactionMetadata.class, com.youtube.vitess.proto.Query.TransactionMetadata.Builder.class); } private int bitField0_; public static final int DTID_FIELD_NUMBER = 1; private volatile java.lang.Object dtid_; /** * optional string dtid = 1; */ 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; } } /** * optional string dtid = 1; */ 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; } } public static final int STATE_FIELD_NUMBER = 2; private int state_; /** * optional .query.TransactionState state = 2; */ public int getStateValue() { return state_; } /** * optional .query.TransactionState state = 2; */ public com.youtube.vitess.proto.Query.TransactionState getState() { com.youtube.vitess.proto.Query.TransactionState result = com.youtube.vitess.proto.Query.TransactionState.valueOf(state_); return result == null ? com.youtube.vitess.proto.Query.TransactionState.UNRECOGNIZED : result; } public static final int TIME_CREATED_FIELD_NUMBER = 3; private long timeCreated_; /** * optional int64 time_created = 3; */ public long getTimeCreated() { return timeCreated_; } public static final int PARTICIPANTS_FIELD_NUMBER = 4; private java.util.List participants_; /** * repeated .query.Target participants = 4; */ public java.util.List getParticipantsList() { return participants_; } /** * repeated .query.Target participants = 4; */ public java.util.List getParticipantsOrBuilderList() { return participants_; } /** * repeated .query.Target participants = 4; */ public int getParticipantsCount() { return participants_.size(); } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.Target getParticipants(int index) { return participants_.get(index); } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index) { return participants_.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 (!getDtidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dtid_); } if (state_ != com.youtube.vitess.proto.Query.TransactionState.UNKNOWN.getNumber()) { output.writeEnum(2, state_); } if (timeCreated_ != 0L) { output.writeInt64(3, timeCreated_); } for (int i = 0; i < participants_.size(); i++) { output.writeMessage(4, participants_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDtidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dtid_); } if (state_ != com.youtube.vitess.proto.Query.TransactionState.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, state_); } if (timeCreated_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, timeCreated_); } for (int i = 0; i < participants_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, participants_.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.Query.TransactionMetadata)) { return super.equals(obj); } com.youtube.vitess.proto.Query.TransactionMetadata other = (com.youtube.vitess.proto.Query.TransactionMetadata) obj; boolean result = true; result = result && getDtid() .equals(other.getDtid()); result = result && state_ == other.state_; result = result && (getTimeCreated() == other.getTimeCreated()); result = result && getParticipantsList() .equals(other.getParticipantsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + DTID_FIELD_NUMBER; hash = (53 * hash) + getDtid().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TIME_CREATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeCreated()); if (getParticipantsCount() > 0) { hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER; hash = (53 * hash) + getParticipantsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.youtube.vitess.proto.Query.TransactionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.TransactionMetadata 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.Query.TransactionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.youtube.vitess.proto.Query.TransactionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.youtube.vitess.proto.Query.TransactionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.TransactionMetadata 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.Query.TransactionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.TransactionMetadata 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.Query.TransactionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.youtube.vitess.proto.Query.TransactionMetadata 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.Query.TransactionMetadata 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; } /** *
     * TransactionMetadata contains the metadata for a distributed transaction.
     * 
* * Protobuf type {@code query.TransactionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:query.TransactionMetadata) com.youtube.vitess.proto.Query.TransactionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.youtube.vitess.proto.Query.internal_static_query_TransactionMetadata_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.youtube.vitess.proto.Query.internal_static_query_TransactionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.youtube.vitess.proto.Query.TransactionMetadata.class, com.youtube.vitess.proto.Query.TransactionMetadata.Builder.class); } // Construct using com.youtube.vitess.proto.Query.TransactionMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParticipantsFieldBuilder(); } } public Builder clear() { super.clear(); dtid_ = ""; state_ = 0; timeCreated_ = 0L; if (participantsBuilder_ == null) { participants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { participantsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.youtube.vitess.proto.Query.internal_static_query_TransactionMetadata_descriptor; } public com.youtube.vitess.proto.Query.TransactionMetadata getDefaultInstanceForType() { return com.youtube.vitess.proto.Query.TransactionMetadata.getDefaultInstance(); } public com.youtube.vitess.proto.Query.TransactionMetadata build() { com.youtube.vitess.proto.Query.TransactionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.youtube.vitess.proto.Query.TransactionMetadata buildPartial() { com.youtube.vitess.proto.Query.TransactionMetadata result = new com.youtube.vitess.proto.Query.TransactionMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.dtid_ = dtid_; result.state_ = state_; result.timeCreated_ = timeCreated_; if (participantsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { participants_ = java.util.Collections.unmodifiableList(participants_); bitField0_ = (bitField0_ & ~0x00000008); } result.participants_ = participants_; } else { result.participants_ = participantsBuilder_.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.Query.TransactionMetadata) { return mergeFrom((com.youtube.vitess.proto.Query.TransactionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.youtube.vitess.proto.Query.TransactionMetadata other) { if (other == com.youtube.vitess.proto.Query.TransactionMetadata.getDefaultInstance()) return this; if (!other.getDtid().isEmpty()) { dtid_ = other.dtid_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.getTimeCreated() != 0L) { setTimeCreated(other.getTimeCreated()); } if (participantsBuilder_ == null) { if (!other.participants_.isEmpty()) { if (participants_.isEmpty()) { participants_ = other.participants_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureParticipantsIsMutable(); participants_.addAll(other.participants_); } onChanged(); } } else { if (!other.participants_.isEmpty()) { if (participantsBuilder_.isEmpty()) { participantsBuilder_.dispose(); participantsBuilder_ = null; participants_ = other.participants_; bitField0_ = (bitField0_ & ~0x00000008); participantsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParticipantsFieldBuilder() : null; } else { participantsBuilder_.addAllMessages(other.participants_); } } } 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.Query.TransactionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.youtube.vitess.proto.Query.TransactionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object dtid_ = ""; /** * optional string dtid = 1; */ 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; } } /** * optional string dtid = 1; */ 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; } } /** * optional string dtid = 1; */ public Builder setDtid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dtid_ = value; onChanged(); return this; } /** * optional string dtid = 1; */ public Builder clearDtid() { dtid_ = getDefaultInstance().getDtid(); onChanged(); return this; } /** * optional string dtid = 1; */ public Builder setDtidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dtid_ = value; onChanged(); return this; } private int state_ = 0; /** * optional .query.TransactionState state = 2; */ public int getStateValue() { return state_; } /** * optional .query.TransactionState state = 2; */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** * optional .query.TransactionState state = 2; */ public com.youtube.vitess.proto.Query.TransactionState getState() { com.youtube.vitess.proto.Query.TransactionState result = com.youtube.vitess.proto.Query.TransactionState.valueOf(state_); return result == null ? com.youtube.vitess.proto.Query.TransactionState.UNRECOGNIZED : result; } /** * optional .query.TransactionState state = 2; */ public Builder setState(com.youtube.vitess.proto.Query.TransactionState value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** * optional .query.TransactionState state = 2; */ public Builder clearState() { state_ = 0; onChanged(); return this; } private long timeCreated_ ; /** * optional int64 time_created = 3; */ public long getTimeCreated() { return timeCreated_; } /** * optional int64 time_created = 3; */ public Builder setTimeCreated(long value) { timeCreated_ = value; onChanged(); return this; } /** * optional int64 time_created = 3; */ public Builder clearTimeCreated() { timeCreated_ = 0L; onChanged(); return this; } private java.util.List participants_ = java.util.Collections.emptyList(); private void ensureParticipantsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { participants_ = new java.util.ArrayList(participants_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder> participantsBuilder_; /** * repeated .query.Target participants = 4; */ public java.util.List getParticipantsList() { if (participantsBuilder_ == null) { return java.util.Collections.unmodifiableList(participants_); } else { return participantsBuilder_.getMessageList(); } } /** * repeated .query.Target participants = 4; */ public int getParticipantsCount() { if (participantsBuilder_ == null) { return participants_.size(); } else { return participantsBuilder_.getCount(); } } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.Target getParticipants(int index) { if (participantsBuilder_ == null) { return participants_.get(index); } else { return participantsBuilder_.getMessage(index); } } /** * repeated .query.Target participants = 4; */ public Builder setParticipants( int index, com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.set(index, value); onChanged(); } else { participantsBuilder_.setMessage(index, value); } return this; } /** * repeated .query.Target participants = 4; */ public Builder setParticipants( int index, com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.set(index, builderForValue.build()); onChanged(); } else { participantsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Target participants = 4; */ public Builder addParticipants(com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.add(value); onChanged(); } else { participantsBuilder_.addMessage(value); } return this; } /** * repeated .query.Target participants = 4; */ public Builder addParticipants( int index, com.youtube.vitess.proto.Query.Target value) { if (participantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParticipantsIsMutable(); participants_.add(index, value); onChanged(); } else { participantsBuilder_.addMessage(index, value); } return this; } /** * repeated .query.Target participants = 4; */ public Builder addParticipants( com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.add(builderForValue.build()); onChanged(); } else { participantsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .query.Target participants = 4; */ public Builder addParticipants( int index, com.youtube.vitess.proto.Query.Target.Builder builderForValue) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.add(index, builderForValue.build()); onChanged(); } else { participantsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .query.Target participants = 4; */ public Builder addAllParticipants( java.lang.Iterable values) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, participants_); onChanged(); } else { participantsBuilder_.addAllMessages(values); } return this; } /** * repeated .query.Target participants = 4; */ public Builder clearParticipants() { if (participantsBuilder_ == null) { participants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { participantsBuilder_.clear(); } return this; } /** * repeated .query.Target participants = 4; */ public Builder removeParticipants(int index) { if (participantsBuilder_ == null) { ensureParticipantsIsMutable(); participants_.remove(index); onChanged(); } else { participantsBuilder_.remove(index); } return this; } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.Target.Builder getParticipantsBuilder( int index) { return getParticipantsFieldBuilder().getBuilder(index); } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.TargetOrBuilder getParticipantsOrBuilder( int index) { if (participantsBuilder_ == null) { return participants_.get(index); } else { return participantsBuilder_.getMessageOrBuilder(index); } } /** * repeated .query.Target participants = 4; */ public java.util.List getParticipantsOrBuilderList() { if (participantsBuilder_ != null) { return participantsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(participants_); } } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.Target.Builder addParticipantsBuilder() { return getParticipantsFieldBuilder().addBuilder( com.youtube.vitess.proto.Query.Target.getDefaultInstance()); } /** * repeated .query.Target participants = 4; */ public com.youtube.vitess.proto.Query.Target.Builder addParticipantsBuilder( int index) { return getParticipantsFieldBuilder().addBuilder( index, com.youtube.vitess.proto.Query.Target.getDefaultInstance()); } /** * repeated .query.Target participants = 4; */ public java.util.List getParticipantsBuilderList() { return getParticipantsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder> getParticipantsFieldBuilder() { if (participantsBuilder_ == null) { participantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder>( participants_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); participants_ = null; } return participantsBuilder_; } 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:query.TransactionMetadata) } // @@protoc_insertion_point(class_scope:query.TransactionMetadata) private static final com.youtube.vitess.proto.Query.TransactionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.youtube.vitess.proto.Query.TransactionMetadata(); } public static com.youtube.vitess.proto.Query.TransactionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransactionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionMetadata(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.Query.TransactionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_Target_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_Target_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_VTGateCallerID_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_VTGateCallerID_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_EventToken_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_EventToken_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BindVariable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BindVariable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BoundQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BoundQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BoundQuery_BindVariablesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BoundQuery_BindVariablesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ExecuteOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ExecuteOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_Field_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_Field_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_Row_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_Row_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ResultExtras_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ResultExtras_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_QueryResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_QueryResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamEvent_Statement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamEvent_Statement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ExecuteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ExecuteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ResultWithError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ResultWithError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ExecuteBatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ExecuteBatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ExecuteBatchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ExecuteBatchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamExecuteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamExecuteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CommitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CommitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CommitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CommitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_RollbackRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_RollbackRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_RollbackResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_RollbackResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_PrepareRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_PrepareRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_PrepareResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_PrepareResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CommitPreparedRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CommitPreparedRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CommitPreparedResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CommitPreparedResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_RollbackPreparedRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_RollbackPreparedRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_RollbackPreparedResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_RollbackPreparedResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CreateTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CreateTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_CreateTransactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_CreateTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StartCommitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StartCommitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StartCommitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StartCommitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_SetRollbackRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_SetRollbackRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_SetRollbackResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_SetRollbackResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ConcludeTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ConcludeTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ConcludeTransactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ConcludeTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ReadTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ReadTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_ReadTransactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_ReadTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginExecuteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginExecuteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginExecuteBatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginExecuteBatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_BeginExecuteBatchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_BeginExecuteBatchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_MessageStreamRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_MessageStreamRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_MessageStreamResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_MessageStreamResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_MessageAckRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_MessageAckRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_MessageAckResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_MessageAckResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_SplitQueryRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_SplitQueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_QuerySplit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_QuerySplit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_SplitQueryResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_SplitQueryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamHealthRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamHealthRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_RealtimeStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_RealtimeStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_StreamHealthResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_StreamHealthResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_UpdateStreamRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_UpdateStreamRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_UpdateStreamResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_UpdateStreamResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_query_TransactionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_query_TransactionMetadata_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\013query.proto\022\005query\032\016topodata.proto\032\013vt" + "rpc.proto\"T\n\006Target\022\020\n\010keyspace\030\001 \001(\t\022\r\n" + "\005shard\030\002 \001(\t\022)\n\013tablet_type\030\003 \001(\0162\024.topo" + "data.TabletType\"2\n\016VTGateCallerID\022\020\n\010use" + "rname\030\001 \001(\t\022\016\n\006groups\030\002 \003(\t\"@\n\nEventToke" + "n\022\021\n\ttimestamp\030\001 \001(\003\022\r\n\005shard\030\002 \001(\t\022\020\n\010p" + "osition\030\003 \001(\t\"1\n\005Value\022\031\n\004type\030\001 \001(\0162\013.q" + "uery.Type\022\r\n\005value\030\002 \001(\014\"V\n\014BindVariable" + "\022\031\n\004type\030\001 \001(\0162\013.query.Type\022\r\n\005value\030\002 \001" + "(\014\022\034\n\006values\030\003 \003(\0132\014.query.Value\"\242\001\n\nBou", "ndQuery\022\013\n\003sql\030\001 \001(\t\022<\n\016bind_variables\030\002" + " \003(\0132$.query.BoundQuery.BindVariablesEnt" + "ry\032I\n\022BindVariablesEntry\022\013\n\003key\030\001 \001(\t\022\"\n" + "\005value\030\002 \001(\0132\023.query.BindVariable:\0028\001\"\337\001" + "\n\016ExecuteOptions\022\033\n\023include_event_token\030" + "\002 \001(\010\022.\n\023compare_event_token\030\003 \001(\0132\021.que" + "ry.EventToken\022=\n\017included_fields\030\004 \001(\0162$" + ".query.ExecuteOptions.IncludedFields\";\n\016" + "IncludedFields\022\021\n\rTYPE_AND_NAME\020\000\022\r\n\tTYP" + "E_ONLY\020\001\022\007\n\003ALL\020\002J\004\010\001\020\002\"\277\001\n\005Field\022\014\n\004nam", "e\030\001 \001(\t\022\031\n\004type\030\002 \001(\0162\013.query.Type\022\r\n\005ta" + "ble\030\003 \001(\t\022\021\n\torg_table\030\004 \001(\t\022\020\n\010database" + "\030\005 \001(\t\022\020\n\010org_name\030\006 \001(\t\022\025\n\rcolumn_lengt" + "h\030\007 \001(\r\022\017\n\007charset\030\010 \001(\r\022\020\n\010decimals\030\t \001" + "(\r\022\r\n\005flags\030\n \001(\r\"&\n\003Row\022\017\n\007lengths\030\001 \003(" + "\022\022\016\n\006values\030\002 \001(\014\"G\n\014ResultExtras\022&\n\013eve" + "nt_token\030\001 \001(\0132\021.query.EventToken\022\017\n\007fre" + "sher\030\002 \001(\010\"\224\001\n\013QueryResult\022\034\n\006fields\030\001 \003" + "(\0132\014.query.Field\022\025\n\rrows_affected\030\002 \001(\004\022" + "\021\n\tinsert_id\030\003 \001(\004\022\030\n\004rows\030\004 \003(\0132\n.query", ".Row\022#\n\006extras\030\005 \001(\0132\023.query.ResultExtra" + "s\"\312\002\n\013StreamEvent\0220\n\nstatements\030\001 \003(\0132\034." + "query.StreamEvent.Statement\022&\n\013event_tok" + "en\030\002 \001(\0132\021.query.EventToken\032\340\001\n\tStatemen" + "t\0227\n\010category\030\001 \001(\0162%.query.StreamEvent." + "Statement.Category\022\022\n\ntable_name\030\002 \001(\t\022(" + "\n\022primary_key_fields\030\003 \003(\0132\014.query.Field" + "\022&\n\022primary_key_values\030\004 \003(\0132\n.query.Row" + "\022\013\n\003sql\030\005 \001(\014\"\'\n\010Category\022\t\n\005Error\020\000\022\007\n\003" + "DML\020\001\022\007\n\003DDL\020\002\"\363\001\n\016ExecuteRequest\022,\n\023eff", "ective_caller_id\030\001 \001(\0132\017.vtrpc.CallerID\022" + "2\n\023immediate_caller_id\030\002 \001(\0132\025.query.VTG" + "ateCallerID\022\035\n\006target\030\003 \001(\0132\r.query.Targ" + "et\022 \n\005query\030\004 \001(\0132\021.query.BoundQuery\022\026\n\016" + "transaction_id\030\005 \001(\003\022&\n\007options\030\006 \001(\0132\025." + "query.ExecuteOptions\"5\n\017ExecuteResponse\022" + "\"\n\006result\030\001 \001(\0132\022.query.QueryResult\"U\n\017R" + "esultWithError\022\036\n\005error\030\001 \001(\0132\017.vtrpc.RP" + "CError\022\"\n\006result\030\002 \001(\0132\022.query.QueryResu" + "lt\"\222\002\n\023ExecuteBatchRequest\022,\n\023effective_", "caller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023imme" + "diate_caller_id\030\002 \001(\0132\025.query.VTGateCall" + "erID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\"\n\007q" + "ueries\030\004 \003(\0132\021.query.BoundQuery\022\026\n\016as_tr" + "ansaction\030\005 \001(\010\022\026\n\016transaction_id\030\006 \001(\003\022" + "&\n\007options\030\007 \001(\0132\025.query.ExecuteOptions\"" + ";\n\024ExecuteBatchResponse\022#\n\007results\030\001 \003(\013" + "2\022.query.QueryResult\"\341\001\n\024StreamExecuteRe" + "quest\022,\n\023effective_caller_id\030\001 \001(\0132\017.vtr" + "pc.CallerID\0222\n\023immediate_caller_id\030\002 \001(\013", "2\025.query.VTGateCallerID\022\035\n\006target\030\003 \001(\0132" + "\r.query.Target\022 \n\005query\030\004 \001(\0132\021.query.Bo" + "undQuery\022&\n\007options\030\005 \001(\0132\025.query.Execut" + "eOptions\";\n\025StreamExecuteResponse\022\"\n\006res" + "ult\030\001 \001(\0132\022.query.QueryResult\"\217\001\n\014BeginR" + "equest\022,\n\023effective_caller_id\030\001 \001(\0132\017.vt" + "rpc.CallerID\0222\n\023immediate_caller_id\030\002 \001(" + "\0132\025.query.VTGateCallerID\022\035\n\006target\030\003 \001(\013" + "2\r.query.Target\"\'\n\rBeginResponse\022\026\n\016tran" + "saction_id\030\001 \001(\003\"\250\001\n\rCommitRequest\022,\n\023ef", "fective_caller_id\030\001 \001(\0132\017.vtrpc.CallerID" + "\0222\n\023immediate_caller_id\030\002 \001(\0132\025.query.VT" + "GateCallerID\022\035\n\006target\030\003 \001(\0132\r.query.Tar" + "get\022\026\n\016transaction_id\030\004 \001(\003\"\020\n\016CommitRes" + "ponse\"\252\001\n\017RollbackRequest\022,\n\023effective_c" + "aller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023immed" + "iate_caller_id\030\002 \001(\0132\025.query.VTGateCalle" + "rID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\026\n\016tr" + "ansaction_id\030\004 \001(\003\"\022\n\020RollbackResponse\"\267" + "\001\n\016PrepareRequest\022,\n\023effective_caller_id", "\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023immediate_cal" + "ler_id\030\002 \001(\0132\025.query.VTGateCallerID\022\035\n\006t" + "arget\030\003 \001(\0132\r.query.Target\022\026\n\016transactio" + "n_id\030\004 \001(\003\022\014\n\004dtid\030\005 \001(\t\"\021\n\017PrepareRespo" + "nse\"\246\001\n\025CommitPreparedRequest\022,\n\023effecti" + "ve_caller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023i" + "mmediate_caller_id\030\002 \001(\0132\025.query.VTGateC" + "allerID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\014" + "\n\004dtid\030\004 \001(\t\"\030\n\026CommitPreparedResponse\"\300" + "\001\n\027RollbackPreparedRequest\022,\n\023effective_", "caller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023imme" + "diate_caller_id\030\002 \001(\0132\025.query.VTGateCall" + "erID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\026\n\016t" + "ransaction_id\030\004 \001(\003\022\014\n\004dtid\030\005 \001(\t\"\032\n\030Rol" + "lbackPreparedResponse\"\316\001\n\030CreateTransact" + "ionRequest\022,\n\023effective_caller_id\030\001 \001(\0132" + "\017.vtrpc.CallerID\0222\n\023immediate_caller_id\030" + "\002 \001(\0132\025.query.VTGateCallerID\022\035\n\006target\030\003" + " \001(\0132\r.query.Target\022\014\n\004dtid\030\004 \001(\t\022#\n\014par" + "ticipants\030\005 \003(\0132\r.query.Target\"\033\n\031Create", "TransactionResponse\"\273\001\n\022StartCommitReque" + "st\022,\n\023effective_caller_id\030\001 \001(\0132\017.vtrpc." + "CallerID\0222\n\023immediate_caller_id\030\002 \001(\0132\025." + "query.VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.q" + "uery.Target\022\026\n\016transaction_id\030\004 \001(\003\022\014\n\004d" + "tid\030\005 \001(\t\"\025\n\023StartCommitResponse\"\273\001\n\022Set" + "RollbackRequest\022,\n\023effective_caller_id\030\001" + " \001(\0132\017.vtrpc.CallerID\0222\n\023immediate_calle" + "r_id\030\002 \001(\0132\025.query.VTGateCallerID\022\035\n\006tar" + "get\030\003 \001(\0132\r.query.Target\022\026\n\016transaction_", "id\030\004 \001(\003\022\014\n\004dtid\030\005 \001(\t\"\025\n\023SetRollbackRes" + "ponse\"\253\001\n\032ConcludeTransactionRequest\022,\n\023" + "effective_caller_id\030\001 \001(\0132\017.vtrpc.Caller" + "ID\0222\n\023immediate_caller_id\030\002 \001(\0132\025.query." + "VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.query.T" + "arget\022\014\n\004dtid\030\004 \001(\t\"\035\n\033ConcludeTransacti" + "onResponse\"\247\001\n\026ReadTransactionRequest\022,\n" + "\023effective_caller_id\030\001 \001(\0132\017.vtrpc.Calle" + "rID\0222\n\023immediate_caller_id\030\002 \001(\0132\025.query" + ".VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.query.", "Target\022\014\n\004dtid\030\004 \001(\t\"G\n\027ReadTransactionR" + "esponse\022,\n\010metadata\030\001 \001(\0132\032.query.Transa" + "ctionMetadata\"\340\001\n\023BeginExecuteRequest\022,\n" + "\023effective_caller_id\030\001 \001(\0132\017.vtrpc.Calle" + "rID\0222\n\023immediate_caller_id\030\002 \001(\0132\025.query" + ".VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.query." + "Target\022 \n\005query\030\004 \001(\0132\021.query.BoundQuery" + "\022&\n\007options\030\005 \001(\0132\025.query.ExecuteOptions" + "\"r\n\024BeginExecuteResponse\022\036\n\005error\030\001 \001(\0132" + "\017.vtrpc.RPCError\022\"\n\006result\030\002 \001(\0132\022.query", ".QueryResult\022\026\n\016transaction_id\030\003 \001(\003\"\377\001\n" + "\030BeginExecuteBatchRequest\022,\n\023effective_c" + "aller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023immed" + "iate_caller_id\030\002 \001(\0132\025.query.VTGateCalle" + "rID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\"\n\007qu" + "eries\030\004 \003(\0132\021.query.BoundQuery\022\026\n\016as_tra" + "nsaction\030\005 \001(\010\022&\n\007options\030\006 \001(\0132\025.query." + "ExecuteOptions\"x\n\031BeginExecuteBatchRespo" + "nse\022\036\n\005error\030\001 \001(\0132\017.vtrpc.RPCError\022#\n\007r" + "esults\030\002 \003(\0132\022.query.QueryResult\022\026\n\016tran", "saction_id\030\003 \001(\003\"\245\001\n\024MessageStreamReques" + "t\022,\n\023effective_caller_id\030\001 \001(\0132\017.vtrpc.C" + "allerID\0222\n\023immediate_caller_id\030\002 \001(\0132\025.q" + "uery.VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.qu" + "ery.Target\022\014\n\004name\030\004 \001(\t\";\n\025MessageStrea" + "mResponse\022\"\n\006result\030\001 \001(\0132\022.query.QueryR" + "esult\"\275\001\n\021MessageAckRequest\022,\n\023effective" + "_caller_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023imm" + "ediate_caller_id\030\002 \001(\0132\025.query.VTGateCal" + "lerID\022\035\n\006target\030\003 \001(\0132\r.query.Target\022\014\n\004", "name\030\004 \001(\t\022\031\n\003ids\030\005 \003(\0132\014.query.Value\"8\n" + "\022MessageAckResponse\022\"\n\006result\030\001 \001(\0132\022.qu" + "ery.QueryResult\"\347\002\n\021SplitQueryRequest\022,\n" + "\023effective_caller_id\030\001 \001(\0132\017.vtrpc.Calle" + "rID\0222\n\023immediate_caller_id\030\002 \001(\0132\025.query" + ".VTGateCallerID\022\035\n\006target\030\003 \001(\0132\r.query." + "Target\022 \n\005query\030\004 \001(\0132\021.query.BoundQuery" + "\022\024\n\014split_column\030\005 \003(\t\022\023\n\013split_count\030\006 " + "\001(\003\022\037\n\027num_rows_per_query_part\030\010 \001(\003\0225\n\t" + "algorithm\030\t \001(\0162\".query.SplitQueryReques", "t.Algorithm\",\n\tAlgorithm\022\020\n\014EQUAL_SPLITS" + "\020\000\022\r\n\tFULL_SCAN\020\001\"A\n\nQuerySplit\022 \n\005query" + "\030\001 \001(\0132\021.query.BoundQuery\022\021\n\trow_count\030\002" + " \001(\003\"8\n\022SplitQueryResponse\022\"\n\007queries\030\001 " + "\003(\0132\021.query.QuerySplit\"\025\n\023StreamHealthRe" + "quest\"\266\001\n\rRealtimeStats\022\024\n\014health_error\030" + "\001 \001(\t\022\035\n\025seconds_behind_master\030\002 \001(\r\022\034\n\024" + "binlog_players_count\030\003 \001(\005\0222\n*seconds_be" + "hind_master_filtered_replication\030\004 \001(\003\022\021" + "\n\tcpu_usage\030\005 \001(\001\022\013\n\003qps\030\006 \001(\001\"\244\001\n\024Strea", "mHealthResponse\022\035\n\006target\030\001 \001(\0132\r.query." + "Target\022\017\n\007serving\030\002 \001(\010\022.\n&tablet_extern" + "ally_reparented_timestamp\030\003 \001(\003\022,\n\016realt" + "ime_stats\030\004 \001(\0132\024.query.RealtimeStats\"\273\001" + "\n\023UpdateStreamRequest\022,\n\023effective_calle" + "r_id\030\001 \001(\0132\017.vtrpc.CallerID\0222\n\023immediate" + "_caller_id\030\002 \001(\0132\025.query.VTGateCallerID\022" + "\035\n\006target\030\003 \001(\0132\r.query.Target\022\020\n\010positi" + "on\030\004 \001(\t\022\021\n\ttimestamp\030\005 \001(\003\"9\n\024UpdateStr" + "eamResponse\022!\n\005event\030\001 \001(\0132\022.query.Strea", "mEvent\"\206\001\n\023TransactionMetadata\022\014\n\004dtid\030\001" + " \001(\t\022&\n\005state\030\002 \001(\0162\027.query.TransactionS" + "tate\022\024\n\014time_created\030\003 \001(\003\022#\n\014participan" + "ts\030\004 \003(\0132\r.query.Target*\222\003\n\tMySqlFlag\022\t\n" + "\005EMPTY\020\000\022\021\n\rNOT_NULL_FLAG\020\001\022\020\n\014PRI_KEY_F" + "LAG\020\002\022\023\n\017UNIQUE_KEY_FLAG\020\004\022\025\n\021MULTIPLE_K" + "EY_FLAG\020\010\022\r\n\tBLOB_FLAG\020\020\022\021\n\rUNSIGNED_FLA" + "G\020 \022\021\n\rZEROFILL_FLAG\020@\022\020\n\013BINARY_FLAG\020\200\001" + "\022\016\n\tENUM_FLAG\020\200\002\022\030\n\023AUTO_INCREMENT_FLAG\020" + "\200\004\022\023\n\016TIMESTAMP_FLAG\020\200\010\022\r\n\010SET_FLAG\020\200\020\022\032", "\n\025NO_DEFAULT_VALUE_FLAG\020\200 \022\027\n\022ON_UPDATE_" + "NOW_FLAG\020\200@\022\016\n\010NUM_FLAG\020\200\200\002\022\023\n\rPART_KEY_" + "FLAG\020\200\200\001\022\020\n\nGROUP_FLAG\020\200\200\002\022\021\n\013UNIQUE_FLA" + "G\020\200\200\004\022\021\n\013BINCMP_FLAG\020\200\200\010\032\002\020\001*k\n\004Flag\022\010\n\004" + "NONE\020\000\022\017\n\nISINTEGRAL\020\200\002\022\017\n\nISUNSIGNED\020\200\004" + "\022\014\n\007ISFLOAT\020\200\010\022\r\n\010ISQUOTED\020\200\020\022\013\n\006ISTEXT\020" + "\200 \022\r\n\010ISBINARY\020\200@*\211\003\n\004Type\022\r\n\tNULL_TYPE\020" + "\000\022\t\n\004INT8\020\201\002\022\n\n\005UINT8\020\202\006\022\n\n\005INT16\020\203\002\022\013\n\006" + "UINT16\020\204\006\022\n\n\005INT24\020\205\002\022\013\n\006UINT24\020\206\006\022\n\n\005IN" + "T32\020\207\002\022\013\n\006UINT32\020\210\006\022\n\n\005INT64\020\211\002\022\013\n\006UINT6", "4\020\212\006\022\014\n\007FLOAT32\020\213\010\022\014\n\007FLOAT64\020\214\010\022\016\n\tTIME" + "STAMP\020\215\020\022\t\n\004DATE\020\216\020\022\t\n\004TIME\020\217\020\022\r\n\010DATETI" + "ME\020\220\020\022\t\n\004YEAR\020\221\006\022\013\n\007DECIMAL\020\022\022\t\n\004TEXT\020\2230" + "\022\t\n\004BLOB\020\224P\022\014\n\007VARCHAR\020\2250\022\016\n\tVARBINARY\020\226" + "P\022\t\n\004CHAR\020\2270\022\013\n\006BINARY\020\230P\022\010\n\003BIT\020\231\020\022\t\n\004E" + "NUM\020\232\020\022\010\n\003SET\020\233\020\022\t\n\005TUPLE\020\034\022\r\n\010GEOMETRY\020" + "\235\020\022\t\n\004JSON\020\236\020*F\n\020TransactionState\022\013\n\007UNK" + "NOWN\020\000\022\013\n\007PREPARE\020\001\022\n\n\006COMMIT\020\002\022\014\n\010ROLLB" + "ACK\020\003B\032\n\030com.youtube.vitess.protob\006proto" + "3" }; 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.Topodata.getDescriptor(), com.youtube.vitess.proto.Vtrpc.getDescriptor(), }, assigner); internal_static_query_Target_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_query_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_Target_descriptor, new java.lang.String[] { "Keyspace", "Shard", "TabletType", }); internal_static_query_VTGateCallerID_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_query_VTGateCallerID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_VTGateCallerID_descriptor, new java.lang.String[] { "Username", "Groups", }); internal_static_query_EventToken_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_query_EventToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_EventToken_descriptor, new java.lang.String[] { "Timestamp", "Shard", "Position", }); internal_static_query_Value_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_query_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_Value_descriptor, new java.lang.String[] { "Type", "Value", }); internal_static_query_BindVariable_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_query_BindVariable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BindVariable_descriptor, new java.lang.String[] { "Type", "Value", "Values", }); internal_static_query_BoundQuery_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_query_BoundQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BoundQuery_descriptor, new java.lang.String[] { "Sql", "BindVariables", }); internal_static_query_BoundQuery_BindVariablesEntry_descriptor = internal_static_query_BoundQuery_descriptor.getNestedTypes().get(0); internal_static_query_BoundQuery_BindVariablesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BoundQuery_BindVariablesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_query_ExecuteOptions_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_query_ExecuteOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ExecuteOptions_descriptor, new java.lang.String[] { "IncludeEventToken", "CompareEventToken", "IncludedFields", }); internal_static_query_Field_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_query_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_Field_descriptor, new java.lang.String[] { "Name", "Type", "Table", "OrgTable", "Database", "OrgName", "ColumnLength", "Charset", "Decimals", "Flags", }); internal_static_query_Row_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_query_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_Row_descriptor, new java.lang.String[] { "Lengths", "Values", }); internal_static_query_ResultExtras_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_query_ResultExtras_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ResultExtras_descriptor, new java.lang.String[] { "EventToken", "Fresher", }); internal_static_query_QueryResult_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_query_QueryResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_QueryResult_descriptor, new java.lang.String[] { "Fields", "RowsAffected", "InsertId", "Rows", "Extras", }); internal_static_query_StreamEvent_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_query_StreamEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamEvent_descriptor, new java.lang.String[] { "Statements", "EventToken", }); internal_static_query_StreamEvent_Statement_descriptor = internal_static_query_StreamEvent_descriptor.getNestedTypes().get(0); internal_static_query_StreamEvent_Statement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamEvent_Statement_descriptor, new java.lang.String[] { "Category", "TableName", "PrimaryKeyFields", "PrimaryKeyValues", "Sql", }); internal_static_query_ExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_query_ExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ExecuteRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Query", "TransactionId", "Options", }); internal_static_query_ExecuteResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_query_ExecuteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ExecuteResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_query_ResultWithError_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_query_ResultWithError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ResultWithError_descriptor, new java.lang.String[] { "Error", "Result", }); internal_static_query_ExecuteBatchRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_query_ExecuteBatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ExecuteBatchRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Queries", "AsTransaction", "TransactionId", "Options", }); internal_static_query_ExecuteBatchResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_query_ExecuteBatchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ExecuteBatchResponse_descriptor, new java.lang.String[] { "Results", }); internal_static_query_StreamExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_query_StreamExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamExecuteRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Query", "Options", }); internal_static_query_StreamExecuteResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_query_StreamExecuteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamExecuteResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_query_BeginRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_query_BeginRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", }); internal_static_query_BeginResponse_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_query_BeginResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginResponse_descriptor, new java.lang.String[] { "TransactionId", }); internal_static_query_CommitRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_query_CommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CommitRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", }); internal_static_query_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_query_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CommitResponse_descriptor, new java.lang.String[] { }); internal_static_query_RollbackRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_query_RollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_RollbackRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", }); internal_static_query_RollbackResponse_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_query_RollbackResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_RollbackResponse_descriptor, new java.lang.String[] { }); internal_static_query_PrepareRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_query_PrepareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_PrepareRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", "Dtid", }); internal_static_query_PrepareResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_query_PrepareResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_PrepareResponse_descriptor, new java.lang.String[] { }); internal_static_query_CommitPreparedRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_query_CommitPreparedRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CommitPreparedRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Dtid", }); internal_static_query_CommitPreparedResponse_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_query_CommitPreparedResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CommitPreparedResponse_descriptor, new java.lang.String[] { }); internal_static_query_RollbackPreparedRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_query_RollbackPreparedRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_RollbackPreparedRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", "Dtid", }); internal_static_query_RollbackPreparedResponse_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_query_RollbackPreparedResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_RollbackPreparedResponse_descriptor, new java.lang.String[] { }); internal_static_query_CreateTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_query_CreateTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CreateTransactionRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Dtid", "Participants", }); internal_static_query_CreateTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_query_CreateTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_CreateTransactionResponse_descriptor, new java.lang.String[] { }); internal_static_query_StartCommitRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_query_StartCommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StartCommitRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", "Dtid", }); internal_static_query_StartCommitResponse_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_query_StartCommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StartCommitResponse_descriptor, new java.lang.String[] { }); internal_static_query_SetRollbackRequest_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_query_SetRollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_SetRollbackRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "TransactionId", "Dtid", }); internal_static_query_SetRollbackResponse_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_query_SetRollbackResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_SetRollbackResponse_descriptor, new java.lang.String[] { }); internal_static_query_ConcludeTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_query_ConcludeTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ConcludeTransactionRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Dtid", }); internal_static_query_ConcludeTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_query_ConcludeTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ConcludeTransactionResponse_descriptor, new java.lang.String[] { }); internal_static_query_ReadTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_query_ReadTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ReadTransactionRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Dtid", }); internal_static_query_ReadTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_query_ReadTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_ReadTransactionResponse_descriptor, new java.lang.String[] { "Metadata", }); internal_static_query_BeginExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_query_BeginExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginExecuteRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Query", "Options", }); internal_static_query_BeginExecuteResponse_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_query_BeginExecuteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginExecuteResponse_descriptor, new java.lang.String[] { "Error", "Result", "TransactionId", }); internal_static_query_BeginExecuteBatchRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_query_BeginExecuteBatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginExecuteBatchRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Queries", "AsTransaction", "Options", }); internal_static_query_BeginExecuteBatchResponse_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_query_BeginExecuteBatchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_BeginExecuteBatchResponse_descriptor, new java.lang.String[] { "Error", "Results", "TransactionId", }); internal_static_query_MessageStreamRequest_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_query_MessageStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_MessageStreamRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Name", }); internal_static_query_MessageStreamResponse_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_query_MessageStreamResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_MessageStreamResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_query_MessageAckRequest_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_query_MessageAckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_MessageAckRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Name", "Ids", }); internal_static_query_MessageAckResponse_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_query_MessageAckResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_MessageAckResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_query_SplitQueryRequest_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_query_SplitQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_SplitQueryRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Query", "SplitColumn", "SplitCount", "NumRowsPerQueryPart", "Algorithm", }); internal_static_query_QuerySplit_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_query_QuerySplit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_QuerySplit_descriptor, new java.lang.String[] { "Query", "RowCount", }); internal_static_query_SplitQueryResponse_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_query_SplitQueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_SplitQueryResponse_descriptor, new java.lang.String[] { "Queries", }); internal_static_query_StreamHealthRequest_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_query_StreamHealthRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamHealthRequest_descriptor, new java.lang.String[] { }); internal_static_query_RealtimeStats_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_query_RealtimeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_RealtimeStats_descriptor, new java.lang.String[] { "HealthError", "SecondsBehindMaster", "BinlogPlayersCount", "SecondsBehindMasterFilteredReplication", "CpuUsage", "Qps", }); internal_static_query_StreamHealthResponse_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_query_StreamHealthResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_StreamHealthResponse_descriptor, new java.lang.String[] { "Target", "Serving", "TabletExternallyReparentedTimestamp", "RealtimeStats", }); internal_static_query_UpdateStreamRequest_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_query_UpdateStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_UpdateStreamRequest_descriptor, new java.lang.String[] { "EffectiveCallerId", "ImmediateCallerId", "Target", "Position", "Timestamp", }); internal_static_query_UpdateStreamResponse_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_query_UpdateStreamResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_UpdateStreamResponse_descriptor, new java.lang.String[] { "Event", }); internal_static_query_TransactionMetadata_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_query_TransactionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_query_TransactionMetadata_descriptor, new java.lang.String[] { "Dtid", "State", "TimeCreated", "Participants", }); com.youtube.vitess.proto.Topodata.getDescriptor(); com.youtube.vitess.proto.Vtrpc.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy