org.apache.phoenix.coprocessor.generated.MetaDataProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MetaDataService.proto
package org.apache.phoenix.coprocessor.generated;
public final class MetaDataProtos {
private MetaDataProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code MutationCode}
*/
public enum MutationCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TABLE_ALREADY_EXISTS = 0;
*/
TABLE_ALREADY_EXISTS(0, 0),
/**
* TABLE_NOT_FOUND = 1;
*/
TABLE_NOT_FOUND(1, 1),
/**
* COLUMN_NOT_FOUND = 2;
*/
COLUMN_NOT_FOUND(2, 2),
/**
* COLUMN_ALREADY_EXISTS = 3;
*/
COLUMN_ALREADY_EXISTS(3, 3),
/**
* CONCURRENT_TABLE_MUTATION = 4;
*/
CONCURRENT_TABLE_MUTATION(4, 4),
/**
* TABLE_NOT_IN_REGION = 5;
*/
TABLE_NOT_IN_REGION(5, 5),
/**
* NEWER_TABLE_FOUND = 6;
*/
NEWER_TABLE_FOUND(6, 6),
/**
* UNALLOWED_TABLE_MUTATION = 7;
*/
UNALLOWED_TABLE_MUTATION(7, 7),
/**
* NO_PK_COLUMNS = 8;
*/
NO_PK_COLUMNS(8, 8),
/**
* PARENT_TABLE_NOT_FOUND = 9;
*/
PARENT_TABLE_NOT_FOUND(9, 9),
/**
* FUNCTION_ALREADY_EXISTS = 10;
*/
FUNCTION_ALREADY_EXISTS(10, 10),
/**
* FUNCTION_NOT_FOUND = 11;
*/
FUNCTION_NOT_FOUND(11, 11),
/**
* NEWER_FUNCTION_FOUND = 12;
*/
NEWER_FUNCTION_FOUND(12, 12),
/**
* FUNCTION_NOT_IN_REGION = 13;
*/
FUNCTION_NOT_IN_REGION(13, 13),
/**
* SCHEMA_ALREADY_EXISTS = 14;
*/
SCHEMA_ALREADY_EXISTS(14, 14),
/**
* NEWER_SCHEMA_FOUND = 15;
*/
NEWER_SCHEMA_FOUND(15, 15),
/**
* SCHEMA_NOT_FOUND = 16;
*/
SCHEMA_NOT_FOUND(16, 16),
/**
* SCHEMA_NOT_IN_REGION = 17;
*/
SCHEMA_NOT_IN_REGION(17, 17),
/**
* TABLES_EXIST_ON_SCHEMA = 18;
*/
TABLES_EXIST_ON_SCHEMA(18, 18),
/**
* UNALLOWED_SCHEMA_MUTATION = 19;
*/
UNALLOWED_SCHEMA_MUTATION(19, 19),
/**
* AUTO_PARTITION_SEQUENCE_NOT_FOUND = 20;
*/
AUTO_PARTITION_SEQUENCE_NOT_FOUND(20, 20),
/**
* CANNOT_COERCE_AUTO_PARTITION_ID = 21;
*/
CANNOT_COERCE_AUTO_PARTITION_ID(21, 21),
/**
* TOO_MANY_INDEXES = 22;
*/
TOO_MANY_INDEXES(22, 22),
/**
* UNABLE_TO_CREATE_CHILD_LINK = 23;
*/
UNABLE_TO_CREATE_CHILD_LINK(23, 23),
/**
* UNABLE_TO_UPDATE_PARENT_TABLE = 24;
*/
UNABLE_TO_UPDATE_PARENT_TABLE(24, 24),
/**
* UNABLE_TO_DELETE_CHILD_LINK = 25;
*/
UNABLE_TO_DELETE_CHILD_LINK(25, 25),
/**
* UNABLE_TO_UPSERT_TASK = 26;
*/
UNABLE_TO_UPSERT_TASK(26, 26),
;
/**
* TABLE_ALREADY_EXISTS = 0;
*/
public static final int TABLE_ALREADY_EXISTS_VALUE = 0;
/**
* TABLE_NOT_FOUND = 1;
*/
public static final int TABLE_NOT_FOUND_VALUE = 1;
/**
* COLUMN_NOT_FOUND = 2;
*/
public static final int COLUMN_NOT_FOUND_VALUE = 2;
/**
* COLUMN_ALREADY_EXISTS = 3;
*/
public static final int COLUMN_ALREADY_EXISTS_VALUE = 3;
/**
* CONCURRENT_TABLE_MUTATION = 4;
*/
public static final int CONCURRENT_TABLE_MUTATION_VALUE = 4;
/**
* TABLE_NOT_IN_REGION = 5;
*/
public static final int TABLE_NOT_IN_REGION_VALUE = 5;
/**
* NEWER_TABLE_FOUND = 6;
*/
public static final int NEWER_TABLE_FOUND_VALUE = 6;
/**
* UNALLOWED_TABLE_MUTATION = 7;
*/
public static final int UNALLOWED_TABLE_MUTATION_VALUE = 7;
/**
* NO_PK_COLUMNS = 8;
*/
public static final int NO_PK_COLUMNS_VALUE = 8;
/**
* PARENT_TABLE_NOT_FOUND = 9;
*/
public static final int PARENT_TABLE_NOT_FOUND_VALUE = 9;
/**
* FUNCTION_ALREADY_EXISTS = 10;
*/
public static final int FUNCTION_ALREADY_EXISTS_VALUE = 10;
/**
* FUNCTION_NOT_FOUND = 11;
*/
public static final int FUNCTION_NOT_FOUND_VALUE = 11;
/**
* NEWER_FUNCTION_FOUND = 12;
*/
public static final int NEWER_FUNCTION_FOUND_VALUE = 12;
/**
* FUNCTION_NOT_IN_REGION = 13;
*/
public static final int FUNCTION_NOT_IN_REGION_VALUE = 13;
/**
* SCHEMA_ALREADY_EXISTS = 14;
*/
public static final int SCHEMA_ALREADY_EXISTS_VALUE = 14;
/**
* NEWER_SCHEMA_FOUND = 15;
*/
public static final int NEWER_SCHEMA_FOUND_VALUE = 15;
/**
* SCHEMA_NOT_FOUND = 16;
*/
public static final int SCHEMA_NOT_FOUND_VALUE = 16;
/**
* SCHEMA_NOT_IN_REGION = 17;
*/
public static final int SCHEMA_NOT_IN_REGION_VALUE = 17;
/**
* TABLES_EXIST_ON_SCHEMA = 18;
*/
public static final int TABLES_EXIST_ON_SCHEMA_VALUE = 18;
/**
* UNALLOWED_SCHEMA_MUTATION = 19;
*/
public static final int UNALLOWED_SCHEMA_MUTATION_VALUE = 19;
/**
* AUTO_PARTITION_SEQUENCE_NOT_FOUND = 20;
*/
public static final int AUTO_PARTITION_SEQUENCE_NOT_FOUND_VALUE = 20;
/**
* CANNOT_COERCE_AUTO_PARTITION_ID = 21;
*/
public static final int CANNOT_COERCE_AUTO_PARTITION_ID_VALUE = 21;
/**
* TOO_MANY_INDEXES = 22;
*/
public static final int TOO_MANY_INDEXES_VALUE = 22;
/**
* UNABLE_TO_CREATE_CHILD_LINK = 23;
*/
public static final int UNABLE_TO_CREATE_CHILD_LINK_VALUE = 23;
/**
* UNABLE_TO_UPDATE_PARENT_TABLE = 24;
*/
public static final int UNABLE_TO_UPDATE_PARENT_TABLE_VALUE = 24;
/**
* UNABLE_TO_DELETE_CHILD_LINK = 25;
*/
public static final int UNABLE_TO_DELETE_CHILD_LINK_VALUE = 25;
/**
* UNABLE_TO_UPSERT_TASK = 26;
*/
public static final int UNABLE_TO_UPSERT_TASK_VALUE = 26;
public final int getNumber() { return value; }
public static MutationCode valueOf(int value) {
switch (value) {
case 0: return TABLE_ALREADY_EXISTS;
case 1: return TABLE_NOT_FOUND;
case 2: return COLUMN_NOT_FOUND;
case 3: return COLUMN_ALREADY_EXISTS;
case 4: return CONCURRENT_TABLE_MUTATION;
case 5: return TABLE_NOT_IN_REGION;
case 6: return NEWER_TABLE_FOUND;
case 7: return UNALLOWED_TABLE_MUTATION;
case 8: return NO_PK_COLUMNS;
case 9: return PARENT_TABLE_NOT_FOUND;
case 10: return FUNCTION_ALREADY_EXISTS;
case 11: return FUNCTION_NOT_FOUND;
case 12: return NEWER_FUNCTION_FOUND;
case 13: return FUNCTION_NOT_IN_REGION;
case 14: return SCHEMA_ALREADY_EXISTS;
case 15: return NEWER_SCHEMA_FOUND;
case 16: return SCHEMA_NOT_FOUND;
case 17: return SCHEMA_NOT_IN_REGION;
case 18: return TABLES_EXIST_ON_SCHEMA;
case 19: return UNALLOWED_SCHEMA_MUTATION;
case 20: return AUTO_PARTITION_SEQUENCE_NOT_FOUND;
case 21: return CANNOT_COERCE_AUTO_PARTITION_ID;
case 22: return TOO_MANY_INDEXES;
case 23: return UNABLE_TO_CREATE_CHILD_LINK;
case 24: return UNABLE_TO_UPDATE_PARENT_TABLE;
case 25: return UNABLE_TO_DELETE_CHILD_LINK;
case 26: return UNABLE_TO_UPSERT_TASK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MutationCode findValueByNumber(int number) {
return MutationCode.valueOf(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 org.apache.phoenix.coprocessor.generated.MetaDataProtos.getDescriptor().getEnumTypes().get(0);
}
private static final MutationCode[] VALUES = values();
public static MutationCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private MutationCode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:MutationCode)
}
public interface SharedTableStateOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes tenantId = 1;
/**
* optional bytes tenantId = 1;
*/
boolean hasTenantId();
/**
* optional bytes tenantId = 1;
*/
com.google.protobuf.ByteString getTenantId();
// required bytes schemaName = 2;
/**
* required bytes schemaName = 2;
*/
boolean hasSchemaName();
/**
* required bytes schemaName = 2;
*/
com.google.protobuf.ByteString getSchemaName();
// required bytes tableName = 3;
/**
* required bytes tableName = 3;
*/
boolean hasTableName();
/**
* required bytes tableName = 3;
*/
com.google.protobuf.ByteString getTableName();
// repeated .PColumn columns = 4;
/**
* repeated .PColumn columns = 4;
*/
java.util.List
getColumnsList();
/**
* repeated .PColumn columns = 4;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index);
/**
* repeated .PColumn columns = 4;
*/
int getColumnsCount();
/**
* repeated .PColumn columns = 4;
*/
java.util.List extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .PColumn columns = 4;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder getColumnsOrBuilder(
int index);
// repeated bytes physicalNames = 5;
/**
* repeated bytes physicalNames = 5;
*/
java.util.List getPhysicalNamesList();
/**
* repeated bytes physicalNames = 5;
*/
int getPhysicalNamesCount();
/**
* repeated bytes physicalNames = 5;
*/
com.google.protobuf.ByteString getPhysicalNames(int index);
// required int64 viewIndexId = 6;
/**
* required int64 viewIndexId = 6;
*/
boolean hasViewIndexId();
/**
* required int64 viewIndexId = 6;
*/
long getViewIndexId();
// optional int32 viewIndexIdType = 7 [default = 5];
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
boolean hasViewIndexIdType();
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
int getViewIndexIdType();
}
/**
* Protobuf type {@code SharedTableState}
*/
public static final class SharedTableState extends
com.google.protobuf.GeneratedMessage
implements SharedTableStateOrBuilder {
// Use SharedTableState.newBuilder() to construct.
private SharedTableState(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SharedTableState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SharedTableState defaultInstance;
public static SharedTableState getDefaultInstance() {
return defaultInstance;
}
public SharedTableState getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SharedTableState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
tenantId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
schemaName_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
tableName_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
columns_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
columns_.add(input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
physicalNames_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
physicalNames_.add(input.readBytes());
break;
}
case 48: {
bitField0_ |= 0x00000008;
viewIndexId_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000010;
viewIndexIdType_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
physicalNames_ = java.util.Collections.unmodifiableList(physicalNames_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_SharedTableState_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_SharedTableState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SharedTableState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SharedTableState(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes tenantId = 1;
public static final int TENANTID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tenantId_;
/**
* optional bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
// required bytes schemaName = 2;
public static final int SCHEMANAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString schemaName_;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
// required bytes tableName = 3;
public static final int TABLENAME_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString tableName_;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
// repeated .PColumn columns = 4;
public static final int COLUMNS_FIELD_NUMBER = 4;
private java.util.List columns_;
/**
* repeated .PColumn columns = 4;
*/
public java.util.List getColumnsList() {
return columns_;
}
/**
* repeated .PColumn columns = 4;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
* repeated .PColumn columns = 4;
*/
public int getColumnsCount() {
return columns_.size();
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index) {
return columns_.get(index);
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder getColumnsOrBuilder(
int index) {
return columns_.get(index);
}
// repeated bytes physicalNames = 5;
public static final int PHYSICALNAMES_FIELD_NUMBER = 5;
private java.util.List physicalNames_;
/**
* repeated bytes physicalNames = 5;
*/
public java.util.List
getPhysicalNamesList() {
return physicalNames_;
}
/**
* repeated bytes physicalNames = 5;
*/
public int getPhysicalNamesCount() {
return physicalNames_.size();
}
/**
* repeated bytes physicalNames = 5;
*/
public com.google.protobuf.ByteString getPhysicalNames(int index) {
return physicalNames_.get(index);
}
// required int64 viewIndexId = 6;
public static final int VIEWINDEXID_FIELD_NUMBER = 6;
private long viewIndexId_;
/**
* required int64 viewIndexId = 6;
*/
public boolean hasViewIndexId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 viewIndexId = 6;
*/
public long getViewIndexId() {
return viewIndexId_;
}
// optional int32 viewIndexIdType = 7 [default = 5];
public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 7;
private int viewIndexIdType_;
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public boolean hasViewIndexIdType() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public int getViewIndexIdType() {
return viewIndexIdType_;
}
private void initFields() {
tenantId_ = com.google.protobuf.ByteString.EMPTY;
schemaName_ = com.google.protobuf.ByteString.EMPTY;
tableName_ = com.google.protobuf.ByteString.EMPTY;
columns_ = java.util.Collections.emptyList();
physicalNames_ = java.util.Collections.emptyList();
viewIndexId_ = 0L;
viewIndexIdType_ = 5;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTableName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasViewIndexId()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getColumnsCount(); i++) {
if (!getColumns(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, tableName_);
}
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(4, columns_.get(i));
}
for (int i = 0; i < physicalNames_.size(); i++) {
output.writeBytes(5, physicalNames_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(6, viewIndexId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(7, viewIndexIdType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, tableName_);
}
for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, columns_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < physicalNames_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(physicalNames_.get(i));
}
size += dataSize;
size += 1 * getPhysicalNamesList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, viewIndexId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, viewIndexIdType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState) obj;
boolean result = true;
result = result && (hasTenantId() == other.hasTenantId());
if (hasTenantId()) {
result = result && getTenantId()
.equals(other.getTenantId());
}
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasTableName() == other.hasTableName());
if (hasTableName()) {
result = result && getTableName()
.equals(other.getTableName());
}
result = result && getColumnsList()
.equals(other.getColumnsList());
result = result && getPhysicalNamesList()
.equals(other.getPhysicalNamesList());
result = result && (hasViewIndexId() == other.hasViewIndexId());
if (hasViewIndexId()) {
result = result && (getViewIndexId()
== other.getViewIndexId());
}
result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
if (hasViewIndexIdType()) {
result = result && (getViewIndexIdType()
== other.getViewIndexIdType());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTenantId()) {
hash = (37 * hash) + TENANTID_FIELD_NUMBER;
hash = (53 * hash) + getTenantId().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLENAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
if (getPhysicalNamesCount() > 0) {
hash = (37 * hash) + PHYSICALNAMES_FIELD_NUMBER;
hash = (53 * hash) + getPhysicalNamesList().hashCode();
}
if (hasViewIndexId()) {
hash = (37 * hash) + VIEWINDEXID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getViewIndexId());
}
if (hasViewIndexIdType()) {
hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
hash = (53 * hash) + getViewIndexIdType();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SharedTableState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_SharedTableState_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_SharedTableState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getColumnsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tenantId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
tableName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
columnsBuilder_.clear();
}
physicalNames_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
viewIndexId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
viewIndexIdType_ = 5;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_SharedTableState_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tenantId_ = tenantId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
physicalNames_ = java.util.Collections.unmodifiableList(physicalNames_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.physicalNames_ = physicalNames_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000008;
}
result.viewIndexId_ = viewIndexId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000010;
}
result.viewIndexIdType_ = viewIndexIdType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance()) return this;
if (other.hasTenantId()) {
setTenantId(other.getTenantId());
}
if (other.hasSchemaName()) {
setSchemaName(other.getSchemaName());
}
if (other.hasTableName()) {
setTableName(other.getTableName());
}
if (columnsBuilder_ == null) {
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
} else {
if (!other.columns_.isEmpty()) {
if (columnsBuilder_.isEmpty()) {
columnsBuilder_.dispose();
columnsBuilder_ = null;
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000008);
columnsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
if (!other.physicalNames_.isEmpty()) {
if (physicalNames_.isEmpty()) {
physicalNames_ = other.physicalNames_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePhysicalNamesIsMutable();
physicalNames_.addAll(other.physicalNames_);
}
onChanged();
}
if (other.hasViewIndexId()) {
setViewIndexId(other.getViewIndexId());
}
if (other.hasViewIndexIdType()) {
setViewIndexIdType(other.getViewIndexIdType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSchemaName()) {
return false;
}
if (!hasTableName()) {
return false;
}
if (!hasViewIndexId()) {
return false;
}
for (int i = 0; i < getColumnsCount(); i++) {
if (!getColumns(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes tenantId = 1;
private com.google.protobuf.ByteString tenantId_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
/**
* optional bytes tenantId = 1;
*/
public Builder setTenantId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tenantId_ = value;
onChanged();
return this;
}
/**
* optional bytes tenantId = 1;
*/
public Builder clearTenantId() {
bitField0_ = (bitField0_ & ~0x00000001);
tenantId_ = getDefaultInstance().getTenantId();
onChanged();
return this;
}
// required bytes schemaName = 2;
private com.google.protobuf.ByteString schemaName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
/**
* required bytes schemaName = 2;
*/
public Builder setSchemaName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* required bytes schemaName = 2;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
// required bytes tableName = 3;
private com.google.protobuf.ByteString tableName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
/**
* required bytes tableName = 3;
*/
public Builder setTableName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
* required bytes tableName = 3;
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
// repeated .PColumn columns = 4;
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder> columnsBuilder_;
/**
* repeated .PColumn columns = 4;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
* repeated .PColumn columns = 4;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
* repeated .PColumn columns = 4;
*/
public Builder setColumns(
int index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
} else {
columnsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder setColumns(
int index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.set(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder addColumns(org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
} else {
columnsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder addColumns(
int index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(index, value);
onChanged();
} else {
columnsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder addColumns(
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder addColumns(
int index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder addAllColumns(
java.lang.Iterable extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
super.addAll(values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .PColumn columns = 4;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder>
getColumnsOrBuilderList() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columns_);
}
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.getDefaultInstance());
}
/**
* repeated .PColumn columns = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.getDefaultInstance());
}
/**
* repeated .PColumn columns = 4;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder>(
columns_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
// repeated bytes physicalNames = 5;
private java.util.List physicalNames_ = java.util.Collections.emptyList();
private void ensurePhysicalNamesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
physicalNames_ = new java.util.ArrayList(physicalNames_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated bytes physicalNames = 5;
*/
public java.util.List
getPhysicalNamesList() {
return java.util.Collections.unmodifiableList(physicalNames_);
}
/**
* repeated bytes physicalNames = 5;
*/
public int getPhysicalNamesCount() {
return physicalNames_.size();
}
/**
* repeated bytes physicalNames = 5;
*/
public com.google.protobuf.ByteString getPhysicalNames(int index) {
return physicalNames_.get(index);
}
/**
* repeated bytes physicalNames = 5;
*/
public Builder setPhysicalNames(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePhysicalNamesIsMutable();
physicalNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes physicalNames = 5;
*/
public Builder addPhysicalNames(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePhysicalNamesIsMutable();
physicalNames_.add(value);
onChanged();
return this;
}
/**
* repeated bytes physicalNames = 5;
*/
public Builder addAllPhysicalNames(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePhysicalNamesIsMutable();
super.addAll(values, physicalNames_);
onChanged();
return this;
}
/**
* repeated bytes physicalNames = 5;
*/
public Builder clearPhysicalNames() {
physicalNames_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
// required int64 viewIndexId = 6;
private long viewIndexId_ ;
/**
* required int64 viewIndexId = 6;
*/
public boolean hasViewIndexId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required int64 viewIndexId = 6;
*/
public long getViewIndexId() {
return viewIndexId_;
}
/**
* required int64 viewIndexId = 6;
*/
public Builder setViewIndexId(long value) {
bitField0_ |= 0x00000020;
viewIndexId_ = value;
onChanged();
return this;
}
/**
* required int64 viewIndexId = 6;
*/
public Builder clearViewIndexId() {
bitField0_ = (bitField0_ & ~0x00000020);
viewIndexId_ = 0L;
onChanged();
return this;
}
// optional int32 viewIndexIdType = 7 [default = 5];
private int viewIndexIdType_ = 5;
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public boolean hasViewIndexIdType() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public int getViewIndexIdType() {
return viewIndexIdType_;
}
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public Builder setViewIndexIdType(int value) {
bitField0_ |= 0x00000040;
viewIndexIdType_ = value;
onChanged();
return this;
}
/**
* optional int32 viewIndexIdType = 7 [default = 5];
*/
public Builder clearViewIndexIdType() {
bitField0_ = (bitField0_ & ~0x00000040);
viewIndexIdType_ = 5;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:SharedTableState)
}
static {
defaultInstance = new SharedTableState(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SharedTableState)
}
public interface MetaDataResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .MutationCode returnCode = 1;
/**
* optional .MutationCode returnCode = 1;
*/
boolean hasReturnCode();
/**
* optional .MutationCode returnCode = 1;
*/
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode getReturnCode();
// optional int64 mutationTime = 2;
/**
* optional int64 mutationTime = 2;
*/
boolean hasMutationTime();
/**
* optional int64 mutationTime = 2;
*/
long getMutationTime();
// optional .PTable table = 3;
/**
* optional .PTable table = 3;
*/
boolean hasTable();
/**
* optional .PTable table = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable();
/**
* optional .PTable table = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getTableOrBuilder();
// repeated bytes tablesToDelete = 4;
/**
* repeated bytes tablesToDelete = 4;
*/
java.util.List getTablesToDeleteList();
/**
* repeated bytes tablesToDelete = 4;
*/
int getTablesToDeleteCount();
/**
* repeated bytes tablesToDelete = 4;
*/
com.google.protobuf.ByteString getTablesToDelete(int index);
// optional bytes columnName = 5;
/**
* optional bytes columnName = 5;
*/
boolean hasColumnName();
/**
* optional bytes columnName = 5;
*/
com.google.protobuf.ByteString getColumnName();
// optional bytes familyName = 6;
/**
* optional bytes familyName = 6;
*/
boolean hasFamilyName();
/**
* optional bytes familyName = 6;
*/
com.google.protobuf.ByteString getFamilyName();
// optional bytes functionName = 7;
/**
* optional bytes functionName = 7;
*/
boolean hasFunctionName();
/**
* optional bytes functionName = 7;
*/
com.google.protobuf.ByteString getFunctionName();
// repeated .PFunction function = 8;
/**
* repeated .PFunction function = 8;
*/
java.util.List
getFunctionList();
/**
* repeated .PFunction function = 8;
*/
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index);
/**
* repeated .PFunction function = 8;
*/
int getFunctionCount();
/**
* repeated .PFunction function = 8;
*/
java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder>
getFunctionOrBuilderList();
/**
* repeated .PFunction function = 8;
*/
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder getFunctionOrBuilder(
int index);
// repeated .SharedTableState sharedTablesToDelete = 9;
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
java.util.List
getSharedTablesToDeleteList();
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index);
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
int getSharedTablesToDeleteCount();
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
java.util.List extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder>
getSharedTablesToDeleteOrBuilderList();
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder getSharedTablesToDeleteOrBuilder(
int index);
// optional .PSchema schema = 10;
/**
* optional .PSchema schema = 10;
*/
boolean hasSchema();
/**
* optional .PSchema schema = 10;
*/
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema();
/**
* optional .PSchema schema = 10;
*/
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder getSchemaOrBuilder();
// optional int64 autoPartitionNum = 11;
/**
* optional int64 autoPartitionNum = 11;
*/
boolean hasAutoPartitionNum();
/**
* optional int64 autoPartitionNum = 11;
*/
long getAutoPartitionNum();
// optional int64 viewIndexId = 12;
/**
* optional int64 viewIndexId = 12;
*/
boolean hasViewIndexId();
/**
* optional int64 viewIndexId = 12;
*/
long getViewIndexId();
// optional int32 viewIndexIdType = 13 [default = 5];
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
boolean hasViewIndexIdType();
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
int getViewIndexIdType();
}
/**
* Protobuf type {@code MetaDataResponse}
*/
public static final class MetaDataResponse extends
com.google.protobuf.GeneratedMessage
implements MetaDataResponseOrBuilder {
// Use MetaDataResponse.newBuilder() to construct.
private MetaDataResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MetaDataResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MetaDataResponse defaultInstance;
public static MetaDataResponse getDefaultInstance() {
return defaultInstance;
}
public MetaDataResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MetaDataResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode value = org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
returnCode_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
mutationTime_ = input.readInt64();
break;
}
case 26: {
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = table_.toBuilder();
}
table_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(table_);
table_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
tablesToDelete_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
tablesToDelete_.add(input.readBytes());
break;
}
case 42: {
bitField0_ |= 0x00000008;
columnName_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000010;
familyName_ = input.readBytes();
break;
}
case 58: {
bitField0_ |= 0x00000020;
functionName_ = input.readBytes();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
function_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
function_.add(input.readMessage(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.PARSER, extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
sharedTablesToDelete_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
sharedTablesToDelete_.add(input.readMessage(org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.PARSER, extensionRegistry));
break;
}
case 82: {
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = schema_.toBuilder();
}
schema_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schema_);
schema_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 88: {
bitField0_ |= 0x00000080;
autoPartitionNum_ = input.readInt64();
break;
}
case 96: {
bitField0_ |= 0x00000100;
viewIndexId_ = input.readInt64();
break;
}
case 104: {
bitField0_ |= 0x00000200;
viewIndexIdType_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
tablesToDelete_ = java.util.Collections.unmodifiableList(tablesToDelete_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
function_ = java.util.Collections.unmodifiableList(function_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
sharedTablesToDelete_ = java.util.Collections.unmodifiableList(sharedTablesToDelete_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_MetaDataResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_MetaDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public MetaDataResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MetaDataResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .MutationCode returnCode = 1;
public static final int RETURNCODE_FIELD_NUMBER = 1;
private org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode returnCode_;
/**
* optional .MutationCode returnCode = 1;
*/
public boolean hasReturnCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .MutationCode returnCode = 1;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode getReturnCode() {
return returnCode_;
}
// optional int64 mutationTime = 2;
public static final int MUTATIONTIME_FIELD_NUMBER = 2;
private long mutationTime_;
/**
* optional int64 mutationTime = 2;
*/
public boolean hasMutationTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 mutationTime = 2;
*/
public long getMutationTime() {
return mutationTime_;
}
// optional .PTable table = 3;
public static final int TABLE_FIELD_NUMBER = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable table_;
/**
* optional .PTable table = 3;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .PTable table = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable() {
return table_;
}
/**
* optional .PTable table = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getTableOrBuilder() {
return table_;
}
// repeated bytes tablesToDelete = 4;
public static final int TABLESTODELETE_FIELD_NUMBER = 4;
private java.util.List tablesToDelete_;
/**
* repeated bytes tablesToDelete = 4;
*/
public java.util.List
getTablesToDeleteList() {
return tablesToDelete_;
}
/**
* repeated bytes tablesToDelete = 4;
*/
public int getTablesToDeleteCount() {
return tablesToDelete_.size();
}
/**
* repeated bytes tablesToDelete = 4;
*/
public com.google.protobuf.ByteString getTablesToDelete(int index) {
return tablesToDelete_.get(index);
}
// optional bytes columnName = 5;
public static final int COLUMNNAME_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString columnName_;
/**
* optional bytes columnName = 5;
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes columnName = 5;
*/
public com.google.protobuf.ByteString getColumnName() {
return columnName_;
}
// optional bytes familyName = 6;
public static final int FAMILYNAME_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString familyName_;
/**
* optional bytes familyName = 6;
*/
public boolean hasFamilyName() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes familyName = 6;
*/
public com.google.protobuf.ByteString getFamilyName() {
return familyName_;
}
// optional bytes functionName = 7;
public static final int FUNCTIONNAME_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString functionName_;
/**
* optional bytes functionName = 7;
*/
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bytes functionName = 7;
*/
public com.google.protobuf.ByteString getFunctionName() {
return functionName_;
}
// repeated .PFunction function = 8;
public static final int FUNCTION_FIELD_NUMBER = 8;
private java.util.List function_;
/**
* repeated .PFunction function = 8;
*/
public java.util.List getFunctionList() {
return function_;
}
/**
* repeated .PFunction function = 8;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder>
getFunctionOrBuilderList() {
return function_;
}
/**
* repeated .PFunction function = 8;
*/
public int getFunctionCount() {
return function_.size();
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index) {
return function_.get(index);
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder getFunctionOrBuilder(
int index) {
return function_.get(index);
}
// repeated .SharedTableState sharedTablesToDelete = 9;
public static final int SHAREDTABLESTODELETE_FIELD_NUMBER = 9;
private java.util.List sharedTablesToDelete_;
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public java.util.List getSharedTablesToDeleteList() {
return sharedTablesToDelete_;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder>
getSharedTablesToDeleteOrBuilderList() {
return sharedTablesToDelete_;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public int getSharedTablesToDeleteCount() {
return sharedTablesToDelete_.size();
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index) {
return sharedTablesToDelete_.get(index);
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder getSharedTablesToDeleteOrBuilder(
int index) {
return sharedTablesToDelete_.get(index);
}
// optional .PSchema schema = 10;
public static final int SCHEMA_FIELD_NUMBER = 10;
private org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema schema_;
/**
* optional .PSchema schema = 10;
*/
public boolean hasSchema() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .PSchema schema = 10;
*/
public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema() {
return schema_;
}
/**
* optional .PSchema schema = 10;
*/
public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder getSchemaOrBuilder() {
return schema_;
}
// optional int64 autoPartitionNum = 11;
public static final int AUTOPARTITIONNUM_FIELD_NUMBER = 11;
private long autoPartitionNum_;
/**
* optional int64 autoPartitionNum = 11;
*/
public boolean hasAutoPartitionNum() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int64 autoPartitionNum = 11;
*/
public long getAutoPartitionNum() {
return autoPartitionNum_;
}
// optional int64 viewIndexId = 12;
public static final int VIEWINDEXID_FIELD_NUMBER = 12;
private long viewIndexId_;
/**
* optional int64 viewIndexId = 12;
*/
public boolean hasViewIndexId() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 viewIndexId = 12;
*/
public long getViewIndexId() {
return viewIndexId_;
}
// optional int32 viewIndexIdType = 13 [default = 5];
public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 13;
private int viewIndexIdType_;
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public boolean hasViewIndexIdType() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public int getViewIndexIdType() {
return viewIndexIdType_;
}
private void initFields() {
returnCode_ = org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode.TABLE_ALREADY_EXISTS;
mutationTime_ = 0L;
table_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
tablesToDelete_ = java.util.Collections.emptyList();
columnName_ = com.google.protobuf.ByteString.EMPTY;
familyName_ = com.google.protobuf.ByteString.EMPTY;
functionName_ = com.google.protobuf.ByteString.EMPTY;
function_ = java.util.Collections.emptyList();
sharedTablesToDelete_ = java.util.Collections.emptyList();
schema_ = org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance();
autoPartitionNum_ = 0L;
viewIndexId_ = 0L;
viewIndexIdType_ = 5;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasTable()) {
if (!getTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFunctionCount(); i++) {
if (!getFunction(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getSharedTablesToDeleteCount(); i++) {
if (!getSharedTablesToDelete(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSchema()) {
if (!getSchema().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, returnCode_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, mutationTime_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, table_);
}
for (int i = 0; i < tablesToDelete_.size(); i++) {
output.writeBytes(4, tablesToDelete_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(5, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(6, familyName_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(7, functionName_);
}
for (int i = 0; i < function_.size(); i++) {
output.writeMessage(8, function_.get(i));
}
for (int i = 0; i < sharedTablesToDelete_.size(); i++) {
output.writeMessage(9, sharedTablesToDelete_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(10, schema_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt64(11, autoPartitionNum_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(12, viewIndexId_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(13, viewIndexIdType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, returnCode_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, mutationTime_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, table_);
}
{
int dataSize = 0;
for (int i = 0; i < tablesToDelete_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tablesToDelete_.get(i));
}
size += dataSize;
size += 1 * getTablesToDeleteList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, familyName_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, functionName_);
}
for (int i = 0; i < function_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, function_.get(i));
}
for (int i = 0; i < sharedTablesToDelete_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, sharedTablesToDelete_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, schema_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, autoPartitionNum_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, viewIndexId_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, viewIndexIdType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) obj;
boolean result = true;
result = result && (hasReturnCode() == other.hasReturnCode());
if (hasReturnCode()) {
result = result &&
(getReturnCode() == other.getReturnCode());
}
result = result && (hasMutationTime() == other.hasMutationTime());
if (hasMutationTime()) {
result = result && (getMutationTime()
== other.getMutationTime());
}
result = result && (hasTable() == other.hasTable());
if (hasTable()) {
result = result && getTable()
.equals(other.getTable());
}
result = result && getTablesToDeleteList()
.equals(other.getTablesToDeleteList());
result = result && (hasColumnName() == other.hasColumnName());
if (hasColumnName()) {
result = result && getColumnName()
.equals(other.getColumnName());
}
result = result && (hasFamilyName() == other.hasFamilyName());
if (hasFamilyName()) {
result = result && getFamilyName()
.equals(other.getFamilyName());
}
result = result && (hasFunctionName() == other.hasFunctionName());
if (hasFunctionName()) {
result = result && getFunctionName()
.equals(other.getFunctionName());
}
result = result && getFunctionList()
.equals(other.getFunctionList());
result = result && getSharedTablesToDeleteList()
.equals(other.getSharedTablesToDeleteList());
result = result && (hasSchema() == other.hasSchema());
if (hasSchema()) {
result = result && getSchema()
.equals(other.getSchema());
}
result = result && (hasAutoPartitionNum() == other.hasAutoPartitionNum());
if (hasAutoPartitionNum()) {
result = result && (getAutoPartitionNum()
== other.getAutoPartitionNum());
}
result = result && (hasViewIndexId() == other.hasViewIndexId());
if (hasViewIndexId()) {
result = result && (getViewIndexId()
== other.getViewIndexId());
}
result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
if (hasViewIndexIdType()) {
result = result && (getViewIndexIdType()
== other.getViewIndexIdType());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasReturnCode()) {
hash = (37 * hash) + RETURNCODE_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getReturnCode());
}
if (hasMutationTime()) {
hash = (37 * hash) + MUTATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getMutationTime());
}
if (hasTable()) {
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
}
if (getTablesToDeleteCount() > 0) {
hash = (37 * hash) + TABLESTODELETE_FIELD_NUMBER;
hash = (53 * hash) + getTablesToDeleteList().hashCode();
}
if (hasColumnName()) {
hash = (37 * hash) + COLUMNNAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
}
if (hasFamilyName()) {
hash = (37 * hash) + FAMILYNAME_FIELD_NUMBER;
hash = (53 * hash) + getFamilyName().hashCode();
}
if (hasFunctionName()) {
hash = (37 * hash) + FUNCTIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
}
if (getFunctionCount() > 0) {
hash = (37 * hash) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getFunctionList().hashCode();
}
if (getSharedTablesToDeleteCount() > 0) {
hash = (37 * hash) + SHAREDTABLESTODELETE_FIELD_NUMBER;
hash = (53 * hash) + getSharedTablesToDeleteList().hashCode();
}
if (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
if (hasAutoPartitionNum()) {
hash = (37 * hash) + AUTOPARTITIONNUM_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getAutoPartitionNum());
}
if (hasViewIndexId()) {
hash = (37 * hash) + VIEWINDEXID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getViewIndexId());
}
if (hasViewIndexIdType()) {
hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
hash = (53 * hash) + getViewIndexIdType();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code MetaDataResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_MetaDataResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_MetaDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTableFieldBuilder();
getFunctionFieldBuilder();
getSharedTablesToDeleteFieldBuilder();
getSchemaFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
returnCode_ = org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode.TABLE_ALREADY_EXISTS;
bitField0_ = (bitField0_ & ~0x00000001);
mutationTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
if (tableBuilder_ == null) {
table_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
} else {
tableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
tablesToDelete_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
columnName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
familyName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
functionName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
if (functionBuilder_ == null) {
function_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
functionBuilder_.clear();
}
if (sharedTablesToDeleteBuilder_ == null) {
sharedTablesToDelete_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
sharedTablesToDeleteBuilder_.clear();
}
if (schemaBuilder_ == null) {
schema_ = org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance();
} else {
schemaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
autoPartitionNum_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
viewIndexId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
viewIndexIdType_ = 5;
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_MetaDataResponse_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.returnCode_ = returnCode_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mutationTime_ = mutationTime_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tableBuilder_ == null) {
result.table_ = table_;
} else {
result.table_ = tableBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
tablesToDelete_ = java.util.Collections.unmodifiableList(tablesToDelete_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.tablesToDelete_ = tablesToDelete_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.columnName_ = columnName_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.familyName_ = familyName_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.functionName_ = functionName_;
if (functionBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
function_ = java.util.Collections.unmodifiableList(function_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.function_ = function_;
} else {
result.function_ = functionBuilder_.build();
}
if (sharedTablesToDeleteBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
sharedTablesToDelete_ = java.util.Collections.unmodifiableList(sharedTablesToDelete_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.sharedTablesToDelete_ = sharedTablesToDelete_;
} else {
result.sharedTablesToDelete_ = sharedTablesToDeleteBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000040;
}
if (schemaBuilder_ == null) {
result.schema_ = schema_;
} else {
result.schema_ = schemaBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000080;
}
result.autoPartitionNum_ = autoPartitionNum_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000100;
}
result.viewIndexId_ = viewIndexId_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000200;
}
result.viewIndexIdType_ = viewIndexIdType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()) return this;
if (other.hasReturnCode()) {
setReturnCode(other.getReturnCode());
}
if (other.hasMutationTime()) {
setMutationTime(other.getMutationTime());
}
if (other.hasTable()) {
mergeTable(other.getTable());
}
if (!other.tablesToDelete_.isEmpty()) {
if (tablesToDelete_.isEmpty()) {
tablesToDelete_ = other.tablesToDelete_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTablesToDeleteIsMutable();
tablesToDelete_.addAll(other.tablesToDelete_);
}
onChanged();
}
if (other.hasColumnName()) {
setColumnName(other.getColumnName());
}
if (other.hasFamilyName()) {
setFamilyName(other.getFamilyName());
}
if (other.hasFunctionName()) {
setFunctionName(other.getFunctionName());
}
if (functionBuilder_ == null) {
if (!other.function_.isEmpty()) {
if (function_.isEmpty()) {
function_ = other.function_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureFunctionIsMutable();
function_.addAll(other.function_);
}
onChanged();
}
} else {
if (!other.function_.isEmpty()) {
if (functionBuilder_.isEmpty()) {
functionBuilder_.dispose();
functionBuilder_ = null;
function_ = other.function_;
bitField0_ = (bitField0_ & ~0x00000080);
functionBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFunctionFieldBuilder() : null;
} else {
functionBuilder_.addAllMessages(other.function_);
}
}
}
if (sharedTablesToDeleteBuilder_ == null) {
if (!other.sharedTablesToDelete_.isEmpty()) {
if (sharedTablesToDelete_.isEmpty()) {
sharedTablesToDelete_ = other.sharedTablesToDelete_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.addAll(other.sharedTablesToDelete_);
}
onChanged();
}
} else {
if (!other.sharedTablesToDelete_.isEmpty()) {
if (sharedTablesToDeleteBuilder_.isEmpty()) {
sharedTablesToDeleteBuilder_.dispose();
sharedTablesToDeleteBuilder_ = null;
sharedTablesToDelete_ = other.sharedTablesToDelete_;
bitField0_ = (bitField0_ & ~0x00000100);
sharedTablesToDeleteBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSharedTablesToDeleteFieldBuilder() : null;
} else {
sharedTablesToDeleteBuilder_.addAllMessages(other.sharedTablesToDelete_);
}
}
}
if (other.hasSchema()) {
mergeSchema(other.getSchema());
}
if (other.hasAutoPartitionNum()) {
setAutoPartitionNum(other.getAutoPartitionNum());
}
if (other.hasViewIndexId()) {
setViewIndexId(other.getViewIndexId());
}
if (other.hasViewIndexIdType()) {
setViewIndexIdType(other.getViewIndexIdType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasTable()) {
if (!getTable().isInitialized()) {
return false;
}
}
for (int i = 0; i < getFunctionCount(); i++) {
if (!getFunction(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getSharedTablesToDeleteCount(); i++) {
if (!getSharedTablesToDelete(i).isInitialized()) {
return false;
}
}
if (hasSchema()) {
if (!getSchema().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .MutationCode returnCode = 1;
private org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode returnCode_ = org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode.TABLE_ALREADY_EXISTS;
/**
* optional .MutationCode returnCode = 1;
*/
public boolean hasReturnCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .MutationCode returnCode = 1;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode getReturnCode() {
return returnCode_;
}
/**
* optional .MutationCode returnCode = 1;
*/
public Builder setReturnCode(org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
returnCode_ = value;
onChanged();
return this;
}
/**
* optional .MutationCode returnCode = 1;
*/
public Builder clearReturnCode() {
bitField0_ = (bitField0_ & ~0x00000001);
returnCode_ = org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode.TABLE_ALREADY_EXISTS;
onChanged();
return this;
}
// optional int64 mutationTime = 2;
private long mutationTime_ ;
/**
* optional int64 mutationTime = 2;
*/
public boolean hasMutationTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 mutationTime = 2;
*/
public long getMutationTime() {
return mutationTime_;
}
/**
* optional int64 mutationTime = 2;
*/
public Builder setMutationTime(long value) {
bitField0_ |= 0x00000002;
mutationTime_ = value;
onChanged();
return this;
}
/**
* optional int64 mutationTime = 2;
*/
public Builder clearMutationTime() {
bitField0_ = (bitField0_ & ~0x00000002);
mutationTime_ = 0L;
onChanged();
return this;
}
// optional .PTable table = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable table_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder> tableBuilder_;
/**
* optional .PTable table = 3;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .PTable table = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable() {
if (tableBuilder_ == null) {
return table_;
} else {
return tableBuilder_.getMessage();
}
}
/**
* optional .PTable table = 3;
*/
public Builder setTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (tableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
} else {
tableBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable table = 3;
*/
public Builder setTable(
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder builderForValue) {
if (tableBuilder_ == null) {
table_ = builderForValue.build();
onChanged();
} else {
tableBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable table = 3;
*/
public Builder mergeTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (tableBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
table_ != org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance()) {
table_ =
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.newBuilder(table_).mergeFrom(value).buildPartial();
} else {
table_ = value;
}
onChanged();
} else {
tableBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable table = 3;
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
table_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
onChanged();
} else {
tableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .PTable table = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getTableBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTableFieldBuilder().getBuilder();
}
/**
* optional .PTable table = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
return tableBuilder_.getMessageOrBuilder();
} else {
return table_;
}
}
/**
* optional .PTable table = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>
getTableFieldBuilder() {
if (tableBuilder_ == null) {
tableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>(
table_,
getParentForChildren(),
isClean());
table_ = null;
}
return tableBuilder_;
}
// repeated bytes tablesToDelete = 4;
private java.util.List tablesToDelete_ = java.util.Collections.emptyList();
private void ensureTablesToDeleteIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
tablesToDelete_ = new java.util.ArrayList(tablesToDelete_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated bytes tablesToDelete = 4;
*/
public java.util.List
getTablesToDeleteList() {
return java.util.Collections.unmodifiableList(tablesToDelete_);
}
/**
* repeated bytes tablesToDelete = 4;
*/
public int getTablesToDeleteCount() {
return tablesToDelete_.size();
}
/**
* repeated bytes tablesToDelete = 4;
*/
public com.google.protobuf.ByteString getTablesToDelete(int index) {
return tablesToDelete_.get(index);
}
/**
* repeated bytes tablesToDelete = 4;
*/
public Builder setTablesToDelete(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesToDeleteIsMutable();
tablesToDelete_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tablesToDelete = 4;
*/
public Builder addTablesToDelete(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesToDeleteIsMutable();
tablesToDelete_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tablesToDelete = 4;
*/
public Builder addAllTablesToDelete(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTablesToDeleteIsMutable();
super.addAll(values, tablesToDelete_);
onChanged();
return this;
}
/**
* repeated bytes tablesToDelete = 4;
*/
public Builder clearTablesToDelete() {
tablesToDelete_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
// optional bytes columnName = 5;
private com.google.protobuf.ByteString columnName_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes columnName = 5;
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes columnName = 5;
*/
public com.google.protobuf.ByteString getColumnName() {
return columnName_;
}
/**
* optional bytes columnName = 5;
*/
public Builder setColumnName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
columnName_ = value;
onChanged();
return this;
}
/**
* optional bytes columnName = 5;
*/
public Builder clearColumnName() {
bitField0_ = (bitField0_ & ~0x00000010);
columnName_ = getDefaultInstance().getColumnName();
onChanged();
return this;
}
// optional bytes familyName = 6;
private com.google.protobuf.ByteString familyName_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes familyName = 6;
*/
public boolean hasFamilyName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bytes familyName = 6;
*/
public com.google.protobuf.ByteString getFamilyName() {
return familyName_;
}
/**
* optional bytes familyName = 6;
*/
public Builder setFamilyName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
familyName_ = value;
onChanged();
return this;
}
/**
* optional bytes familyName = 6;
*/
public Builder clearFamilyName() {
bitField0_ = (bitField0_ & ~0x00000020);
familyName_ = getDefaultInstance().getFamilyName();
onChanged();
return this;
}
// optional bytes functionName = 7;
private com.google.protobuf.ByteString functionName_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes functionName = 7;
*/
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bytes functionName = 7;
*/
public com.google.protobuf.ByteString getFunctionName() {
return functionName_;
}
/**
* optional bytes functionName = 7;
*/
public Builder setFunctionName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
functionName_ = value;
onChanged();
return this;
}
/**
* optional bytes functionName = 7;
*/
public Builder clearFunctionName() {
bitField0_ = (bitField0_ & ~0x00000040);
functionName_ = getDefaultInstance().getFunctionName();
onChanged();
return this;
}
// repeated .PFunction function = 8;
private java.util.List function_ =
java.util.Collections.emptyList();
private void ensureFunctionIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
function_ = new java.util.ArrayList(function_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder> functionBuilder_;
/**
* repeated .PFunction function = 8;
*/
public java.util.List getFunctionList() {
if (functionBuilder_ == null) {
return java.util.Collections.unmodifiableList(function_);
} else {
return functionBuilder_.getMessageList();
}
}
/**
* repeated .PFunction function = 8;
*/
public int getFunctionCount() {
if (functionBuilder_ == null) {
return function_.size();
} else {
return functionBuilder_.getCount();
}
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index) {
if (functionBuilder_ == null) {
return function_.get(index);
} else {
return functionBuilder_.getMessage(index);
}
}
/**
* repeated .PFunction function = 8;
*/
public Builder setFunction(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction value) {
if (functionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.set(index, value);
onChanged();
} else {
functionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder setFunction(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder builderForValue) {
if (functionBuilder_ == null) {
ensureFunctionIsMutable();
function_.set(index, builderForValue.build());
onChanged();
} else {
functionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder addFunction(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction value) {
if (functionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.add(value);
onChanged();
} else {
functionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder addFunction(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction value) {
if (functionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.add(index, value);
onChanged();
} else {
functionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder addFunction(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder builderForValue) {
if (functionBuilder_ == null) {
ensureFunctionIsMutable();
function_.add(builderForValue.build());
onChanged();
} else {
functionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder addFunction(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder builderForValue) {
if (functionBuilder_ == null) {
ensureFunctionIsMutable();
function_.add(index, builderForValue.build());
onChanged();
} else {
functionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder addAllFunction(
java.lang.Iterable extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> values) {
if (functionBuilder_ == null) {
ensureFunctionIsMutable();
super.addAll(values, function_);
onChanged();
} else {
functionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder clearFunction() {
if (functionBuilder_ == null) {
function_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
functionBuilder_.clear();
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public Builder removeFunction(int index) {
if (functionBuilder_ == null) {
ensureFunctionIsMutable();
function_.remove(index);
onChanged();
} else {
functionBuilder_.remove(index);
}
return this;
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder getFunctionBuilder(
int index) {
return getFunctionFieldBuilder().getBuilder(index);
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder getFunctionOrBuilder(
int index) {
if (functionBuilder_ == null) {
return function_.get(index); } else {
return functionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .PFunction function = 8;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder>
getFunctionOrBuilderList() {
if (functionBuilder_ != null) {
return functionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(function_);
}
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder addFunctionBuilder() {
return getFunctionFieldBuilder().addBuilder(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance());
}
/**
* repeated .PFunction function = 8;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder addFunctionBuilder(
int index) {
return getFunctionFieldBuilder().addBuilder(
index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance());
}
/**
* repeated .PFunction function = 8;
*/
public java.util.List
getFunctionBuilderList() {
return getFunctionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder>
getFunctionFieldBuilder() {
if (functionBuilder_ == null) {
functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder>(
function_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
function_ = null;
}
return functionBuilder_;
}
// repeated .SharedTableState sharedTablesToDelete = 9;
private java.util.List sharedTablesToDelete_ =
java.util.Collections.emptyList();
private void ensureSharedTablesToDeleteIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
sharedTablesToDelete_ = new java.util.ArrayList(sharedTablesToDelete_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder> sharedTablesToDeleteBuilder_;
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public java.util.List getSharedTablesToDeleteList() {
if (sharedTablesToDeleteBuilder_ == null) {
return java.util.Collections.unmodifiableList(sharedTablesToDelete_);
} else {
return sharedTablesToDeleteBuilder_.getMessageList();
}
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public int getSharedTablesToDeleteCount() {
if (sharedTablesToDeleteBuilder_ == null) {
return sharedTablesToDelete_.size();
} else {
return sharedTablesToDeleteBuilder_.getCount();
}
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index) {
if (sharedTablesToDeleteBuilder_ == null) {
return sharedTablesToDelete_.get(index);
} else {
return sharedTablesToDeleteBuilder_.getMessage(index);
}
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder setSharedTablesToDelete(
int index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState value) {
if (sharedTablesToDeleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.set(index, value);
onChanged();
} else {
sharedTablesToDeleteBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder setSharedTablesToDelete(
int index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder builderForValue) {
if (sharedTablesToDeleteBuilder_ == null) {
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.set(index, builderForValue.build());
onChanged();
} else {
sharedTablesToDeleteBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder addSharedTablesToDelete(org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState value) {
if (sharedTablesToDeleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.add(value);
onChanged();
} else {
sharedTablesToDeleteBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder addSharedTablesToDelete(
int index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState value) {
if (sharedTablesToDeleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.add(index, value);
onChanged();
} else {
sharedTablesToDeleteBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder addSharedTablesToDelete(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder builderForValue) {
if (sharedTablesToDeleteBuilder_ == null) {
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.add(builderForValue.build());
onChanged();
} else {
sharedTablesToDeleteBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder addSharedTablesToDelete(
int index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder builderForValue) {
if (sharedTablesToDeleteBuilder_ == null) {
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.add(index, builderForValue.build());
onChanged();
} else {
sharedTablesToDeleteBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder addAllSharedTablesToDelete(
java.lang.Iterable extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> values) {
if (sharedTablesToDeleteBuilder_ == null) {
ensureSharedTablesToDeleteIsMutable();
super.addAll(values, sharedTablesToDelete_);
onChanged();
} else {
sharedTablesToDeleteBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder clearSharedTablesToDelete() {
if (sharedTablesToDeleteBuilder_ == null) {
sharedTablesToDelete_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
sharedTablesToDeleteBuilder_.clear();
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public Builder removeSharedTablesToDelete(int index) {
if (sharedTablesToDeleteBuilder_ == null) {
ensureSharedTablesToDeleteIsMutable();
sharedTablesToDelete_.remove(index);
onChanged();
} else {
sharedTablesToDeleteBuilder_.remove(index);
}
return this;
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder getSharedTablesToDeleteBuilder(
int index) {
return getSharedTablesToDeleteFieldBuilder().getBuilder(index);
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder getSharedTablesToDeleteOrBuilder(
int index) {
if (sharedTablesToDeleteBuilder_ == null) {
return sharedTablesToDelete_.get(index); } else {
return sharedTablesToDeleteBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder>
getSharedTablesToDeleteOrBuilderList() {
if (sharedTablesToDeleteBuilder_ != null) {
return sharedTablesToDeleteBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sharedTablesToDelete_);
}
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder addSharedTablesToDeleteBuilder() {
return getSharedTablesToDeleteFieldBuilder().addBuilder(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance());
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder addSharedTablesToDeleteBuilder(
int index) {
return getSharedTablesToDeleteFieldBuilder().addBuilder(
index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance());
}
/**
* repeated .SharedTableState sharedTablesToDelete = 9;
*/
public java.util.List
getSharedTablesToDeleteBuilderList() {
return getSharedTablesToDeleteFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder>
getSharedTablesToDeleteFieldBuilder() {
if (sharedTablesToDeleteBuilder_ == null) {
sharedTablesToDeleteBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder>(
sharedTablesToDelete_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
sharedTablesToDelete_ = null;
}
return sharedTablesToDeleteBuilder_;
}
// optional .PSchema schema = 10;
private org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema schema_ = org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder> schemaBuilder_;
/**
* optional .PSchema schema = 10;
*/
public boolean hasSchema() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .PSchema schema = 10;
*/
public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema() {
if (schemaBuilder_ == null) {
return schema_;
} else {
return schemaBuilder_.getMessage();
}
}
/**
* optional .PSchema schema = 10;
*/
public Builder setSchema(org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema value) {
if (schemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schema_ = value;
onChanged();
} else {
schemaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .PSchema schema = 10;
*/
public Builder setSchema(
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder builderForValue) {
if (schemaBuilder_ == null) {
schema_ = builderForValue.build();
onChanged();
} else {
schemaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .PSchema schema = 10;
*/
public Builder mergeSchema(org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema value) {
if (schemaBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
schema_ != org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance()) {
schema_ =
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.newBuilder(schema_).mergeFrom(value).buildPartial();
} else {
schema_ = value;
}
onChanged();
} else {
schemaBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .PSchema schema = 10;
*/
public Builder clearSchema() {
if (schemaBuilder_ == null) {
schema_ = org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance();
onChanged();
} else {
schemaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .PSchema schema = 10;
*/
public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder getSchemaBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getSchemaFieldBuilder().getBuilder();
}
/**
* optional .PSchema schema = 10;
*/
public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder getSchemaOrBuilder() {
if (schemaBuilder_ != null) {
return schemaBuilder_.getMessageOrBuilder();
} else {
return schema_;
}
}
/**
* optional .PSchema schema = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder>
getSchemaFieldBuilder() {
if (schemaBuilder_ == null) {
schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder, org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder>(
schema_,
getParentForChildren(),
isClean());
schema_ = null;
}
return schemaBuilder_;
}
// optional int64 autoPartitionNum = 11;
private long autoPartitionNum_ ;
/**
* optional int64 autoPartitionNum = 11;
*/
public boolean hasAutoPartitionNum() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int64 autoPartitionNum = 11;
*/
public long getAutoPartitionNum() {
return autoPartitionNum_;
}
/**
* optional int64 autoPartitionNum = 11;
*/
public Builder setAutoPartitionNum(long value) {
bitField0_ |= 0x00000400;
autoPartitionNum_ = value;
onChanged();
return this;
}
/**
* optional int64 autoPartitionNum = 11;
*/
public Builder clearAutoPartitionNum() {
bitField0_ = (bitField0_ & ~0x00000400);
autoPartitionNum_ = 0L;
onChanged();
return this;
}
// optional int64 viewIndexId = 12;
private long viewIndexId_ ;
/**
* optional int64 viewIndexId = 12;
*/
public boolean hasViewIndexId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional int64 viewIndexId = 12;
*/
public long getViewIndexId() {
return viewIndexId_;
}
/**
* optional int64 viewIndexId = 12;
*/
public Builder setViewIndexId(long value) {
bitField0_ |= 0x00000800;
viewIndexId_ = value;
onChanged();
return this;
}
/**
* optional int64 viewIndexId = 12;
*/
public Builder clearViewIndexId() {
bitField0_ = (bitField0_ & ~0x00000800);
viewIndexId_ = 0L;
onChanged();
return this;
}
// optional int32 viewIndexIdType = 13 [default = 5];
private int viewIndexIdType_ = 5;
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public boolean hasViewIndexIdType() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public int getViewIndexIdType() {
return viewIndexIdType_;
}
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public Builder setViewIndexIdType(int value) {
bitField0_ |= 0x00001000;
viewIndexIdType_ = value;
onChanged();
return this;
}
/**
* optional int32 viewIndexIdType = 13 [default = 5];
*/
public Builder clearViewIndexIdType() {
bitField0_ = (bitField0_ & ~0x00001000);
viewIndexIdType_ = 5;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:MetaDataResponse)
}
static {
defaultInstance = new MetaDataResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:MetaDataResponse)
}
public interface GetTableRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required bytes tenantId = 1;
/**
* required bytes tenantId = 1;
*/
boolean hasTenantId();
/**
* required bytes tenantId = 1;
*/
com.google.protobuf.ByteString getTenantId();
// required bytes schemaName = 2;
/**
* required bytes schemaName = 2;
*/
boolean hasSchemaName();
/**
* required bytes schemaName = 2;
*/
com.google.protobuf.ByteString getSchemaName();
// required bytes tableName = 3;
/**
* required bytes tableName = 3;
*/
boolean hasTableName();
/**
* required bytes tableName = 3;
*/
com.google.protobuf.ByteString getTableName();
// required int64 tableTimestamp = 4;
/**
* required int64 tableTimestamp = 4;
*/
boolean hasTableTimestamp();
/**
* required int64 tableTimestamp = 4;
*/
long getTableTimestamp();
// required int64 clientTimestamp = 5;
/**
* required int64 clientTimestamp = 5;
*/
boolean hasClientTimestamp();
/**
* required int64 clientTimestamp = 5;
*/
long getClientTimestamp();
// optional int32 clientVersion = 6;
/**
* optional int32 clientVersion = 6;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 6;
*/
int getClientVersion();
}
/**
* Protobuf type {@code GetTableRequest}
*/
public static final class GetTableRequest extends
com.google.protobuf.GeneratedMessage
implements GetTableRequestOrBuilder {
// Use GetTableRequest.newBuilder() to construct.
private GetTableRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetTableRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetTableRequest defaultInstance;
public static GetTableRequest getDefaultInstance() {
return defaultInstance;
}
public GetTableRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTableRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
tenantId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
schemaName_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
tableName_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
tableTimestamp_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
clientTimestamp_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetTableRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTableRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required bytes tenantId = 1;
public static final int TENANTID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tenantId_;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
// required bytes schemaName = 2;
public static final int SCHEMANAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString schemaName_;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
// required bytes tableName = 3;
public static final int TABLENAME_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString tableName_;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
// required int64 tableTimestamp = 4;
public static final int TABLETIMESTAMP_FIELD_NUMBER = 4;
private long tableTimestamp_;
/**
* required int64 tableTimestamp = 4;
*/
public boolean hasTableTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 tableTimestamp = 4;
*/
public long getTableTimestamp() {
return tableTimestamp_;
}
// required int64 clientTimestamp = 5;
public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 5;
private long clientTimestamp_;
/**
* required int64 clientTimestamp = 5;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 clientTimestamp = 5;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
// optional int32 clientVersion = 6;
public static final int CLIENTVERSION_FIELD_NUMBER = 6;
private int clientVersion_;
/**
* optional int32 clientVersion = 6;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 clientVersion = 6;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tenantId_ = com.google.protobuf.ByteString.EMPTY;
schemaName_ = com.google.protobuf.ByteString.EMPTY;
tableName_ = com.google.protobuf.ByteString.EMPTY;
tableTimestamp_ = 0L;
clientTimestamp_ = 0L;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTenantId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTableName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTableTimestamp()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientTimestamp()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, tableTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, clientTimestamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, tableTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, clientTimestamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest) obj;
boolean result = true;
result = result && (hasTenantId() == other.hasTenantId());
if (hasTenantId()) {
result = result && getTenantId()
.equals(other.getTenantId());
}
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasTableName() == other.hasTableName());
if (hasTableName()) {
result = result && getTableName()
.equals(other.getTableName());
}
result = result && (hasTableTimestamp() == other.hasTableTimestamp());
if (hasTableTimestamp()) {
result = result && (getTableTimestamp()
== other.getTableTimestamp());
}
result = result && (hasClientTimestamp() == other.hasClientTimestamp());
if (hasClientTimestamp()) {
result = result && (getClientTimestamp()
== other.getClientTimestamp());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTenantId()) {
hash = (37 * hash) + TENANTID_FIELD_NUMBER;
hash = (53 * hash) + getTenantId().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLENAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasTableTimestamp()) {
hash = (37 * hash) + TABLETIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getTableTimestamp());
}
if (hasClientTimestamp()) {
hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getClientTimestamp());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetTableRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tenantId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
tableName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
tableTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
clientTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetTableRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tenantId_ = tenantId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.tableTimestamp_ = tableTimestamp_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.clientTimestamp_ = clientTimestamp_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.getDefaultInstance()) return this;
if (other.hasTenantId()) {
setTenantId(other.getTenantId());
}
if (other.hasSchemaName()) {
setSchemaName(other.getSchemaName());
}
if (other.hasTableName()) {
setTableName(other.getTableName());
}
if (other.hasTableTimestamp()) {
setTableTimestamp(other.getTableTimestamp());
}
if (other.hasClientTimestamp()) {
setClientTimestamp(other.getClientTimestamp());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTenantId()) {
return false;
}
if (!hasSchemaName()) {
return false;
}
if (!hasTableName()) {
return false;
}
if (!hasTableTimestamp()) {
return false;
}
if (!hasClientTimestamp()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required bytes tenantId = 1;
private com.google.protobuf.ByteString tenantId_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
/**
* required bytes tenantId = 1;
*/
public Builder setTenantId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tenantId_ = value;
onChanged();
return this;
}
/**
* required bytes tenantId = 1;
*/
public Builder clearTenantId() {
bitField0_ = (bitField0_ & ~0x00000001);
tenantId_ = getDefaultInstance().getTenantId();
onChanged();
return this;
}
// required bytes schemaName = 2;
private com.google.protobuf.ByteString schemaName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
/**
* required bytes schemaName = 2;
*/
public Builder setSchemaName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* required bytes schemaName = 2;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
// required bytes tableName = 3;
private com.google.protobuf.ByteString tableName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
/**
* required bytes tableName = 3;
*/
public Builder setTableName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
* required bytes tableName = 3;
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
// required int64 tableTimestamp = 4;
private long tableTimestamp_ ;
/**
* required int64 tableTimestamp = 4;
*/
public boolean hasTableTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 tableTimestamp = 4;
*/
public long getTableTimestamp() {
return tableTimestamp_;
}
/**
* required int64 tableTimestamp = 4;
*/
public Builder setTableTimestamp(long value) {
bitField0_ |= 0x00000008;
tableTimestamp_ = value;
onChanged();
return this;
}
/**
* required int64 tableTimestamp = 4;
*/
public Builder clearTableTimestamp() {
bitField0_ = (bitField0_ & ~0x00000008);
tableTimestamp_ = 0L;
onChanged();
return this;
}
// required int64 clientTimestamp = 5;
private long clientTimestamp_ ;
/**
* required int64 clientTimestamp = 5;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 clientTimestamp = 5;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
/**
* required int64 clientTimestamp = 5;
*/
public Builder setClientTimestamp(long value) {
bitField0_ |= 0x00000010;
clientTimestamp_ = value;
onChanged();
return this;
}
/**
* required int64 clientTimestamp = 5;
*/
public Builder clearClientTimestamp() {
bitField0_ = (bitField0_ & ~0x00000010);
clientTimestamp_ = 0L;
onChanged();
return this;
}
// optional int32 clientVersion = 6;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 6;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 clientVersion = 6;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 6;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000020;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 6;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000020);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetTableRequest)
}
static {
defaultInstance = new GetTableRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetTableRequest)
}
public interface GetFunctionsRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required bytes tenantId = 1;
/**
* required bytes tenantId = 1;
*/
boolean hasTenantId();
/**
* required bytes tenantId = 1;
*/
com.google.protobuf.ByteString getTenantId();
// repeated bytes functionNames = 2;
/**
* repeated bytes functionNames = 2;
*/
java.util.List getFunctionNamesList();
/**
* repeated bytes functionNames = 2;
*/
int getFunctionNamesCount();
/**
* repeated bytes functionNames = 2;
*/
com.google.protobuf.ByteString getFunctionNames(int index);
// repeated int64 functionTimestamps = 3;
/**
* repeated int64 functionTimestamps = 3;
*/
java.util.List getFunctionTimestampsList();
/**
* repeated int64 functionTimestamps = 3;
*/
int getFunctionTimestampsCount();
/**
* repeated int64 functionTimestamps = 3;
*/
long getFunctionTimestamps(int index);
// required int64 clientTimestamp = 4;
/**
* required int64 clientTimestamp = 4;
*/
boolean hasClientTimestamp();
/**
* required int64 clientTimestamp = 4;
*/
long getClientTimestamp();
// optional int32 clientVersion = 5;
/**
* optional int32 clientVersion = 5;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 5;
*/
int getClientVersion();
}
/**
* Protobuf type {@code GetFunctionsRequest}
*/
public static final class GetFunctionsRequest extends
com.google.protobuf.GeneratedMessage
implements GetFunctionsRequestOrBuilder {
// Use GetFunctionsRequest.newBuilder() to construct.
private GetFunctionsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetFunctionsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetFunctionsRequest defaultInstance;
public static GetFunctionsRequest getDefaultInstance() {
return defaultInstance;
}
public GetFunctionsRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetFunctionsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
tenantId_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
functionNames_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
functionNames_.add(input.readBytes());
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
functionTimestamps_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
functionTimestamps_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
functionTimestamps_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
functionTimestamps_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 32: {
bitField0_ |= 0x00000002;
clientTimestamp_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000004;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
functionNames_ = java.util.Collections.unmodifiableList(functionNames_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
functionTimestamps_ = java.util.Collections.unmodifiableList(functionTimestamps_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetFunctionsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetFunctionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetFunctionsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetFunctionsRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required bytes tenantId = 1;
public static final int TENANTID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tenantId_;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
// repeated bytes functionNames = 2;
public static final int FUNCTIONNAMES_FIELD_NUMBER = 2;
private java.util.List functionNames_;
/**
* repeated bytes functionNames = 2;
*/
public java.util.List
getFunctionNamesList() {
return functionNames_;
}
/**
* repeated bytes functionNames = 2;
*/
public int getFunctionNamesCount() {
return functionNames_.size();
}
/**
* repeated bytes functionNames = 2;
*/
public com.google.protobuf.ByteString getFunctionNames(int index) {
return functionNames_.get(index);
}
// repeated int64 functionTimestamps = 3;
public static final int FUNCTIONTIMESTAMPS_FIELD_NUMBER = 3;
private java.util.List functionTimestamps_;
/**
* repeated int64 functionTimestamps = 3;
*/
public java.util.List
getFunctionTimestampsList() {
return functionTimestamps_;
}
/**
* repeated int64 functionTimestamps = 3;
*/
public int getFunctionTimestampsCount() {
return functionTimestamps_.size();
}
/**
* repeated int64 functionTimestamps = 3;
*/
public long getFunctionTimestamps(int index) {
return functionTimestamps_.get(index);
}
// required int64 clientTimestamp = 4;
public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 4;
private long clientTimestamp_;
/**
* required int64 clientTimestamp = 4;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int64 clientTimestamp = 4;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
// optional int32 clientVersion = 5;
public static final int CLIENTVERSION_FIELD_NUMBER = 5;
private int clientVersion_;
/**
* optional int32 clientVersion = 5;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 clientVersion = 5;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tenantId_ = com.google.protobuf.ByteString.EMPTY;
functionNames_ = java.util.Collections.emptyList();
functionTimestamps_ = java.util.Collections.emptyList();
clientTimestamp_ = 0L;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTenantId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientTimestamp()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, tenantId_);
}
for (int i = 0; i < functionNames_.size(); i++) {
output.writeBytes(2, functionNames_.get(i));
}
for (int i = 0; i < functionTimestamps_.size(); i++) {
output.writeInt64(3, functionTimestamps_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(4, clientTimestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(5, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tenantId_);
}
{
int dataSize = 0;
for (int i = 0; i < functionNames_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(functionNames_.get(i));
}
size += dataSize;
size += 1 * getFunctionNamesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < functionTimestamps_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(functionTimestamps_.get(i));
}
size += dataSize;
size += 1 * getFunctionTimestampsList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, clientTimestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest) obj;
boolean result = true;
result = result && (hasTenantId() == other.hasTenantId());
if (hasTenantId()) {
result = result && getTenantId()
.equals(other.getTenantId());
}
result = result && getFunctionNamesList()
.equals(other.getFunctionNamesList());
result = result && getFunctionTimestampsList()
.equals(other.getFunctionTimestampsList());
result = result && (hasClientTimestamp() == other.hasClientTimestamp());
if (hasClientTimestamp()) {
result = result && (getClientTimestamp()
== other.getClientTimestamp());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTenantId()) {
hash = (37 * hash) + TENANTID_FIELD_NUMBER;
hash = (53 * hash) + getTenantId().hashCode();
}
if (getFunctionNamesCount() > 0) {
hash = (37 * hash) + FUNCTIONNAMES_FIELD_NUMBER;
hash = (53 * hash) + getFunctionNamesList().hashCode();
}
if (getFunctionTimestampsCount() > 0) {
hash = (37 * hash) + FUNCTIONTIMESTAMPS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionTimestampsList().hashCode();
}
if (hasClientTimestamp()) {
hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getClientTimestamp());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetFunctionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetFunctionsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetFunctionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tenantId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
functionNames_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
functionTimestamps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
clientTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetFunctionsRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tenantId_ = tenantId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
functionNames_ = java.util.Collections.unmodifiableList(functionNames_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.functionNames_ = functionNames_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
functionTimestamps_ = java.util.Collections.unmodifiableList(functionTimestamps_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.functionTimestamps_ = functionTimestamps_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.clientTimestamp_ = clientTimestamp_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.getDefaultInstance()) return this;
if (other.hasTenantId()) {
setTenantId(other.getTenantId());
}
if (!other.functionNames_.isEmpty()) {
if (functionNames_.isEmpty()) {
functionNames_ = other.functionNames_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFunctionNamesIsMutable();
functionNames_.addAll(other.functionNames_);
}
onChanged();
}
if (!other.functionTimestamps_.isEmpty()) {
if (functionTimestamps_.isEmpty()) {
functionTimestamps_ = other.functionTimestamps_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFunctionTimestampsIsMutable();
functionTimestamps_.addAll(other.functionTimestamps_);
}
onChanged();
}
if (other.hasClientTimestamp()) {
setClientTimestamp(other.getClientTimestamp());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTenantId()) {
return false;
}
if (!hasClientTimestamp()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required bytes tenantId = 1;
private com.google.protobuf.ByteString tenantId_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
/**
* required bytes tenantId = 1;
*/
public Builder setTenantId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tenantId_ = value;
onChanged();
return this;
}
/**
* required bytes tenantId = 1;
*/
public Builder clearTenantId() {
bitField0_ = (bitField0_ & ~0x00000001);
tenantId_ = getDefaultInstance().getTenantId();
onChanged();
return this;
}
// repeated bytes functionNames = 2;
private java.util.List functionNames_ = java.util.Collections.emptyList();
private void ensureFunctionNamesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
functionNames_ = new java.util.ArrayList(functionNames_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated bytes functionNames = 2;
*/
public java.util.List
getFunctionNamesList() {
return java.util.Collections.unmodifiableList(functionNames_);
}
/**
* repeated bytes functionNames = 2;
*/
public int getFunctionNamesCount() {
return functionNames_.size();
}
/**
* repeated bytes functionNames = 2;
*/
public com.google.protobuf.ByteString getFunctionNames(int index) {
return functionNames_.get(index);
}
/**
* repeated bytes functionNames = 2;
*/
public Builder setFunctionNames(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionNamesIsMutable();
functionNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes functionNames = 2;
*/
public Builder addFunctionNames(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionNamesIsMutable();
functionNames_.add(value);
onChanged();
return this;
}
/**
* repeated bytes functionNames = 2;
*/
public Builder addAllFunctionNames(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureFunctionNamesIsMutable();
super.addAll(values, functionNames_);
onChanged();
return this;
}
/**
* repeated bytes functionNames = 2;
*/
public Builder clearFunctionNames() {
functionNames_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// repeated int64 functionTimestamps = 3;
private java.util.List functionTimestamps_ = java.util.Collections.emptyList();
private void ensureFunctionTimestampsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
functionTimestamps_ = new java.util.ArrayList(functionTimestamps_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int64 functionTimestamps = 3;
*/
public java.util.List
getFunctionTimestampsList() {
return java.util.Collections.unmodifiableList(functionTimestamps_);
}
/**
* repeated int64 functionTimestamps = 3;
*/
public int getFunctionTimestampsCount() {
return functionTimestamps_.size();
}
/**
* repeated int64 functionTimestamps = 3;
*/
public long getFunctionTimestamps(int index) {
return functionTimestamps_.get(index);
}
/**
* repeated int64 functionTimestamps = 3;
*/
public Builder setFunctionTimestamps(
int index, long value) {
ensureFunctionTimestampsIsMutable();
functionTimestamps_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 functionTimestamps = 3;
*/
public Builder addFunctionTimestamps(long value) {
ensureFunctionTimestampsIsMutable();
functionTimestamps_.add(value);
onChanged();
return this;
}
/**
* repeated int64 functionTimestamps = 3;
*/
public Builder addAllFunctionTimestamps(
java.lang.Iterable extends java.lang.Long> values) {
ensureFunctionTimestampsIsMutable();
super.addAll(values, functionTimestamps_);
onChanged();
return this;
}
/**
* repeated int64 functionTimestamps = 3;
*/
public Builder clearFunctionTimestamps() {
functionTimestamps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// required int64 clientTimestamp = 4;
private long clientTimestamp_ ;
/**
* required int64 clientTimestamp = 4;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 clientTimestamp = 4;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
/**
* required int64 clientTimestamp = 4;
*/
public Builder setClientTimestamp(long value) {
bitField0_ |= 0x00000008;
clientTimestamp_ = value;
onChanged();
return this;
}
/**
* required int64 clientTimestamp = 4;
*/
public Builder clearClientTimestamp() {
bitField0_ = (bitField0_ & ~0x00000008);
clientTimestamp_ = 0L;
onChanged();
return this;
}
// optional int32 clientVersion = 5;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 5;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 clientVersion = 5;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 5;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000010;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 5;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000010);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetFunctionsRequest)
}
static {
defaultInstance = new GetFunctionsRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetFunctionsRequest)
}
public interface GetSchemaRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string schemaName = 1;
/**
* required string schemaName = 1;
*/
boolean hasSchemaName();
/**
* required string schemaName = 1;
*/
java.lang.String getSchemaName();
/**
* required string schemaName = 1;
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
// required int64 clientTimestamp = 2;
/**
* required int64 clientTimestamp = 2;
*/
boolean hasClientTimestamp();
/**
* required int64 clientTimestamp = 2;
*/
long getClientTimestamp();
// required int32 clientVersion = 3;
/**
* required int32 clientVersion = 3;
*/
boolean hasClientVersion();
/**
* required int32 clientVersion = 3;
*/
int getClientVersion();
}
/**
* Protobuf type {@code GetSchemaRequest}
*/
public static final class GetSchemaRequest extends
com.google.protobuf.GeneratedMessage
implements GetSchemaRequestOrBuilder {
// Use GetSchemaRequest.newBuilder() to construct.
private GetSchemaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetSchemaRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetSchemaRequest defaultInstance;
public static GetSchemaRequest getDefaultInstance() {
return defaultInstance;
}
public GetSchemaRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetSchemaRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
schemaName_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
clientTimestamp_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetSchemaRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string schemaName = 1;
public static final int SCHEMANAME_FIELD_NUMBER = 1;
private java.lang.Object schemaName_;
/**
* required string schemaName = 1;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string schemaName = 1;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
}
}
/**
* required string schemaName = 1;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 clientTimestamp = 2;
public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 2;
private long clientTimestamp_;
/**
* required int64 clientTimestamp = 2;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int64 clientTimestamp = 2;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
// required int32 clientVersion = 3;
public static final int CLIENTVERSION_FIELD_NUMBER = 3;
private int clientVersion_;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
schemaName_ = "";
clientTimestamp_ = 0L;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientTimestamp()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientVersion()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, clientTimestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, clientTimestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest) obj;
boolean result = true;
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasClientTimestamp() == other.hasClientTimestamp());
if (hasClientTimestamp()) {
result = result && (getClientTimestamp()
== other.getClientTimestamp());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasClientTimestamp()) {
hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getClientTimestamp());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
schemaName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
clientTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetSchemaRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.clientTimestamp_ = clientTimestamp_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.getDefaultInstance()) return this;
if (other.hasSchemaName()) {
bitField0_ |= 0x00000001;
schemaName_ = other.schemaName_;
onChanged();
}
if (other.hasClientTimestamp()) {
setClientTimestamp(other.getClientTimestamp());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSchemaName()) {
return false;
}
if (!hasClientTimestamp()) {
return false;
}
if (!hasClientVersion()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string schemaName = 1;
private java.lang.Object schemaName_ = "";
/**
* required string schemaName = 1;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string schemaName = 1;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
schemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string schemaName = 1;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string schemaName = 1;
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
schemaName_ = value;
onChanged();
return this;
}
/**
* required string schemaName = 1;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* required string schemaName = 1;
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
schemaName_ = value;
onChanged();
return this;
}
// required int64 clientTimestamp = 2;
private long clientTimestamp_ ;
/**
* required int64 clientTimestamp = 2;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int64 clientTimestamp = 2;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
/**
* required int64 clientTimestamp = 2;
*/
public Builder setClientTimestamp(long value) {
bitField0_ |= 0x00000002;
clientTimestamp_ = value;
onChanged();
return this;
}
/**
* required int64 clientTimestamp = 2;
*/
public Builder clearClientTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
clientTimestamp_ = 0L;
onChanged();
return this;
}
// required int32 clientVersion = 3;
private int clientVersion_ ;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* required int32 clientVersion = 3;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000004;
clientVersion_ = value;
onChanged();
return this;
}
/**
* required int32 clientVersion = 3;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetSchemaRequest)
}
static {
defaultInstance = new GetSchemaRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetSchemaRequest)
}
public interface CreateTableRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// optional int32 clientVersion = 2;
/**
* optional int32 clientVersion = 2;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 2;
*/
int getClientVersion();
// optional bool allocateIndexId = 3;
/**
* optional bool allocateIndexId = 3;
*/
boolean hasAllocateIndexId();
/**
* optional bool allocateIndexId = 3;
*/
boolean getAllocateIndexId();
// optional .PTable parentTable = 4;
/**
* optional .PTable parentTable = 4;
*/
boolean hasParentTable();
/**
* optional .PTable parentTable = 4;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable();
/**
* optional .PTable parentTable = 4;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder();
}
/**
* Protobuf type {@code CreateTableRequest}
*
*
* each byte array represents a MutationProto instance
*
*/
public static final class CreateTableRequest extends
com.google.protobuf.GeneratedMessage
implements CreateTableRequestOrBuilder {
// Use CreateTableRequest.newBuilder() to construct.
private CreateTableRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CreateTableRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CreateTableRequest defaultInstance;
public static CreateTableRequest getDefaultInstance() {
return defaultInstance;
}
public CreateTableRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateTableRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000002;
allocateIndexId_ = input.readBool();
break;
}
case 34: {
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = parentTable_.toBuilder();
}
parentTable_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentTable_);
parentTable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CreateTableRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateTableRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// optional int32 clientVersion = 2;
public static final int CLIENTVERSION_FIELD_NUMBER = 2;
private int clientVersion_;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
// optional bool allocateIndexId = 3;
public static final int ALLOCATEINDEXID_FIELD_NUMBER = 3;
private boolean allocateIndexId_;
/**
* optional bool allocateIndexId = 3;
*/
public boolean hasAllocateIndexId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool allocateIndexId = 3;
*/
public boolean getAllocateIndexId() {
return allocateIndexId_;
}
// optional .PTable parentTable = 4;
public static final int PARENTTABLE_FIELD_NUMBER = 4;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_;
/**
* optional .PTable parentTable = 4;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .PTable parentTable = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
return parentTable_;
}
/**
* optional .PTable parentTable = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
return parentTable_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
clientVersion_ = 0;
allocateIndexId_ = false;
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(3, allocateIndexId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(4, parentTable_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, allocateIndexId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, parentTable_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result && (hasAllocateIndexId() == other.hasAllocateIndexId());
if (hasAllocateIndexId()) {
result = result && (getAllocateIndexId()
== other.getAllocateIndexId());
}
result = result && (hasParentTable() == other.hasParentTable());
if (hasParentTable()) {
result = result && getParentTable()
.equals(other.getParentTable());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
if (hasAllocateIndexId()) {
hash = (37 * hash) + ALLOCATEINDEXID_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getAllocateIndexId());
}
if (hasParentTable()) {
hash = (37 * hash) + PARENTTABLE_FIELD_NUMBER;
hash = (53 * hash) + getParentTable().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CreateTableRequest}
*
*
* each byte array represents a MutationProto instance
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParentTableFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
allocateIndexId_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateTableRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.allocateIndexId_ = allocateIndexId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
if (parentTableBuilder_ == null) {
result.parentTable_ = parentTable_;
} else {
result.parentTable_ = parentTableBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
if (other.hasAllocateIndexId()) {
setAllocateIndexId(other.getAllocateIndexId());
}
if (other.hasParentTable()) {
mergeParentTable(other.getParentTable());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional int32 clientVersion = 2;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000002;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
onChanged();
return this;
}
// optional bool allocateIndexId = 3;
private boolean allocateIndexId_ ;
/**
* optional bool allocateIndexId = 3;
*/
public boolean hasAllocateIndexId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool allocateIndexId = 3;
*/
public boolean getAllocateIndexId() {
return allocateIndexId_;
}
/**
* optional bool allocateIndexId = 3;
*/
public Builder setAllocateIndexId(boolean value) {
bitField0_ |= 0x00000004;
allocateIndexId_ = value;
onChanged();
return this;
}
/**
* optional bool allocateIndexId = 3;
*/
public Builder clearAllocateIndexId() {
bitField0_ = (bitField0_ & ~0x00000004);
allocateIndexId_ = false;
onChanged();
return this;
}
// optional .PTable parentTable = 4;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder> parentTableBuilder_;
/**
* optional .PTable parentTable = 4;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .PTable parentTable = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
if (parentTableBuilder_ == null) {
return parentTable_;
} else {
return parentTableBuilder_.getMessage();
}
}
/**
* optional .PTable parentTable = 4;
*/
public Builder setParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentTable_ = value;
onChanged();
} else {
parentTableBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .PTable parentTable = 4;
*/
public Builder setParentTable(
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder builderForValue) {
if (parentTableBuilder_ == null) {
parentTable_ = builderForValue.build();
onChanged();
} else {
parentTableBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .PTable parentTable = 4;
*/
public Builder mergeParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
parentTable_ != org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance()) {
parentTable_ =
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.newBuilder(parentTable_).mergeFrom(value).buildPartial();
} else {
parentTable_ = value;
}
onChanged();
} else {
parentTableBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .PTable parentTable = 4;
*/
public Builder clearParentTable() {
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
onChanged();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .PTable parentTable = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getParentTableBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getParentTableFieldBuilder().getBuilder();
}
/**
* optional .PTable parentTable = 4;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
if (parentTableBuilder_ != null) {
return parentTableBuilder_.getMessageOrBuilder();
} else {
return parentTable_;
}
}
/**
* optional .PTable parentTable = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>
getParentTableFieldBuilder() {
if (parentTableBuilder_ == null) {
parentTableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>(
parentTable_,
getParentForChildren(),
isClean());
parentTable_ = null;
}
return parentTableBuilder_;
}
// @@protoc_insertion_point(builder_scope:CreateTableRequest)
}
static {
defaultInstance = new CreateTableRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CreateTableRequest)
}
public interface CreateFunctionRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// required bool temporary = 2;
/**
* required bool temporary = 2;
*/
boolean hasTemporary();
/**
* required bool temporary = 2;
*/
boolean getTemporary();
// optional bool replace = 3;
/**
* optional bool replace = 3;
*/
boolean hasReplace();
/**
* optional bool replace = 3;
*/
boolean getReplace();
// optional int32 clientVersion = 4;
/**
* optional int32 clientVersion = 4;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 4;
*/
int getClientVersion();
}
/**
* Protobuf type {@code CreateFunctionRequest}
*
*
* each byte array represents a MutationProto instance
*
*/
public static final class CreateFunctionRequest extends
com.google.protobuf.GeneratedMessage
implements CreateFunctionRequestOrBuilder {
// Use CreateFunctionRequest.newBuilder() to construct.
private CreateFunctionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CreateFunctionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CreateFunctionRequest defaultInstance;
public static CreateFunctionRequest getDefaultInstance() {
return defaultInstance;
}
public CreateFunctionRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateFunctionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
temporary_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000002;
replace_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000004;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateFunctionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CreateFunctionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateFunctionRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// required bool temporary = 2;
public static final int TEMPORARY_FIELD_NUMBER = 2;
private boolean temporary_;
/**
* required bool temporary = 2;
*/
public boolean hasTemporary() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bool temporary = 2;
*/
public boolean getTemporary() {
return temporary_;
}
// optional bool replace = 3;
public static final int REPLACE_FIELD_NUMBER = 3;
private boolean replace_;
/**
* optional bool replace = 3;
*/
public boolean hasReplace() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool replace = 3;
*/
public boolean getReplace() {
return replace_;
}
// optional int32 clientVersion = 4;
public static final int CLIENTVERSION_FIELD_NUMBER = 4;
private int clientVersion_;
/**
* optional int32 clientVersion = 4;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 clientVersion = 4;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
temporary_ = false;
replace_ = false;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTemporary()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, temporary_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(3, replace_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, temporary_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, replace_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasTemporary() == other.hasTemporary());
if (hasTemporary()) {
result = result && (getTemporary()
== other.getTemporary());
}
result = result && (hasReplace() == other.hasReplace());
if (hasReplace()) {
result = result && (getReplace()
== other.getReplace());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasTemporary()) {
hash = (37 * hash) + TEMPORARY_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getTemporary());
}
if (hasReplace()) {
hash = (37 * hash) + REPLACE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getReplace());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CreateFunctionRequest}
*
*
* each byte array represents a MutationProto instance
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateFunctionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
temporary_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
replace_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateFunctionRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.temporary_ = temporary_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.replace_ = replace_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasTemporary()) {
setTemporary(other.getTemporary());
}
if (other.hasReplace()) {
setReplace(other.getReplace());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTemporary()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// required bool temporary = 2;
private boolean temporary_ ;
/**
* required bool temporary = 2;
*/
public boolean hasTemporary() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bool temporary = 2;
*/
public boolean getTemporary() {
return temporary_;
}
/**
* required bool temporary = 2;
*/
public Builder setTemporary(boolean value) {
bitField0_ |= 0x00000002;
temporary_ = value;
onChanged();
return this;
}
/**
* required bool temporary = 2;
*/
public Builder clearTemporary() {
bitField0_ = (bitField0_ & ~0x00000002);
temporary_ = false;
onChanged();
return this;
}
// optional bool replace = 3;
private boolean replace_ ;
/**
* optional bool replace = 3;
*/
public boolean hasReplace() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool replace = 3;
*/
public boolean getReplace() {
return replace_;
}
/**
* optional bool replace = 3;
*/
public Builder setReplace(boolean value) {
bitField0_ |= 0x00000004;
replace_ = value;
onChanged();
return this;
}
/**
* optional bool replace = 3;
*/
public Builder clearReplace() {
bitField0_ = (bitField0_ & ~0x00000004);
replace_ = false;
onChanged();
return this;
}
// optional int32 clientVersion = 4;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 4;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 clientVersion = 4;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 4;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000008;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 4;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CreateFunctionRequest)
}
static {
defaultInstance = new CreateFunctionRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CreateFunctionRequest)
}
public interface CreateSchemaRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// required string schemaName = 2;
/**
* required string schemaName = 2;
*/
boolean hasSchemaName();
/**
* required string schemaName = 2;
*/
java.lang.String getSchemaName();
/**
* required string schemaName = 2;
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
// required int32 clientVersion = 3;
/**
* required int32 clientVersion = 3;
*/
boolean hasClientVersion();
/**
* required int32 clientVersion = 3;
*/
int getClientVersion();
}
/**
* Protobuf type {@code CreateSchemaRequest}
*/
public static final class CreateSchemaRequest extends
com.google.protobuf.GeneratedMessage
implements CreateSchemaRequestOrBuilder {
// Use CreateSchemaRequest.newBuilder() to construct.
private CreateSchemaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CreateSchemaRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CreateSchemaRequest defaultInstance;
public static CreateSchemaRequest getDefaultInstance() {
return defaultInstance;
}
public CreateSchemaRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSchemaRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 18: {
bitField0_ |= 0x00000001;
schemaName_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000002;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CreateSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSchemaRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// required string schemaName = 2;
public static final int SCHEMANAME_FIELD_NUMBER = 2;
private java.lang.Object schemaName_;
/**
* required string schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string schemaName = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
}
}
/**
* required string schemaName = 2;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 clientVersion = 3;
public static final int CLIENTVERSION_FIELD_NUMBER = 3;
private int clientVersion_;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
schemaName_ = "";
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientVersion()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CreateSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_CreateSchemaRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasSchemaName()) {
bitField0_ |= 0x00000002;
schemaName_ = other.schemaName_;
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSchemaName()) {
return false;
}
if (!hasClientVersion()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// required string schemaName = 2;
private java.lang.Object schemaName_ = "";
/**
* required string schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string schemaName = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
schemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string schemaName = 2;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string schemaName = 2;
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* required string schemaName = 2;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* required string schemaName = 2;
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
// required int32 clientVersion = 3;
private int clientVersion_ ;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* required int32 clientVersion = 3;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000004;
clientVersion_ = value;
onChanged();
return this;
}
/**
* required int32 clientVersion = 3;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CreateSchemaRequest)
}
static {
defaultInstance = new CreateSchemaRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CreateSchemaRequest)
}
public interface DropTableRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// required string tableType = 2;
/**
* required string tableType = 2;
*/
boolean hasTableType();
/**
* required string tableType = 2;
*/
java.lang.String getTableType();
/**
* required string tableType = 2;
*/
com.google.protobuf.ByteString
getTableTypeBytes();
// optional bool cascade = 3;
/**
* optional bool cascade = 3;
*/
boolean hasCascade();
/**
* optional bool cascade = 3;
*/
boolean getCascade();
// optional int32 clientVersion = 4;
/**
* optional int32 clientVersion = 4;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 4;
*/
int getClientVersion();
}
/**
* Protobuf type {@code DropTableRequest}
*/
public static final class DropTableRequest extends
com.google.protobuf.GeneratedMessage
implements DropTableRequestOrBuilder {
// Use DropTableRequest.newBuilder() to construct.
private DropTableRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DropTableRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DropTableRequest defaultInstance;
public static DropTableRequest getDefaultInstance() {
return defaultInstance;
}
public DropTableRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DropTableRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 18: {
bitField0_ |= 0x00000001;
tableType_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000002;
cascade_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000004;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DropTableRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DropTableRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// required string tableType = 2;
public static final int TABLETYPE_FIELD_NUMBER = 2;
private java.lang.Object tableType_;
/**
* required string tableType = 2;
*/
public boolean hasTableType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string tableType = 2;
*/
public java.lang.String getTableType() {
java.lang.Object ref = tableType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
tableType_ = s;
}
return s;
}
}
/**
* required string tableType = 2;
*/
public com.google.protobuf.ByteString
getTableTypeBytes() {
java.lang.Object ref = tableType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tableType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool cascade = 3;
public static final int CASCADE_FIELD_NUMBER = 3;
private boolean cascade_;
/**
* optional bool cascade = 3;
*/
public boolean hasCascade() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool cascade = 3;
*/
public boolean getCascade() {
return cascade_;
}
// optional int32 clientVersion = 4;
public static final int CLIENTVERSION_FIELD_NUMBER = 4;
private int clientVersion_;
/**
* optional int32 clientVersion = 4;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 clientVersion = 4;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
tableType_ = "";
cascade_ = false;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTableType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, getTableTypeBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(3, cascade_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTableTypeBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, cascade_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasTableType() == other.hasTableType());
if (hasTableType()) {
result = result && getTableType()
.equals(other.getTableType());
}
result = result && (hasCascade() == other.hasCascade());
if (hasCascade()) {
result = result && (getCascade()
== other.getCascade());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasTableType()) {
hash = (37 * hash) + TABLETYPE_FIELD_NUMBER;
hash = (53 * hash) + getTableType().hashCode();
}
if (hasCascade()) {
hash = (37 * hash) + CASCADE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getCascade());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DropTableRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropTableRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropTableRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
tableType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
cascade_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropTableRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.tableType_ = tableType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.cascade_ = cascade_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasTableType()) {
bitField0_ |= 0x00000002;
tableType_ = other.tableType_;
onChanged();
}
if (other.hasCascade()) {
setCascade(other.getCascade());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTableType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// required string tableType = 2;
private java.lang.Object tableType_ = "";
/**
* required string tableType = 2;
*/
public boolean hasTableType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string tableType = 2;
*/
public java.lang.String getTableType() {
java.lang.Object ref = tableType_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
tableType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string tableType = 2;
*/
public com.google.protobuf.ByteString
getTableTypeBytes() {
java.lang.Object ref = tableType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tableType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string tableType = 2;
*/
public Builder setTableType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
tableType_ = value;
onChanged();
return this;
}
/**
* required string tableType = 2;
*/
public Builder clearTableType() {
bitField0_ = (bitField0_ & ~0x00000002);
tableType_ = getDefaultInstance().getTableType();
onChanged();
return this;
}
/**
* required string tableType = 2;
*/
public Builder setTableTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
tableType_ = value;
onChanged();
return this;
}
// optional bool cascade = 3;
private boolean cascade_ ;
/**
* optional bool cascade = 3;
*/
public boolean hasCascade() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool cascade = 3;
*/
public boolean getCascade() {
return cascade_;
}
/**
* optional bool cascade = 3;
*/
public Builder setCascade(boolean value) {
bitField0_ |= 0x00000004;
cascade_ = value;
onChanged();
return this;
}
/**
* optional bool cascade = 3;
*/
public Builder clearCascade() {
bitField0_ = (bitField0_ & ~0x00000004);
cascade_ = false;
onChanged();
return this;
}
// optional int32 clientVersion = 4;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 4;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 clientVersion = 4;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 4;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000008;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 4;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:DropTableRequest)
}
static {
defaultInstance = new DropTableRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DropTableRequest)
}
public interface DropSchemaRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes schemaMetadataMutations = 1;
/**
* repeated bytes schemaMetadataMutations = 1;
*/
java.util.List getSchemaMetadataMutationsList();
/**
* repeated bytes schemaMetadataMutations = 1;
*/
int getSchemaMetadataMutationsCount();
/**
* repeated bytes schemaMetadataMutations = 1;
*/
com.google.protobuf.ByteString getSchemaMetadataMutations(int index);
// required string schemaName = 2;
/**
* required string schemaName = 2;
*/
boolean hasSchemaName();
/**
* required string schemaName = 2;
*/
java.lang.String getSchemaName();
/**
* required string schemaName = 2;
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
// required int32 clientVersion = 3;
/**
* required int32 clientVersion = 3;
*/
boolean hasClientVersion();
/**
* required int32 clientVersion = 3;
*/
int getClientVersion();
}
/**
* Protobuf type {@code DropSchemaRequest}
*/
public static final class DropSchemaRequest extends
com.google.protobuf.GeneratedMessage
implements DropSchemaRequestOrBuilder {
// Use DropSchemaRequest.newBuilder() to construct.
private DropSchemaRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DropSchemaRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DropSchemaRequest defaultInstance;
public static DropSchemaRequest getDefaultInstance() {
return defaultInstance;
}
public DropSchemaRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DropSchemaRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
schemaMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
schemaMetadataMutations_.add(input.readBytes());
break;
}
case 18: {
bitField0_ |= 0x00000001;
schemaName_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000002;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
schemaMetadataMutations_ = java.util.Collections.unmodifiableList(schemaMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DropSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DropSchemaRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes schemaMetadataMutations = 1;
public static final int SCHEMAMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List schemaMetadataMutations_;
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public java.util.List
getSchemaMetadataMutationsList() {
return schemaMetadataMutations_;
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public int getSchemaMetadataMutationsCount() {
return schemaMetadataMutations_.size();
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getSchemaMetadataMutations(int index) {
return schemaMetadataMutations_.get(index);
}
// required string schemaName = 2;
public static final int SCHEMANAME_FIELD_NUMBER = 2;
private java.lang.Object schemaName_;
/**
* required string schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string schemaName = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
}
}
/**
* required string schemaName = 2;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 clientVersion = 3;
public static final int CLIENTVERSION_FIELD_NUMBER = 3;
private int clientVersion_;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
schemaMetadataMutations_ = java.util.Collections.emptyList();
schemaName_ = "";
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientVersion()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < schemaMetadataMutations_.size(); i++) {
output.writeBytes(1, schemaMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < schemaMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(schemaMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getSchemaMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getSchemaNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest) obj;
boolean result = true;
result = result && getSchemaMetadataMutationsList()
.equals(other.getSchemaMetadataMutationsList());
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getSchemaMetadataMutationsCount() > 0) {
hash = (37 * hash) + SCHEMAMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSchemaMetadataMutationsList().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DropSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropSchemaRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
schemaMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropSchemaRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
schemaMetadataMutations_ = java.util.Collections.unmodifiableList(schemaMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.schemaMetadataMutations_ = schemaMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.getDefaultInstance()) return this;
if (!other.schemaMetadataMutations_.isEmpty()) {
if (schemaMetadataMutations_.isEmpty()) {
schemaMetadataMutations_ = other.schemaMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSchemaMetadataMutationsIsMutable();
schemaMetadataMutations_.addAll(other.schemaMetadataMutations_);
}
onChanged();
}
if (other.hasSchemaName()) {
bitField0_ |= 0x00000002;
schemaName_ = other.schemaName_;
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSchemaName()) {
return false;
}
if (!hasClientVersion()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes schemaMetadataMutations = 1;
private java.util.List schemaMetadataMutations_ = java.util.Collections.emptyList();
private void ensureSchemaMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
schemaMetadataMutations_ = new java.util.ArrayList(schemaMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public java.util.List
getSchemaMetadataMutationsList() {
return java.util.Collections.unmodifiableList(schemaMetadataMutations_);
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public int getSchemaMetadataMutationsCount() {
return schemaMetadataMutations_.size();
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getSchemaMetadataMutations(int index) {
return schemaMetadataMutations_.get(index);
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public Builder setSchemaMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSchemaMetadataMutationsIsMutable();
schemaMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public Builder addSchemaMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSchemaMetadataMutationsIsMutable();
schemaMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public Builder addAllSchemaMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureSchemaMetadataMutationsIsMutable();
super.addAll(values, schemaMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes schemaMetadataMutations = 1;
*/
public Builder clearSchemaMetadataMutations() {
schemaMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// required string schemaName = 2;
private java.lang.Object schemaName_ = "";
/**
* required string schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string schemaName = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
schemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string schemaName = 2;
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
java.lang.Object ref = schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string schemaName = 2;
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* required string schemaName = 2;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* required string schemaName = 2;
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
// required int32 clientVersion = 3;
private int clientVersion_ ;
/**
* required int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* required int32 clientVersion = 3;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000004;
clientVersion_ = value;
onChanged();
return this;
}
/**
* required int32 clientVersion = 3;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:DropSchemaRequest)
}
static {
defaultInstance = new DropSchemaRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DropSchemaRequest)
}
public interface AddColumnRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// optional int32 clientVersion = 2;
/**
* optional int32 clientVersion = 2;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 2;
*/
int getClientVersion();
// optional .PTable parentTable = 3;
/**
* optional .PTable parentTable = 3;
*/
boolean hasParentTable();
/**
* optional .PTable parentTable = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable();
/**
* optional .PTable parentTable = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder();
// optional bool addingColumns = 4;
/**
* optional bool addingColumns = 4;
*/
boolean hasAddingColumns();
/**
* optional bool addingColumns = 4;
*/
boolean getAddingColumns();
}
/**
* Protobuf type {@code AddColumnRequest}
*/
public static final class AddColumnRequest extends
com.google.protobuf.GeneratedMessage
implements AddColumnRequestOrBuilder {
// Use AddColumnRequest.newBuilder() to construct.
private AddColumnRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AddColumnRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AddColumnRequest defaultInstance;
public static AddColumnRequest getDefaultInstance() {
return defaultInstance;
}
public AddColumnRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddColumnRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
case 26: {
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = parentTable_.toBuilder();
}
parentTable_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentTable_);
parentTable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 32: {
bitField0_ |= 0x00000004;
addingColumns_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_AddColumnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_AddColumnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AddColumnRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddColumnRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// optional int32 clientVersion = 2;
public static final int CLIENTVERSION_FIELD_NUMBER = 2;
private int clientVersion_;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
// optional .PTable parentTable = 3;
public static final int PARENTTABLE_FIELD_NUMBER = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_;
/**
* optional .PTable parentTable = 3;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
return parentTable_;
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
return parentTable_;
}
// optional bool addingColumns = 4;
public static final int ADDINGCOLUMNS_FIELD_NUMBER = 4;
private boolean addingColumns_;
/**
* optional bool addingColumns = 4;
*/
public boolean hasAddingColumns() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool addingColumns = 4;
*/
public boolean getAddingColumns() {
return addingColumns_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
clientVersion_ = 0;
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
addingColumns_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, parentTable_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(4, addingColumns_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, parentTable_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, addingColumns_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result && (hasParentTable() == other.hasParentTable());
if (hasParentTable()) {
result = result && getParentTable()
.equals(other.getParentTable());
}
result = result && (hasAddingColumns() == other.hasAddingColumns());
if (hasAddingColumns()) {
result = result && (getAddingColumns()
== other.getAddingColumns());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
if (hasParentTable()) {
hash = (37 * hash) + PARENTTABLE_FIELD_NUMBER;
hash = (53 * hash) + getParentTable().hashCode();
}
if (hasAddingColumns()) {
hash = (37 * hash) + ADDINGCOLUMNS_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getAddingColumns());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AddColumnRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_AddColumnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_AddColumnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParentTableFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
addingColumns_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_AddColumnRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
if (parentTableBuilder_ == null) {
result.parentTable_ = parentTable_;
} else {
result.parentTable_ = parentTableBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.addingColumns_ = addingColumns_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
if (other.hasParentTable()) {
mergeParentTable(other.getParentTable());
}
if (other.hasAddingColumns()) {
setAddingColumns(other.getAddingColumns());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional int32 clientVersion = 2;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000002;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
onChanged();
return this;
}
// optional .PTable parentTable = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder> parentTableBuilder_;
/**
* optional .PTable parentTable = 3;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
if (parentTableBuilder_ == null) {
return parentTable_;
} else {
return parentTableBuilder_.getMessage();
}
}
/**
* optional .PTable parentTable = 3;
*/
public Builder setParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentTable_ = value;
onChanged();
} else {
parentTableBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder setParentTable(
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder builderForValue) {
if (parentTableBuilder_ == null) {
parentTable_ = builderForValue.build();
onChanged();
} else {
parentTableBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder mergeParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
parentTable_ != org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance()) {
parentTable_ =
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.newBuilder(parentTable_).mergeFrom(value).buildPartial();
} else {
parentTable_ = value;
}
onChanged();
} else {
parentTableBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder clearParentTable() {
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
onChanged();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getParentTableBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getParentTableFieldBuilder().getBuilder();
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
if (parentTableBuilder_ != null) {
return parentTableBuilder_.getMessageOrBuilder();
} else {
return parentTable_;
}
}
/**
* optional .PTable parentTable = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>
getParentTableFieldBuilder() {
if (parentTableBuilder_ == null) {
parentTableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>(
parentTable_,
getParentForChildren(),
isClean());
parentTable_ = null;
}
return parentTableBuilder_;
}
// optional bool addingColumns = 4;
private boolean addingColumns_ ;
/**
* optional bool addingColumns = 4;
*/
public boolean hasAddingColumns() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool addingColumns = 4;
*/
public boolean getAddingColumns() {
return addingColumns_;
}
/**
* optional bool addingColumns = 4;
*/
public Builder setAddingColumns(boolean value) {
bitField0_ |= 0x00000008;
addingColumns_ = value;
onChanged();
return this;
}
/**
* optional bool addingColumns = 4;
*/
public Builder clearAddingColumns() {
bitField0_ = (bitField0_ & ~0x00000008);
addingColumns_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:AddColumnRequest)
}
static {
defaultInstance = new AddColumnRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:AddColumnRequest)
}
public interface DropColumnRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// optional int32 clientVersion = 2;
/**
* optional int32 clientVersion = 2;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 2;
*/
int getClientVersion();
// optional .PTable parentTable = 3;
/**
* optional .PTable parentTable = 3;
*/
boolean hasParentTable();
/**
* optional .PTable parentTable = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable();
/**
* optional .PTable parentTable = 3;
*/
org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder();
}
/**
* Protobuf type {@code DropColumnRequest}
*/
public static final class DropColumnRequest extends
com.google.protobuf.GeneratedMessage
implements DropColumnRequestOrBuilder {
// Use DropColumnRequest.newBuilder() to construct.
private DropColumnRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DropColumnRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DropColumnRequest defaultInstance;
public static DropColumnRequest getDefaultInstance() {
return defaultInstance;
}
public DropColumnRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DropColumnRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
case 26: {
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = parentTable_.toBuilder();
}
parentTable_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentTable_);
parentTable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropColumnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropColumnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DropColumnRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DropColumnRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// optional int32 clientVersion = 2;
public static final int CLIENTVERSION_FIELD_NUMBER = 2;
private int clientVersion_;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
// optional .PTable parentTable = 3;
public static final int PARENTTABLE_FIELD_NUMBER = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_;
/**
* optional .PTable parentTable = 3;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
return parentTable_;
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
return parentTable_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
clientVersion_ = 0;
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, parentTable_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, parentTable_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result && (hasParentTable() == other.hasParentTable());
if (hasParentTable()) {
result = result && getParentTable()
.equals(other.getParentTable());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
if (hasParentTable()) {
hash = (37 * hash) + PARENTTABLE_FIELD_NUMBER;
hash = (53 * hash) + getParentTable().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DropColumnRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropColumnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropColumnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParentTableFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropColumnRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
if (parentTableBuilder_ == null) {
result.parentTable_ = parentTable_;
} else {
result.parentTable_ = parentTableBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
if (other.hasParentTable()) {
mergeParentTable(other.getParentTable());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasParentTable()) {
if (!getParentTable().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional int32 clientVersion = 2;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000002;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
onChanged();
return this;
}
// optional .PTable parentTable = 3;
private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder> parentTableBuilder_;
/**
* optional .PTable parentTable = 3;
*/
public boolean hasParentTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getParentTable() {
if (parentTableBuilder_ == null) {
return parentTable_;
} else {
return parentTableBuilder_.getMessage();
}
}
/**
* optional .PTable parentTable = 3;
*/
public Builder setParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentTable_ = value;
onChanged();
} else {
parentTableBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder setParentTable(
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder builderForValue) {
if (parentTableBuilder_ == null) {
parentTable_ = builderForValue.build();
onChanged();
} else {
parentTableBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder mergeParentTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) {
if (parentTableBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
parentTable_ != org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance()) {
parentTable_ =
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.newBuilder(parentTable_).mergeFrom(value).buildPartial();
} else {
parentTable_ = value;
}
onChanged();
} else {
parentTableBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public Builder clearParentTable() {
if (parentTableBuilder_ == null) {
parentTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance();
onChanged();
} else {
parentTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getParentTableBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getParentTableFieldBuilder().getBuilder();
}
/**
* optional .PTable parentTable = 3;
*/
public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getParentTableOrBuilder() {
if (parentTableBuilder_ != null) {
return parentTableBuilder_.getMessageOrBuilder();
} else {
return parentTable_;
}
}
/**
* optional .PTable parentTable = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>
getParentTableFieldBuilder() {
if (parentTableBuilder_ == null) {
parentTableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.phoenix.coprocessor.generated.PTableProtos.PTable, org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder, org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder>(
parentTable_,
getParentForChildren(),
isClean());
parentTable_ = null;
}
return parentTableBuilder_;
}
// @@protoc_insertion_point(builder_scope:DropColumnRequest)
}
static {
defaultInstance = new DropColumnRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DropColumnRequest)
}
public interface DropFunctionRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// optional bool ifExists = 2;
/**
* optional bool ifExists = 2;
*/
boolean hasIfExists();
/**
* optional bool ifExists = 2;
*/
boolean getIfExists();
// optional int32 clientVersion = 3;
/**
* optional int32 clientVersion = 3;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 3;
*/
int getClientVersion();
}
/**
* Protobuf type {@code DropFunctionRequest}
*/
public static final class DropFunctionRequest extends
com.google.protobuf.GeneratedMessage
implements DropFunctionRequestOrBuilder {
// Use DropFunctionRequest.newBuilder() to construct.
private DropFunctionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DropFunctionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DropFunctionRequest defaultInstance;
public static DropFunctionRequest getDefaultInstance() {
return defaultInstance;
}
public DropFunctionRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DropFunctionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
ifExists_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000002;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropFunctionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DropFunctionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DropFunctionRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// optional bool ifExists = 2;
public static final int IFEXISTS_FIELD_NUMBER = 2;
private boolean ifExists_;
/**
* optional bool ifExists = 2;
*/
public boolean hasIfExists() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bool ifExists = 2;
*/
public boolean getIfExists() {
return ifExists_;
}
// optional int32 clientVersion = 3;
public static final int CLIENTVERSION_FIELD_NUMBER = 3;
private int clientVersion_;
/**
* optional int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
ifExists_ = false;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, ifExists_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, ifExists_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasIfExists() == other.hasIfExists());
if (hasIfExists()) {
result = result && (getIfExists()
== other.getIfExists());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasIfExists()) {
hash = (37 * hash) + IFEXISTS_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIfExists());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DropFunctionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropFunctionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
ifExists_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_DropFunctionRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.ifExists_ = ifExists_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasIfExists()) {
setIfExists(other.getIfExists());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional bool ifExists = 2;
private boolean ifExists_ ;
/**
* optional bool ifExists = 2;
*/
public boolean hasIfExists() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool ifExists = 2;
*/
public boolean getIfExists() {
return ifExists_;
}
/**
* optional bool ifExists = 2;
*/
public Builder setIfExists(boolean value) {
bitField0_ |= 0x00000002;
ifExists_ = value;
onChanged();
return this;
}
/**
* optional bool ifExists = 2;
*/
public Builder clearIfExists() {
bitField0_ = (bitField0_ & ~0x00000002);
ifExists_ = false;
onChanged();
return this;
}
// optional int32 clientVersion = 3;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 3;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 clientVersion = 3;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 3;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000004;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 3;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:DropFunctionRequest)
}
static {
defaultInstance = new DropFunctionRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DropFunctionRequest)
}
public interface UpdateIndexStateRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated bytes tableMetadataMutations = 1;
/**
* repeated bytes tableMetadataMutations = 1;
*/
java.util.List getTableMetadataMutationsList();
/**
* repeated bytes tableMetadataMutations = 1;
*/
int getTableMetadataMutationsCount();
/**
* repeated bytes tableMetadataMutations = 1;
*/
com.google.protobuf.ByteString getTableMetadataMutations(int index);
// optional int32 clientVersion = 2;
/**
* optional int32 clientVersion = 2;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 2;
*/
int getClientVersion();
}
/**
* Protobuf type {@code UpdateIndexStateRequest}
*/
public static final class UpdateIndexStateRequest extends
com.google.protobuf.GeneratedMessage
implements UpdateIndexStateRequestOrBuilder {
// Use UpdateIndexStateRequest.newBuilder() to construct.
private UpdateIndexStateRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UpdateIndexStateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UpdateIndexStateRequest defaultInstance;
public static UpdateIndexStateRequest getDefaultInstance() {
return defaultInstance;
}
public UpdateIndexStateRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateIndexStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tableMetadataMutations_.add(input.readBytes());
break;
}
case 16: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_UpdateIndexStateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_UpdateIndexStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public UpdateIndexStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateIndexStateRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1;
private java.util.List tableMetadataMutations_;
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return tableMetadataMutations_;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
// optional int32 clientVersion = 2;
public static final int CLIENTVERSION_FIELD_NUMBER = 2;
private int clientVersion_;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tableMetadataMutations_ = java.util.Collections.emptyList();
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
output.writeBytes(1, tableMetadataMutations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < tableMetadataMutations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(tableMetadataMutations_.get(i));
}
size += dataSize;
size += 1 * getTableMetadataMutationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest) obj;
boolean result = true;
result = result && getTableMetadataMutationsList()
.equals(other.getTableMetadataMutationsList());
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTableMetadataMutationsCount() > 0) {
hash = (37 * hash) + TABLEMETADATAMUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTableMetadataMutationsList().hashCode();
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code UpdateIndexStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_UpdateIndexStateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_UpdateIndexStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_UpdateIndexStateRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = java.util.Collections.unmodifiableList(tableMetadataMutations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tableMetadataMutations_ = tableMetadataMutations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.getDefaultInstance()) return this;
if (!other.tableMetadataMutations_.isEmpty()) {
if (tableMetadataMutations_.isEmpty()) {
tableMetadataMutations_ = other.tableMetadataMutations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.addAll(other.tableMetadataMutations_);
}
onChanged();
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated bytes tableMetadataMutations = 1;
private java.util.List tableMetadataMutations_ = java.util.Collections.emptyList();
private void ensureTableMetadataMutationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tableMetadataMutations_ = new java.util.ArrayList(tableMetadataMutations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public java.util.List
getTableMetadataMutationsList() {
return java.util.Collections.unmodifiableList(tableMetadataMutations_);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public int getTableMetadataMutationsCount() {
return tableMetadataMutations_.size();
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public com.google.protobuf.ByteString getTableMetadataMutations(int index) {
return tableMetadataMutations_.get(index);
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder setTableMetadataMutations(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableMetadataMutationsIsMutable();
tableMetadataMutations_.add(value);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder addAllTableMetadataMutations(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTableMetadataMutationsIsMutable();
super.addAll(values, tableMetadataMutations_);
onChanged();
return this;
}
/**
* repeated bytes tableMetadataMutations = 1;
*/
public Builder clearTableMetadataMutations() {
tableMetadataMutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional int32 clientVersion = 2;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 2;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 clientVersion = 2;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000002;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 2;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:UpdateIndexStateRequest)
}
static {
defaultInstance = new UpdateIndexStateRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:UpdateIndexStateRequest)
}
public interface ClearCacheRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 clientVersion = 1;
/**
* optional int32 clientVersion = 1;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 1;
*/
int getClientVersion();
}
/**
* Protobuf type {@code ClearCacheRequest}
*/
public static final class ClearCacheRequest extends
com.google.protobuf.GeneratedMessage
implements ClearCacheRequestOrBuilder {
// Use ClearCacheRequest.newBuilder() to construct.
private ClearCacheRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearCacheRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearCacheRequest defaultInstance;
public static ClearCacheRequest getDefaultInstance() {
return defaultInstance;
}
public ClearCacheRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearCacheRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearCacheRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearCacheRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 clientVersion = 1;
public static final int CLIENTVERSION_FIELD_NUMBER = 1;
private int clientVersion_;
/**
* optional int32 clientVersion = 1;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 1;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest) obj;
boolean result = true;
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ClearCacheRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.getDefaultInstance()) return this;
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 clientVersion = 1;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 1;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 1;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 1;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000001;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 1;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ClearCacheRequest)
}
static {
defaultInstance = new ClearCacheRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearCacheRequest)
}
public interface ClearCacheResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 unfreedBytes = 1;
/**
* optional int64 unfreedBytes = 1;
*/
boolean hasUnfreedBytes();
/**
* optional int64 unfreedBytes = 1;
*/
long getUnfreedBytes();
}
/**
* Protobuf type {@code ClearCacheResponse}
*/
public static final class ClearCacheResponse extends
com.google.protobuf.GeneratedMessage
implements ClearCacheResponseOrBuilder {
// Use ClearCacheResponse.newBuilder() to construct.
private ClearCacheResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearCacheResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearCacheResponse defaultInstance;
public static ClearCacheResponse getDefaultInstance() {
return defaultInstance;
}
public ClearCacheResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearCacheResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
unfreedBytes_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearCacheResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearCacheResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 unfreedBytes = 1;
public static final int UNFREEDBYTES_FIELD_NUMBER = 1;
private long unfreedBytes_;
/**
* optional int64 unfreedBytes = 1;
*/
public boolean hasUnfreedBytes() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 unfreedBytes = 1;
*/
public long getUnfreedBytes() {
return unfreedBytes_;
}
private void initFields() {
unfreedBytes_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, unfreedBytes_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, unfreedBytes_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse) obj;
boolean result = true;
result = result && (hasUnfreedBytes() == other.hasUnfreedBytes());
if (hasUnfreedBytes()) {
result = result && (getUnfreedBytes()
== other.getUnfreedBytes());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasUnfreedBytes()) {
hash = (37 * hash) + UNFREEDBYTES_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getUnfreedBytes());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ClearCacheResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
unfreedBytes_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearCacheResponse_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.unfreedBytes_ = unfreedBytes_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance()) return this;
if (other.hasUnfreedBytes()) {
setUnfreedBytes(other.getUnfreedBytes());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 unfreedBytes = 1;
private long unfreedBytes_ ;
/**
* optional int64 unfreedBytes = 1;
*/
public boolean hasUnfreedBytes() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 unfreedBytes = 1;
*/
public long getUnfreedBytes() {
return unfreedBytes_;
}
/**
* optional int64 unfreedBytes = 1;
*/
public Builder setUnfreedBytes(long value) {
bitField0_ |= 0x00000001;
unfreedBytes_ = value;
onChanged();
return this;
}
/**
* optional int64 unfreedBytes = 1;
*/
public Builder clearUnfreedBytes() {
bitField0_ = (bitField0_ & ~0x00000001);
unfreedBytes_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ClearCacheResponse)
}
static {
defaultInstance = new ClearCacheResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearCacheResponse)
}
public interface GetVersionRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 clientVersion = 1;
/**
* optional int32 clientVersion = 1;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 1;
*/
int getClientVersion();
}
/**
* Protobuf type {@code GetVersionRequest}
*/
public static final class GetVersionRequest extends
com.google.protobuf.GeneratedMessage
implements GetVersionRequestOrBuilder {
// Use GetVersionRequest.newBuilder() to construct.
private GetVersionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetVersionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetVersionRequest defaultInstance;
public static GetVersionRequest getDefaultInstance() {
return defaultInstance;
}
public GetVersionRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVersionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetVersionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVersionRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 clientVersion = 1;
public static final int CLIENTVERSION_FIELD_NUMBER = 1;
private int clientVersion_;
/**
* optional int32 clientVersion = 1;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 1;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest) obj;
boolean result = true;
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetVersionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.getDefaultInstance()) return this;
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 clientVersion = 1;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 1;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 clientVersion = 1;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 1;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000001;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 1;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetVersionRequest)
}
static {
defaultInstance = new GetVersionRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetVersionRequest)
}
public interface GetVersionResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int64 version = 1;
/**
* required int64 version = 1;
*/
boolean hasVersion();
/**
* required int64 version = 1;
*/
long getVersion();
// optional int64 systemCatalogTimestamp = 2;
/**
* optional int64 systemCatalogTimestamp = 2;
*/
boolean hasSystemCatalogTimestamp();
/**
* optional int64 systemCatalogTimestamp = 2;
*/
long getSystemCatalogTimestamp();
}
/**
* Protobuf type {@code GetVersionResponse}
*/
public static final class GetVersionResponse extends
com.google.protobuf.GeneratedMessage
implements GetVersionResponseOrBuilder {
// Use GetVersionResponse.newBuilder() to construct.
private GetVersionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetVersionResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetVersionResponse defaultInstance;
public static GetVersionResponse getDefaultInstance() {
return defaultInstance;
}
public GetVersionResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVersionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
version_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
systemCatalogTimestamp_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetVersionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVersionResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int64 version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private long version_;
/**
* required int64 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 version = 1;
*/
public long getVersion() {
return version_;
}
// optional int64 systemCatalogTimestamp = 2;
public static final int SYSTEMCATALOGTIMESTAMP_FIELD_NUMBER = 2;
private long systemCatalogTimestamp_;
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public boolean hasSystemCatalogTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public long getSystemCatalogTimestamp() {
return systemCatalogTimestamp_;
}
private void initFields() {
version_ = 0L;
systemCatalogTimestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasVersion()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, systemCatalogTimestamp_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, systemCatalogTimestamp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse) obj;
boolean result = true;
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && (getVersion()
== other.getVersion());
}
result = result && (hasSystemCatalogTimestamp() == other.hasSystemCatalogTimestamp());
if (hasSystemCatalogTimestamp()) {
result = result && (getSystemCatalogTimestamp()
== other.getSystemCatalogTimestamp());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getVersion());
}
if (hasSystemCatalogTimestamp()) {
hash = (37 * hash) + SYSTEMCATALOGTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getSystemCatalogTimestamp());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetVersionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
systemCatalogTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_GetVersionResponse_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.systemCatalogTimestamp_ = systemCatalogTimestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance()) return this;
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (other.hasSystemCatalogTimestamp()) {
setSystemCatalogTimestamp(other.getSystemCatalogTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasVersion()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int64 version = 1;
private long version_ ;
/**
* required int64 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 version = 1;
*/
public long getVersion() {
return version_;
}
/**
* required int64 version = 1;
*/
public Builder setVersion(long value) {
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* required int64 version = 1;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = 0L;
onChanged();
return this;
}
// optional int64 systemCatalogTimestamp = 2;
private long systemCatalogTimestamp_ ;
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public boolean hasSystemCatalogTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public long getSystemCatalogTimestamp() {
return systemCatalogTimestamp_;
}
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public Builder setSystemCatalogTimestamp(long value) {
bitField0_ |= 0x00000002;
systemCatalogTimestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 systemCatalogTimestamp = 2;
*/
public Builder clearSystemCatalogTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
systemCatalogTimestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetVersionResponse)
}
static {
defaultInstance = new GetVersionResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetVersionResponse)
}
public interface ClearTableFromCacheRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required bytes tenantId = 1;
/**
* required bytes tenantId = 1;
*/
boolean hasTenantId();
/**
* required bytes tenantId = 1;
*/
com.google.protobuf.ByteString getTenantId();
// required bytes schemaName = 2;
/**
* required bytes schemaName = 2;
*/
boolean hasSchemaName();
/**
* required bytes schemaName = 2;
*/
com.google.protobuf.ByteString getSchemaName();
// required bytes tableName = 3;
/**
* required bytes tableName = 3;
*/
boolean hasTableName();
/**
* required bytes tableName = 3;
*/
com.google.protobuf.ByteString getTableName();
// required int64 clientTimestamp = 4;
/**
* required int64 clientTimestamp = 4;
*/
boolean hasClientTimestamp();
/**
* required int64 clientTimestamp = 4;
*/
long getClientTimestamp();
// optional int32 clientVersion = 5;
/**
* optional int32 clientVersion = 5;
*/
boolean hasClientVersion();
/**
* optional int32 clientVersion = 5;
*/
int getClientVersion();
}
/**
* Protobuf type {@code ClearTableFromCacheRequest}
*/
public static final class ClearTableFromCacheRequest extends
com.google.protobuf.GeneratedMessage
implements ClearTableFromCacheRequestOrBuilder {
// Use ClearTableFromCacheRequest.newBuilder() to construct.
private ClearTableFromCacheRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearTableFromCacheRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearTableFromCacheRequest defaultInstance;
public static ClearTableFromCacheRequest getDefaultInstance() {
return defaultInstance;
}
public ClearTableFromCacheRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearTableFromCacheRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
tenantId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
schemaName_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
tableName_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
clientTimestamp_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
clientVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearTableFromCacheRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearTableFromCacheRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required bytes tenantId = 1;
public static final int TENANTID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tenantId_;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
// required bytes schemaName = 2;
public static final int SCHEMANAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString schemaName_;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
// required bytes tableName = 3;
public static final int TABLENAME_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString tableName_;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
// required int64 clientTimestamp = 4;
public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 4;
private long clientTimestamp_;
/**
* required int64 clientTimestamp = 4;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 clientTimestamp = 4;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
// optional int32 clientVersion = 5;
public static final int CLIENTVERSION_FIELD_NUMBER = 5;
private int clientVersion_;
/**
* optional int32 clientVersion = 5;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 clientVersion = 5;
*/
public int getClientVersion() {
return clientVersion_;
}
private void initFields() {
tenantId_ = com.google.protobuf.ByteString.EMPTY;
schemaName_ = com.google.protobuf.ByteString.EMPTY;
tableName_ = com.google.protobuf.ByteString.EMPTY;
clientTimestamp_ = 0L;
clientVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTenantId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSchemaName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTableName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientTimestamp()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, clientTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, clientVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tenantId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, clientTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, clientVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest) obj;
boolean result = true;
result = result && (hasTenantId() == other.hasTenantId());
if (hasTenantId()) {
result = result && getTenantId()
.equals(other.getTenantId());
}
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName()
.equals(other.getSchemaName());
}
result = result && (hasTableName() == other.hasTableName());
if (hasTableName()) {
result = result && getTableName()
.equals(other.getTableName());
}
result = result && (hasClientTimestamp() == other.hasClientTimestamp());
if (hasClientTimestamp()) {
result = result && (getClientTimestamp()
== other.getClientTimestamp());
}
result = result && (hasClientVersion() == other.hasClientVersion());
if (hasClientVersion()) {
result = result && (getClientVersion()
== other.getClientVersion());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTenantId()) {
hash = (37 * hash) + TENANTID_FIELD_NUMBER;
hash = (53 * hash) + getTenantId().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMANAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLENAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasClientTimestamp()) {
hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getClientTimestamp());
}
if (hasClientVersion()) {
hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ClearTableFromCacheRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tenantId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
tableName_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
clientTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
clientVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheRequest_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tenantId_ = tenantId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.clientTimestamp_ = clientTimestamp_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.clientVersion_ = clientVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.getDefaultInstance()) return this;
if (other.hasTenantId()) {
setTenantId(other.getTenantId());
}
if (other.hasSchemaName()) {
setSchemaName(other.getSchemaName());
}
if (other.hasTableName()) {
setTableName(other.getTableName());
}
if (other.hasClientTimestamp()) {
setClientTimestamp(other.getClientTimestamp());
}
if (other.hasClientVersion()) {
setClientVersion(other.getClientVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTenantId()) {
return false;
}
if (!hasSchemaName()) {
return false;
}
if (!hasTableName()) {
return false;
}
if (!hasClientTimestamp()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required bytes tenantId = 1;
private com.google.protobuf.ByteString tenantId_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tenantId = 1;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes tenantId = 1;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
/**
* required bytes tenantId = 1;
*/
public Builder setTenantId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tenantId_ = value;
onChanged();
return this;
}
/**
* required bytes tenantId = 1;
*/
public Builder clearTenantId() {
bitField0_ = (bitField0_ & ~0x00000001);
tenantId_ = getDefaultInstance().getTenantId();
onChanged();
return this;
}
// required bytes schemaName = 2;
private com.google.protobuf.ByteString schemaName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes schemaName = 2;
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes schemaName = 2;
*/
public com.google.protobuf.ByteString getSchemaName() {
return schemaName_;
}
/**
* required bytes schemaName = 2;
*/
public Builder setSchemaName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* required bytes schemaName = 2;
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
// required bytes tableName = 3;
private com.google.protobuf.ByteString tableName_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes tableName = 3;
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes tableName = 3;
*/
public com.google.protobuf.ByteString getTableName() {
return tableName_;
}
/**
* required bytes tableName = 3;
*/
public Builder setTableName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
* required bytes tableName = 3;
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
// required int64 clientTimestamp = 4;
private long clientTimestamp_ ;
/**
* required int64 clientTimestamp = 4;
*/
public boolean hasClientTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 clientTimestamp = 4;
*/
public long getClientTimestamp() {
return clientTimestamp_;
}
/**
* required int64 clientTimestamp = 4;
*/
public Builder setClientTimestamp(long value) {
bitField0_ |= 0x00000008;
clientTimestamp_ = value;
onChanged();
return this;
}
/**
* required int64 clientTimestamp = 4;
*/
public Builder clearClientTimestamp() {
bitField0_ = (bitField0_ & ~0x00000008);
clientTimestamp_ = 0L;
onChanged();
return this;
}
// optional int32 clientVersion = 5;
private int clientVersion_ ;
/**
* optional int32 clientVersion = 5;
*/
public boolean hasClientVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 clientVersion = 5;
*/
public int getClientVersion() {
return clientVersion_;
}
/**
* optional int32 clientVersion = 5;
*/
public Builder setClientVersion(int value) {
bitField0_ |= 0x00000010;
clientVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 clientVersion = 5;
*/
public Builder clearClientVersion() {
bitField0_ = (bitField0_ & ~0x00000010);
clientVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ClearTableFromCacheRequest)
}
static {
defaultInstance = new ClearTableFromCacheRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearTableFromCacheRequest)
}
public interface ClearTableFromCacheResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ClearTableFromCacheResponse}
*/
public static final class ClearTableFromCacheResponse extends
com.google.protobuf.GeneratedMessage
implements ClearTableFromCacheResponseOrBuilder {
// Use ClearTableFromCacheResponse.newBuilder() to construct.
private ClearTableFromCacheResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearTableFromCacheResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearTableFromCacheResponse defaultInstance;
public static ClearTableFromCacheResponse getDefaultInstance() {
return defaultInstance;
}
public ClearTableFromCacheResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearTableFromCacheResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearTableFromCacheResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearTableFromCacheResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse other = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse) obj;
boolean result = true;
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ClearTableFromCacheResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.class, org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.internal_static_ClearTableFromCacheResponse_descriptor;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse build() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse buildPartial() {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse result = new org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse other) {
if (other == org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:ClearTableFromCacheResponse)
}
static {
defaultInstance = new ClearTableFromCacheResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearTableFromCacheResponse)
}
/**
* Protobuf service {@code MetaDataService}
*/
public static abstract class MetaDataService
implements com.google.protobuf.Service {
protected MetaDataService() {}
public interface Interface {
/**
* rpc getTable(.GetTableRequest) returns (.MetaDataResponse);
*/
public abstract void getTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getFunctions(.GetFunctionsRequest) returns (.MetaDataResponse);
*/
public abstract void getFunctions(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getSchema(.GetSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void getSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createTable(.CreateTableRequest) returns (.MetaDataResponse);
*/
public abstract void createTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createFunction(.CreateFunctionRequest) returns (.MetaDataResponse);
*/
public abstract void createFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createSchema(.CreateSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void createSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropTable(.DropTableRequest) returns (.MetaDataResponse);
*/
public abstract void dropTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropSchema(.DropSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void dropSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropFunction(.DropFunctionRequest) returns (.MetaDataResponse);
*/
public abstract void dropFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc addColumn(.AddColumnRequest) returns (.MetaDataResponse);
*/
public abstract void addColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropColumn(.DropColumnRequest) returns (.MetaDataResponse);
*/
public abstract void dropColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc updateIndexState(.UpdateIndexStateRequest) returns (.MetaDataResponse);
*/
public abstract void updateIndexState(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc clearCache(.ClearCacheRequest) returns (.ClearCacheResponse);
*/
public abstract void clearCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getVersion(.GetVersionRequest) returns (.GetVersionResponse);
*/
public abstract void getVersion(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc clearTableFromCache(.ClearTableFromCacheRequest) returns (.ClearTableFromCacheResponse);
*/
public abstract void clearTableFromCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request,
com.google.protobuf.RpcCallback done);
}
public static com.google.protobuf.Service newReflectiveService(
final Interface impl) {
return new MetaDataService() {
@java.lang.Override
public void getTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request,
com.google.protobuf.RpcCallback done) {
impl.getTable(controller, request, done);
}
@java.lang.Override
public void getFunctions(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request,
com.google.protobuf.RpcCallback done) {
impl.getFunctions(controller, request, done);
}
@java.lang.Override
public void getSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request,
com.google.protobuf.RpcCallback done) {
impl.getSchema(controller, request, done);
}
@java.lang.Override
public void createTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request,
com.google.protobuf.RpcCallback done) {
impl.createTable(controller, request, done);
}
@java.lang.Override
public void createFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request,
com.google.protobuf.RpcCallback done) {
impl.createFunction(controller, request, done);
}
@java.lang.Override
public void createSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request,
com.google.protobuf.RpcCallback done) {
impl.createSchema(controller, request, done);
}
@java.lang.Override
public void dropTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request,
com.google.protobuf.RpcCallback done) {
impl.dropTable(controller, request, done);
}
@java.lang.Override
public void dropSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request,
com.google.protobuf.RpcCallback done) {
impl.dropSchema(controller, request, done);
}
@java.lang.Override
public void dropFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request,
com.google.protobuf.RpcCallback done) {
impl.dropFunction(controller, request, done);
}
@java.lang.Override
public void addColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request,
com.google.protobuf.RpcCallback done) {
impl.addColumn(controller, request, done);
}
@java.lang.Override
public void dropColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request,
com.google.protobuf.RpcCallback done) {
impl.dropColumn(controller, request, done);
}
@java.lang.Override
public void updateIndexState(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request,
com.google.protobuf.RpcCallback done) {
impl.updateIndexState(controller, request, done);
}
@java.lang.Override
public void clearCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request,
com.google.protobuf.RpcCallback done) {
impl.clearCache(controller, request, done);
}
@java.lang.Override
public void getVersion(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request,
com.google.protobuf.RpcCallback done) {
impl.getVersion(controller, request, done);
}
@java.lang.Override
public void clearTableFromCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request,
com.google.protobuf.RpcCallback done) {
impl.clearTableFromCache(controller, request, done);
}
};
}
public static com.google.protobuf.BlockingService
newReflectiveBlockingService(final BlockingInterface impl) {
return new com.google.protobuf.BlockingService() {
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final com.google.protobuf.Message callBlockingMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request)
throws com.google.protobuf.ServiceException {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callBlockingMethod() given method descriptor for " +
"wrong service type.");
}
switch(method.getIndex()) {
case 0:
return impl.getTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest)request);
case 1:
return impl.getFunctions(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest)request);
case 2:
return impl.getSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest)request);
case 3:
return impl.createTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest)request);
case 4:
return impl.createFunction(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest)request);
case 5:
return impl.createSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest)request);
case 6:
return impl.dropTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest)request);
case 7:
return impl.dropSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest)request);
case 8:
return impl.dropFunction(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest)request);
case 9:
return impl.addColumn(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest)request);
case 10:
return impl.dropColumn(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest)request);
case 11:
return impl.updateIndexState(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest)request);
case 12:
return impl.clearCache(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest)request);
case 13:
return impl.getVersion(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest)request);
case 14:
return impl.clearTableFromCache(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest)request);
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest.getDefaultInstance();
case 1:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest.getDefaultInstance();
case 2:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest.getDefaultInstance();
case 3:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest.getDefaultInstance();
case 4:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest.getDefaultInstance();
case 5:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest.getDefaultInstance();
case 6:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest.getDefaultInstance();
case 7:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest.getDefaultInstance();
case 8:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest.getDefaultInstance();
case 9:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest.getDefaultInstance();
case 10:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest.getDefaultInstance();
case 11:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest.getDefaultInstance();
case 12:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest.getDefaultInstance();
case 13:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest.getDefaultInstance();
case 14:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 1:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 2:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 3:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 4:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 5:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 6:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 7:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 8:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 9:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 10:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 11:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance();
case 12:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance();
case 13:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance();
case 14:
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
};
}
/**
* rpc getTable(.GetTableRequest) returns (.MetaDataResponse);
*/
public abstract void getTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getFunctions(.GetFunctionsRequest) returns (.MetaDataResponse);
*/
public abstract void getFunctions(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getSchema(.GetSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void getSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createTable(.CreateTableRequest) returns (.MetaDataResponse);
*/
public abstract void createTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createFunction(.CreateFunctionRequest) returns (.MetaDataResponse);
*/
public abstract void createFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc createSchema(.CreateSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void createSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropTable(.DropTableRequest) returns (.MetaDataResponse);
*/
public abstract void dropTable(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropSchema(.DropSchemaRequest) returns (.MetaDataResponse);
*/
public abstract void dropSchema(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropFunction(.DropFunctionRequest) returns (.MetaDataResponse);
*/
public abstract void dropFunction(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc addColumn(.AddColumnRequest) returns (.MetaDataResponse);
*/
public abstract void addColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc dropColumn(.DropColumnRequest) returns (.MetaDataResponse);
*/
public abstract void dropColumn(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc updateIndexState(.UpdateIndexStateRequest) returns (.MetaDataResponse);
*/
public abstract void updateIndexState(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc clearCache(.ClearCacheRequest) returns (.ClearCacheResponse);
*/
public abstract void clearCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc getVersion(.GetVersionRequest) returns (.GetVersionResponse);
*/
public abstract void getVersion(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request,
com.google.protobuf.RpcCallback done);
/**
* rpc clearTableFromCache(.ClearTableFromCacheRequest) returns (.ClearTableFromCacheResponse);
*/
public abstract void clearTableFromCache(
com.google.protobuf.RpcController controller,
org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request,
com.google.protobuf.RpcCallback done);
public static final
com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.MetaDataProtos.getDescriptor().getServices().get(0);
}
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final void callMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.RpcCallback<
com.google.protobuf.Message> done) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callMethod() given method descriptor for wrong " +
"service type.");
}
switch(method.getIndex()) {
case 0:
this.getTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 1:
this.getFunctions(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 2:
this.getSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 3:
this.createTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 4:
this.createFunction(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 5:
this.createSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 6:
this.dropTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest)request,
com.google.protobuf.RpcUtil.