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 extends com.youtube.vitess.proto.Query.ValueOrBuilder>
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 extends com.youtube.vitess.proto.Query.ValueOrBuilder>
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 extends com.youtube.vitess.proto.Query.Value> 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 extends com.youtube.vitess.proto.Query.ValueOrBuilder>
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 extends java.lang.Long> 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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.Field> 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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.Row> 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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder>
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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.Field> 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 extends com.youtube.vitess.proto.Query.FieldOrBuilder>
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 extends com.youtube.vitess.proto.Query.Row> 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 extends com.youtube.vitess.proto.Query.RowOrBuilder>
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 extends com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder>
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 extends com.youtube.vitess.proto.Query.StreamEvent.Statement> 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 extends com.youtube.vitess.proto.Query.StreamEvent.StatementOrBuilder>
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 extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
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 extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
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 extends com.youtube.vitess.proto.Query.BoundQuery> values) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queries_);
onChanged();
} else {
queriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* 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 extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
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 extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
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 extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
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 extends com.youtube.vitess.proto.Query.QueryResult> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* 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 extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
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