| // 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 { |
| /** |
| * <code>TABLE_ALREADY_EXISTS = 0;</code> |
| */ |
| TABLE_ALREADY_EXISTS(0, 0), |
| /** |
| * <code>TABLE_NOT_FOUND = 1;</code> |
| */ |
| TABLE_NOT_FOUND(1, 1), |
| /** |
| * <code>COLUMN_NOT_FOUND = 2;</code> |
| */ |
| COLUMN_NOT_FOUND(2, 2), |
| /** |
| * <code>COLUMN_ALREADY_EXISTS = 3;</code> |
| */ |
| COLUMN_ALREADY_EXISTS(3, 3), |
| /** |
| * <code>CONCURRENT_TABLE_MUTATION = 4;</code> |
| */ |
| CONCURRENT_TABLE_MUTATION(4, 4), |
| /** |
| * <code>TABLE_NOT_IN_REGION = 5;</code> |
| */ |
| TABLE_NOT_IN_REGION(5, 5), |
| /** |
| * <code>NEWER_TABLE_FOUND = 6;</code> |
| */ |
| NEWER_TABLE_FOUND(6, 6), |
| /** |
| * <code>UNALLOWED_TABLE_MUTATION = 7;</code> |
| */ |
| UNALLOWED_TABLE_MUTATION(7, 7), |
| /** |
| * <code>NO_PK_COLUMNS = 8;</code> |
| */ |
| NO_PK_COLUMNS(8, 8), |
| /** |
| * <code>PARENT_TABLE_NOT_FOUND = 9;</code> |
| */ |
| PARENT_TABLE_NOT_FOUND(9, 9), |
| /** |
| * <code>FUNCTION_ALREADY_EXISTS = 10;</code> |
| */ |
| FUNCTION_ALREADY_EXISTS(10, 10), |
| /** |
| * <code>FUNCTION_NOT_FOUND = 11;</code> |
| */ |
| FUNCTION_NOT_FOUND(11, 11), |
| /** |
| * <code>NEWER_FUNCTION_FOUND = 12;</code> |
| */ |
| NEWER_FUNCTION_FOUND(12, 12), |
| /** |
| * <code>FUNCTION_NOT_IN_REGION = 13;</code> |
| */ |
| FUNCTION_NOT_IN_REGION(13, 13), |
| /** |
| * <code>SCHEMA_ALREADY_EXISTS = 14;</code> |
| */ |
| SCHEMA_ALREADY_EXISTS(14, 14), |
| /** |
| * <code>NEWER_SCHEMA_FOUND = 15;</code> |
| */ |
| NEWER_SCHEMA_FOUND(15, 15), |
| /** |
| * <code>SCHEMA_NOT_FOUND = 16;</code> |
| */ |
| SCHEMA_NOT_FOUND(16, 16), |
| /** |
| * <code>SCHEMA_NOT_IN_REGION = 17;</code> |
| */ |
| SCHEMA_NOT_IN_REGION(17, 17), |
| /** |
| * <code>TABLES_EXIST_ON_SCHEMA = 18;</code> |
| */ |
| TABLES_EXIST_ON_SCHEMA(18, 18), |
| /** |
| * <code>UNALLOWED_SCHEMA_MUTATION = 19;</code> |
| */ |
| UNALLOWED_SCHEMA_MUTATION(19, 19), |
| /** |
| * <code>AUTO_PARTITION_SEQUENCE_NOT_FOUND = 20;</code> |
| */ |
| AUTO_PARTITION_SEQUENCE_NOT_FOUND(20, 20), |
| /** |
| * <code>CANNOT_COERCE_AUTO_PARTITION_ID = 21;</code> |
| */ |
| CANNOT_COERCE_AUTO_PARTITION_ID(21, 21), |
| /** |
| * <code>TOO_MANY_INDEXES = 22;</code> |
| */ |
| TOO_MANY_INDEXES(22, 22), |
| /** |
| * <code>UNABLE_TO_CREATE_CHILD_LINK = 23;</code> |
| */ |
| UNABLE_TO_CREATE_CHILD_LINK(23, 23), |
| /** |
| * <code>UNABLE_TO_UPDATE_PARENT_TABLE = 24;</code> |
| */ |
| UNABLE_TO_UPDATE_PARENT_TABLE(24, 24), |
| ; |
| |
| /** |
| * <code>TABLE_ALREADY_EXISTS = 0;</code> |
| */ |
| public static final int TABLE_ALREADY_EXISTS_VALUE = 0; |
| /** |
| * <code>TABLE_NOT_FOUND = 1;</code> |
| */ |
| public static final int TABLE_NOT_FOUND_VALUE = 1; |
| /** |
| * <code>COLUMN_NOT_FOUND = 2;</code> |
| */ |
| public static final int COLUMN_NOT_FOUND_VALUE = 2; |
| /** |
| * <code>COLUMN_ALREADY_EXISTS = 3;</code> |
| */ |
| public static final int COLUMN_ALREADY_EXISTS_VALUE = 3; |
| /** |
| * <code>CONCURRENT_TABLE_MUTATION = 4;</code> |
| */ |
| public static final int CONCURRENT_TABLE_MUTATION_VALUE = 4; |
| /** |
| * <code>TABLE_NOT_IN_REGION = 5;</code> |
| */ |
| public static final int TABLE_NOT_IN_REGION_VALUE = 5; |
| /** |
| * <code>NEWER_TABLE_FOUND = 6;</code> |
| */ |
| public static final int NEWER_TABLE_FOUND_VALUE = 6; |
| /** |
| * <code>UNALLOWED_TABLE_MUTATION = 7;</code> |
| */ |
| public static final int UNALLOWED_TABLE_MUTATION_VALUE = 7; |
| /** |
| * <code>NO_PK_COLUMNS = 8;</code> |
| */ |
| public static final int NO_PK_COLUMNS_VALUE = 8; |
| /** |
| * <code>PARENT_TABLE_NOT_FOUND = 9;</code> |
| */ |
| public static final int PARENT_TABLE_NOT_FOUND_VALUE = 9; |
| /** |
| * <code>FUNCTION_ALREADY_EXISTS = 10;</code> |
| */ |
| public static final int FUNCTION_ALREADY_EXISTS_VALUE = 10; |
| /** |
| * <code>FUNCTION_NOT_FOUND = 11;</code> |
| */ |
| public static final int FUNCTION_NOT_FOUND_VALUE = 11; |
| /** |
| * <code>NEWER_FUNCTION_FOUND = 12;</code> |
| */ |
| public static final int NEWER_FUNCTION_FOUND_VALUE = 12; |
| /** |
| * <code>FUNCTION_NOT_IN_REGION = 13;</code> |
| */ |
| public static final int FUNCTION_NOT_IN_REGION_VALUE = 13; |
| /** |
| * <code>SCHEMA_ALREADY_EXISTS = 14;</code> |
| */ |
| public static final int SCHEMA_ALREADY_EXISTS_VALUE = 14; |
| /** |
| * <code>NEWER_SCHEMA_FOUND = 15;</code> |
| */ |
| public static final int NEWER_SCHEMA_FOUND_VALUE = 15; |
| /** |
| * <code>SCHEMA_NOT_FOUND = 16;</code> |
| */ |
| public static final int SCHEMA_NOT_FOUND_VALUE = 16; |
| /** |
| * <code>SCHEMA_NOT_IN_REGION = 17;</code> |
| */ |
| public static final int SCHEMA_NOT_IN_REGION_VALUE = 17; |
| /** |
| * <code>TABLES_EXIST_ON_SCHEMA = 18;</code> |
| */ |
| public static final int TABLES_EXIST_ON_SCHEMA_VALUE = 18; |
| /** |
| * <code>UNALLOWED_SCHEMA_MUTATION = 19;</code> |
| */ |
| public static final int UNALLOWED_SCHEMA_MUTATION_VALUE = 19; |
| /** |
| * <code>AUTO_PARTITION_SEQUENCE_NOT_FOUND = 20;</code> |
| */ |
| public static final int AUTO_PARTITION_SEQUENCE_NOT_FOUND_VALUE = 20; |
| /** |
| * <code>CANNOT_COERCE_AUTO_PARTITION_ID = 21;</code> |
| */ |
| public static final int CANNOT_COERCE_AUTO_PARTITION_ID_VALUE = 21; |
| /** |
| * <code>TOO_MANY_INDEXES = 22;</code> |
| */ |
| public static final int TOO_MANY_INDEXES_VALUE = 22; |
| /** |
| * <code>UNABLE_TO_CREATE_CHILD_LINK = 23;</code> |
| */ |
| public static final int UNABLE_TO_CREATE_CHILD_LINK_VALUE = 23; |
| /** |
| * <code>UNABLE_TO_UPDATE_PARENT_TABLE = 24;</code> |
| */ |
| public static final int UNABLE_TO_UPDATE_PARENT_TABLE_VALUE = 24; |
| |
| |
| 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; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<MutationCode> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<MutationCode> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<MutationCode>() { |
| 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; |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| boolean hasTenantId(); |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTenantId(); |
| |
| // required bytes schemaName = 2; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| com.google.protobuf.ByteString getSchemaName(); |
| |
| // required bytes tableName = 3; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| boolean hasTableName(); |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| com.google.protobuf.ByteString getTableName(); |
| |
| // repeated .PColumn columns = 4; |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> |
| getColumnsList(); |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index); |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| int getColumnsCount(); |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| java.util.List<? extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder> |
| getColumnsOrBuilderList(); |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder getColumnsOrBuilder( |
| int index); |
| |
| // repeated bytes physicalNames = 5; |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getPhysicalNamesList(); |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| int getPhysicalNamesCount(); |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| com.google.protobuf.ByteString getPhysicalNames(int index); |
| |
| // required int64 viewIndexId = 6; |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| boolean hasViewIndexId(); |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| long getViewIndexId(); |
| |
| // optional int32 viewIndexIdType = 7 [default = 5]; |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| boolean hasViewIndexIdType(); |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| 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<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn>(); |
| 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<com.google.protobuf.ByteString>(); |
| 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<SharedTableState> PARSER = |
| new com.google.protobuf.AbstractParser<SharedTableState>() { |
| 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<SharedTableState> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional bytes tenantId = 1; |
| public static final int TENANTID_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString tenantId_; |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| |
| // repeated .PColumn columns = 4; |
| public static final int COLUMNS_FIELD_NUMBER = 4; |
| private java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> columns_; |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> getColumnsList() { |
| return columns_; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public java.util.List<? extends org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder> |
| getColumnsOrBuilderList() { |
| return columns_; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public int getColumnsCount() { |
| return columns_.size(); |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index) { |
| return columns_.get(index); |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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<com.google.protobuf.ByteString> physicalNames_; |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getPhysicalNamesList() { |
| return physicalNames_; |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public int getPhysicalNamesCount() { |
| return physicalNames_.size(); |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| 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_; |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public boolean hasViewIndexId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public long getViewIndexId() { |
| return viewIndexId_; |
| } |
| |
| // optional int32 viewIndexIdType = 7 [default = 5]; |
| public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 7; |
| private int viewIndexIdType_; |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| public boolean hasViewIndexIdType() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| 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<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; |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTenantId() { |
| return tenantId_; |
| } |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| public Builder setTenantId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| tenantId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bytes tenantId = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public com.google.protobuf.ByteString getSchemaName() { |
| return schemaName_; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public Builder setSchemaName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder setTableName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| tableName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder clearTableName() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| tableName_ = getDefaultInstance().getTableName(); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .PColumn columns = 4; |
| private java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> columns_ = |
| java.util.Collections.emptyList(); |
| private void ensureColumnsIsMutable() { |
| if (!((bitField0_ & 0x00000008) == 0x00000008)) { |
| columns_ = new java.util.ArrayList<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn>(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_; |
| |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn> getColumnsList() { |
| if (columnsBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(columns_); |
| } else { |
| return columnsBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public int getColumnsCount() { |
| if (columnsBuilder_ == null) { |
| return columns_.size(); |
| } else { |
| return columnsBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn getColumns(int index) { |
| if (columnsBuilder_ == null) { |
| return columns_.get(index); |
| } else { |
| return columnsBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public Builder clearColumns() { |
| if (columnsBuilder_ == null) { |
| columns_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| onChanged(); |
| } else { |
| columnsBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public Builder removeColumns(int index) { |
| if (columnsBuilder_ == null) { |
| ensureColumnsIsMutable(); |
| columns_.remove(index); |
| onChanged(); |
| } else { |
| columnsBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder getColumnsBuilder( |
| int index) { |
| return getColumnsFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumnOrBuilder getColumnsOrBuilder( |
| int index) { |
| if (columnsBuilder_ == null) { |
| return columns_.get(index); } else { |
| return columnsBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| 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_); |
| } |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder addColumnsBuilder() { |
| return getColumnsFieldBuilder().addBuilder( |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder addColumnsBuilder( |
| int index) { |
| return getColumnsFieldBuilder().addBuilder( |
| index, org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .PColumn columns = 4;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PTableProtos.PColumn.Builder> |
| 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<com.google.protobuf.ByteString> physicalNames_ = java.util.Collections.emptyList(); |
| private void ensurePhysicalNamesIsMutable() { |
| if (!((bitField0_ & 0x00000010) == 0x00000010)) { |
| physicalNames_ = new java.util.ArrayList<com.google.protobuf.ByteString>(physicalNames_); |
| bitField0_ |= 0x00000010; |
| } |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getPhysicalNamesList() { |
| return java.util.Collections.unmodifiableList(physicalNames_); |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public int getPhysicalNamesCount() { |
| return physicalNames_.size(); |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public com.google.protobuf.ByteString getPhysicalNames(int index) { |
| return physicalNames_.get(index); |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public Builder setPhysicalNames( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePhysicalNamesIsMutable(); |
| physicalNames_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public Builder addPhysicalNames(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePhysicalNamesIsMutable(); |
| physicalNames_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public Builder addAllPhysicalNames( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensurePhysicalNamesIsMutable(); |
| super.addAll(values, physicalNames_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes physicalNames = 5;</code> |
| */ |
| public Builder clearPhysicalNames() { |
| physicalNames_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000010); |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 viewIndexId = 6; |
| private long viewIndexId_ ; |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public boolean hasViewIndexId() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public long getViewIndexId() { |
| return viewIndexId_; |
| } |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public Builder setViewIndexId(long value) { |
| bitField0_ |= 0x00000020; |
| viewIndexId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 viewIndexId = 6;</code> |
| */ |
| public Builder clearViewIndexId() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| viewIndexId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 viewIndexIdType = 7 [default = 5]; |
| private int viewIndexIdType_ = 5; |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| public boolean hasViewIndexIdType() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| public int getViewIndexIdType() { |
| return viewIndexIdType_; |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| public Builder setViewIndexIdType(int value) { |
| bitField0_ |= 0x00000040; |
| viewIndexIdType_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 7 [default = 5];</code> |
| */ |
| 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; |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| boolean hasReturnCode(); |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode getReturnCode(); |
| |
| // optional int64 mutationTime = 2; |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| boolean hasMutationTime(); |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| long getMutationTime(); |
| |
| // optional .PTable table = 3; |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| boolean hasTable(); |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable(); |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getTableOrBuilder(); |
| |
| // repeated bytes tablesToDelete = 4; |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTablesToDeleteList(); |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| int getTablesToDeleteCount(); |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| com.google.protobuf.ByteString getTablesToDelete(int index); |
| |
| // optional bytes columnName = 5; |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| boolean hasColumnName(); |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| com.google.protobuf.ByteString getColumnName(); |
| |
| // optional bytes familyName = 6; |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| boolean hasFamilyName(); |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| com.google.protobuf.ByteString getFamilyName(); |
| |
| // optional bytes functionName = 7; |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| boolean hasFunctionName(); |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| com.google.protobuf.ByteString getFunctionName(); |
| |
| // repeated .PFunction function = 8; |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> |
| getFunctionList(); |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index); |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| int getFunctionCount(); |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| java.util.List<? extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder> |
| getFunctionOrBuilderList(); |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder getFunctionOrBuilder( |
| int index); |
| |
| // repeated .SharedTableState sharedTablesToDelete = 9; |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| java.util.List<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> |
| getSharedTablesToDeleteList(); |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index); |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| int getSharedTablesToDeleteCount(); |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| java.util.List<? extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder> |
| getSharedTablesToDeleteOrBuilderList(); |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder getSharedTablesToDeleteOrBuilder( |
| int index); |
| |
| // optional .PSchema schema = 10; |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| boolean hasSchema(); |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema(); |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder getSchemaOrBuilder(); |
| |
| // optional int64 autoPartitionNum = 11; |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| boolean hasAutoPartitionNum(); |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| long getAutoPartitionNum(); |
| |
| // optional int64 viewIndexId = 12; |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| boolean hasViewIndexId(); |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| long getViewIndexId(); |
| |
| // optional int32 viewIndexIdType = 13 [default = 5]; |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| boolean hasViewIndexIdType(); |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction>(); |
| 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState>(); |
| 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<MetaDataResponse> PARSER = |
| new com.google.protobuf.AbstractParser<MetaDataResponse>() { |
| 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<MetaDataResponse> 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_; |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| public boolean hasReturnCode() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| public boolean hasMutationTime() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public boolean hasTable() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable() { |
| return table_; |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| 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<com.google.protobuf.ByteString> tablesToDelete_; |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTablesToDeleteList() { |
| return tablesToDelete_; |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public int getTablesToDeleteCount() { |
| return tablesToDelete_.size(); |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| public boolean hasColumnName() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| public boolean hasFamilyName() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public boolean hasFunctionName() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public com.google.protobuf.ByteString getFunctionName() { |
| return functionName_; |
| } |
| |
| // repeated .PFunction function = 8; |
| public static final int FUNCTION_FIELD_NUMBER = 8; |
| private java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> function_; |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> getFunctionList() { |
| return function_; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public java.util.List<? extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder> |
| getFunctionOrBuilderList() { |
| return function_; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public int getFunctionCount() { |
| return function_.size(); |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index) { |
| return function_.get(index); |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> sharedTablesToDelete_; |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> getSharedTablesToDeleteList() { |
| return sharedTablesToDelete_; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public java.util.List<? extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder> |
| getSharedTablesToDeleteOrBuilderList() { |
| return sharedTablesToDelete_; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public int getSharedTablesToDeleteCount() { |
| return sharedTablesToDelete_.size(); |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index) { |
| return sharedTablesToDelete_.get(index); |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema() { |
| return schema_; |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public boolean hasAutoPartitionNum() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public long getAutoPartitionNum() { |
| return autoPartitionNum_; |
| } |
| |
| // optional int64 viewIndexId = 12; |
| public static final int VIEWINDEXID_FIELD_NUMBER = 12; |
| private long viewIndexId_; |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public boolean hasViewIndexId() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public long getViewIndexId() { |
| return viewIndexId_; |
| } |
| |
| // optional int32 viewIndexIdType = 13 [default = 5]; |
| public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 13; |
| private int viewIndexIdType_; |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| public boolean hasViewIndexIdType() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| 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<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; |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| public boolean hasReturnCode() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode getReturnCode() { |
| return returnCode_; |
| } |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| public Builder setReturnCode(org.apache.phoenix.coprocessor.generated.MetaDataProtos.MutationCode value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| returnCode_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional .MutationCode returnCode = 1;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| public boolean hasMutationTime() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| public long getMutationTime() { |
| return mutationTime_; |
| } |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| public Builder setMutationTime(long value) { |
| bitField0_ |= 0x00000002; |
| mutationTime_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 mutationTime = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public boolean hasTable() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getTable() { |
| if (tableBuilder_ == null) { |
| return table_; |
| } else { |
| return tableBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public Builder clearTable() { |
| if (tableBuilder_ == null) { |
| table_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance(); |
| onChanged(); |
| } else { |
| tableBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getTableBuilder() { |
| bitField0_ |= 0x00000004; |
| onChanged(); |
| return getTableFieldBuilder().getBuilder(); |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getTableOrBuilder() { |
| if (tableBuilder_ != null) { |
| return tableBuilder_.getMessageOrBuilder(); |
| } else { |
| return table_; |
| } |
| } |
| /** |
| * <code>optional .PTable table = 3;</code> |
| */ |
| 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<com.google.protobuf.ByteString> tablesToDelete_ = java.util.Collections.emptyList(); |
| private void ensureTablesToDeleteIsMutable() { |
| if (!((bitField0_ & 0x00000008) == 0x00000008)) { |
| tablesToDelete_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tablesToDelete_); |
| bitField0_ |= 0x00000008; |
| } |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTablesToDeleteList() { |
| return java.util.Collections.unmodifiableList(tablesToDelete_); |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public int getTablesToDeleteCount() { |
| return tablesToDelete_.size(); |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public com.google.protobuf.ByteString getTablesToDelete(int index) { |
| return tablesToDelete_.get(index); |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public Builder setTablesToDelete( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTablesToDeleteIsMutable(); |
| tablesToDelete_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public Builder addTablesToDelete(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTablesToDeleteIsMutable(); |
| tablesToDelete_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| public Builder addAllTablesToDelete( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTablesToDeleteIsMutable(); |
| super.addAll(values, tablesToDelete_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tablesToDelete = 4;</code> |
| */ |
| 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; |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| public boolean hasColumnName() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| public com.google.protobuf.ByteString getColumnName() { |
| return columnName_; |
| } |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| public Builder setColumnName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| columnName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bytes columnName = 5;</code> |
| */ |
| 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; |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| public boolean hasFamilyName() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| public com.google.protobuf.ByteString getFamilyName() { |
| return familyName_; |
| } |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| public Builder setFamilyName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| familyName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bytes familyName = 6;</code> |
| */ |
| 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; |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public boolean hasFunctionName() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public com.google.protobuf.ByteString getFunctionName() { |
| return functionName_; |
| } |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public Builder setFunctionName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000040; |
| functionName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bytes functionName = 7;</code> |
| */ |
| public Builder clearFunctionName() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| functionName_ = getDefaultInstance().getFunctionName(); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .PFunction function = 8; |
| private java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> function_ = |
| java.util.Collections.emptyList(); |
| private void ensureFunctionIsMutable() { |
| if (!((bitField0_ & 0x00000080) == 0x00000080)) { |
| function_ = new java.util.ArrayList<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction>(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_; |
| |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction> getFunctionList() { |
| if (functionBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(function_); |
| } else { |
| return functionBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public int getFunctionCount() { |
| if (functionBuilder_ == null) { |
| return function_.size(); |
| } else { |
| return functionBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getFunction(int index) { |
| if (functionBuilder_ == null) { |
| return function_.get(index); |
| } else { |
| return functionBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public Builder clearFunction() { |
| if (functionBuilder_ == null) { |
| function_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| onChanged(); |
| } else { |
| functionBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public Builder removeFunction(int index) { |
| if (functionBuilder_ == null) { |
| ensureFunctionIsMutable(); |
| function_.remove(index); |
| onChanged(); |
| } else { |
| functionBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder getFunctionBuilder( |
| int index) { |
| return getFunctionFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder getFunctionOrBuilder( |
| int index) { |
| if (functionBuilder_ == null) { |
| return function_.get(index); } else { |
| return functionBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| 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_); |
| } |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder addFunctionBuilder() { |
| return getFunctionFieldBuilder().addBuilder( |
| org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder addFunctionBuilder( |
| int index) { |
| return getFunctionFieldBuilder().addBuilder( |
| index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .PFunction function = 8;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder> |
| 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> sharedTablesToDelete_ = |
| java.util.Collections.emptyList(); |
| private void ensureSharedTablesToDeleteIsMutable() { |
| if (!((bitField0_ & 0x00000100) == 0x00000100)) { |
| sharedTablesToDelete_ = new java.util.ArrayList<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState>(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_; |
| |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState> getSharedTablesToDeleteList() { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(sharedTablesToDelete_); |
| } else { |
| return sharedTablesToDeleteBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public int getSharedTablesToDeleteCount() { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| return sharedTablesToDelete_.size(); |
| } else { |
| return sharedTablesToDeleteBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState getSharedTablesToDelete(int index) { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| return sharedTablesToDelete_.get(index); |
| } else { |
| return sharedTablesToDeleteBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public Builder clearSharedTablesToDelete() { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| sharedTablesToDelete_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000100); |
| onChanged(); |
| } else { |
| sharedTablesToDeleteBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public Builder removeSharedTablesToDelete(int index) { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| ensureSharedTablesToDeleteIsMutable(); |
| sharedTablesToDelete_.remove(index); |
| onChanged(); |
| } else { |
| sharedTablesToDeleteBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder getSharedTablesToDeleteBuilder( |
| int index) { |
| return getSharedTablesToDeleteFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableStateOrBuilder getSharedTablesToDeleteOrBuilder( |
| int index) { |
| if (sharedTablesToDeleteBuilder_ == null) { |
| return sharedTablesToDelete_.get(index); } else { |
| return sharedTablesToDeleteBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| 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_); |
| } |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder addSharedTablesToDeleteBuilder() { |
| return getSharedTablesToDeleteFieldBuilder().addBuilder( |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder addSharedTablesToDeleteBuilder( |
| int index) { |
| return getSharedTablesToDeleteFieldBuilder().addBuilder( |
| index, org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .SharedTableState sharedTablesToDelete = 9;</code> |
| */ |
| public java.util.List<org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState.Builder> |
| 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_; |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema getSchema() { |
| if (schemaBuilder_ == null) { |
| return schema_; |
| } else { |
| return schemaBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| 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; |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public Builder clearSchema() { |
| if (schemaBuilder_ == null) { |
| schema_ = org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.getDefaultInstance(); |
| onChanged(); |
| } else { |
| schemaBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000200); |
| return this; |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchema.Builder getSchemaBuilder() { |
| bitField0_ |= 0x00000200; |
| onChanged(); |
| return getSchemaFieldBuilder().getBuilder(); |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PSchemaProtos.PSchemaOrBuilder getSchemaOrBuilder() { |
| if (schemaBuilder_ != null) { |
| return schemaBuilder_.getMessageOrBuilder(); |
| } else { |
| return schema_; |
| } |
| } |
| /** |
| * <code>optional .PSchema schema = 10;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public boolean hasAutoPartitionNum() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public long getAutoPartitionNum() { |
| return autoPartitionNum_; |
| } |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public Builder setAutoPartitionNum(long value) { |
| bitField0_ |= 0x00000400; |
| autoPartitionNum_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 autoPartitionNum = 11;</code> |
| */ |
| public Builder clearAutoPartitionNum() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| autoPartitionNum_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int64 viewIndexId = 12; |
| private long viewIndexId_ ; |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public boolean hasViewIndexId() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public long getViewIndexId() { |
| return viewIndexId_; |
| } |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public Builder setViewIndexId(long value) { |
| bitField0_ |= 0x00000800; |
| viewIndexId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 viewIndexId = 12;</code> |
| */ |
| public Builder clearViewIndexId() { |
| bitField0_ = (bitField0_ & ~0x00000800); |
| viewIndexId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 viewIndexIdType = 13 [default = 5]; |
| private int viewIndexIdType_ = 5; |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| public boolean hasViewIndexIdType() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| public int getViewIndexIdType() { |
| return viewIndexIdType_; |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| public Builder setViewIndexIdType(int value) { |
| bitField0_ |= 0x00001000; |
| viewIndexIdType_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 viewIndexIdType = 13 [default = 5];</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| boolean hasTenantId(); |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTenantId(); |
| |
| // required bytes schemaName = 2; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| com.google.protobuf.ByteString getSchemaName(); |
| |
| // required bytes tableName = 3; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| boolean hasTableName(); |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| com.google.protobuf.ByteString getTableName(); |
| |
| // required int64 tableTimestamp = 4; |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| boolean hasTableTimestamp(); |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| long getTableTimestamp(); |
| |
| // required int64 clientTimestamp = 5; |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| boolean hasClientTimestamp(); |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| long getClientTimestamp(); |
| |
| // optional int32 clientVersion = 6; |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| int getClientVersion(); |
| |
| // optional bool skipAddingParentColumns = 7; |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| boolean hasSkipAddingParentColumns(); |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| boolean getSkipAddingParentColumns(); |
| |
| // optional bool skipAddingIndexes = 8; |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| boolean hasSkipAddingIndexes(); |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| boolean getSkipAddingIndexes(); |
| |
| // optional .PTable lockedAncestorTable = 9; |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| boolean hasLockedAncestorTable(); |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getLockedAncestorTable(); |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getLockedAncestorTableOrBuilder(); |
| } |
| /** |
| * 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; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| skipAddingParentColumns_ = input.readBool(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| skipAddingIndexes_ = input.readBool(); |
| break; |
| } |
| case 74: { |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder subBuilder = null; |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| subBuilder = lockedAncestorTable_.toBuilder(); |
| } |
| lockedAncestorTable_ = input.readMessage(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.PARSER, extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(lockedAncestorTable_); |
| lockedAncestorTable_ = subBuilder.buildPartial(); |
| } |
| bitField0_ |= 0x00000100; |
| 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<GetTableRequest> PARSER = |
| new com.google.protobuf.AbstractParser<GetTableRequest>() { |
| 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<GetTableRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bytes tenantId = 1; |
| public static final int TENANTID_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString tenantId_; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| |
| // required int64 tableTimestamp = 4; |
| public static final int TABLETIMESTAMP_FIELD_NUMBER = 4; |
| private long tableTimestamp_; |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public boolean hasTableTimestamp() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public long getTableTimestamp() { |
| return tableTimestamp_; |
| } |
| |
| // required int64 clientTimestamp = 5; |
| public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 5; |
| private long clientTimestamp_; |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| |
| // optional int32 clientVersion = 6; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 6; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| |
| // optional bool skipAddingParentColumns = 7; |
| public static final int SKIPADDINGPARENTCOLUMNS_FIELD_NUMBER = 7; |
| private boolean skipAddingParentColumns_; |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public boolean hasSkipAddingParentColumns() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public boolean getSkipAddingParentColumns() { |
| return skipAddingParentColumns_; |
| } |
| |
| // optional bool skipAddingIndexes = 8; |
| public static final int SKIPADDINGINDEXES_FIELD_NUMBER = 8; |
| private boolean skipAddingIndexes_; |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public boolean hasSkipAddingIndexes() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public boolean getSkipAddingIndexes() { |
| return skipAddingIndexes_; |
| } |
| |
| // optional .PTable lockedAncestorTable = 9; |
| public static final int LOCKEDANCESTORTABLE_FIELD_NUMBER = 9; |
| private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable lockedAncestorTable_; |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public boolean hasLockedAncestorTable() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getLockedAncestorTable() { |
| return lockedAncestorTable_; |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getLockedAncestorTableOrBuilder() { |
| return lockedAncestorTable_; |
| } |
| |
| 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; |
| skipAddingParentColumns_ = false; |
| skipAddingIndexes_ = false; |
| lockedAncestorTable_ = 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 (!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; |
| } |
| if (hasLockedAncestorTable()) { |
| if (!getLockedAncestorTable().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_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt64(4, tableTimestamp_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeInt64(5, clientTimestamp_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeInt32(6, clientVersion_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBool(7, skipAddingParentColumns_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeBool(8, skipAddingIndexes_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeMessage(9, lockedAncestorTable_); |
| } |
| 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_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(7, skipAddingParentColumns_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(8, skipAddingIndexes_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(9, lockedAncestorTable_); |
| } |
| 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 && (hasSkipAddingParentColumns() == other.hasSkipAddingParentColumns()); |
| if (hasSkipAddingParentColumns()) { |
| result = result && (getSkipAddingParentColumns() |
| == other.getSkipAddingParentColumns()); |
| } |
| result = result && (hasSkipAddingIndexes() == other.hasSkipAddingIndexes()); |
| if (hasSkipAddingIndexes()) { |
| result = result && (getSkipAddingIndexes() |
| == other.getSkipAddingIndexes()); |
| } |
| result = result && (hasLockedAncestorTable() == other.hasLockedAncestorTable()); |
| if (hasLockedAncestorTable()) { |
| result = result && getLockedAncestorTable() |
| .equals(other.getLockedAncestorTable()); |
| } |
| 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(); |
| } |
| if (hasSkipAddingParentColumns()) { |
| hash = (37 * hash) + SKIPADDINGPARENTCOLUMNS_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getSkipAddingParentColumns()); |
| } |
| if (hasSkipAddingIndexes()) { |
| hash = (37 * hash) + SKIPADDINGINDEXES_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getSkipAddingIndexes()); |
| } |
| if (hasLockedAncestorTable()) { |
| hash = (37 * hash) + LOCKEDANCESTORTABLE_FIELD_NUMBER; |
| hash = (53 * hash) + getLockedAncestorTable().hashCode(); |
| } |
| 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<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) { |
| getLockedAncestorTableFieldBuilder(); |
| } |
| } |
| 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); |
| skipAddingParentColumns_ = false; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| skipAddingIndexes_ = false; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| if (lockedAncestorTableBuilder_ == null) { |
| lockedAncestorTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance(); |
| } else { |
| lockedAncestorTableBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000100); |
| 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_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.skipAddingParentColumns_ = skipAddingParentColumns_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.skipAddingIndexes_ = skipAddingIndexes_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| if (lockedAncestorTableBuilder_ == null) { |
| result.lockedAncestorTable_ = lockedAncestorTable_; |
| } else { |
| result.lockedAncestorTable_ = lockedAncestorTableBuilder_.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.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()); |
| } |
| if (other.hasSkipAddingParentColumns()) { |
| setSkipAddingParentColumns(other.getSkipAddingParentColumns()); |
| } |
| if (other.hasSkipAddingIndexes()) { |
| setSkipAddingIndexes(other.getSkipAddingIndexes()); |
| } |
| if (other.hasLockedAncestorTable()) { |
| mergeLockedAncestorTable(other.getLockedAncestorTable()); |
| } |
| 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; |
| } |
| if (hasLockedAncestorTable()) { |
| if (!getLockedAncestorTable().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.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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTenantId() { |
| return tenantId_; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public Builder setTenantId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| tenantId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public com.google.protobuf.ByteString getSchemaName() { |
| return schemaName_; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public Builder setSchemaName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder setTableName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| tableName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder clearTableName() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| tableName_ = getDefaultInstance().getTableName(); |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 tableTimestamp = 4; |
| private long tableTimestamp_ ; |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public boolean hasTableTimestamp() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public long getTableTimestamp() { |
| return tableTimestamp_; |
| } |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public Builder setTableTimestamp(long value) { |
| bitField0_ |= 0x00000008; |
| tableTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 tableTimestamp = 4;</code> |
| */ |
| public Builder clearTableTimestamp() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| tableTimestamp_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 clientTimestamp = 5; |
| private long clientTimestamp_ ; |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public Builder setClientTimestamp(long value) { |
| bitField0_ |= 0x00000010; |
| clientTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 5;</code> |
| */ |
| public Builder clearClientTimestamp() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| clientTimestamp_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 6; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000020; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 6;</code> |
| */ |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| clientVersion_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool skipAddingParentColumns = 7; |
| private boolean skipAddingParentColumns_ ; |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public boolean hasSkipAddingParentColumns() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public boolean getSkipAddingParentColumns() { |
| return skipAddingParentColumns_; |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public Builder setSkipAddingParentColumns(boolean value) { |
| bitField0_ |= 0x00000040; |
| skipAddingParentColumns_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 7;</code> |
| */ |
| public Builder clearSkipAddingParentColumns() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| skipAddingParentColumns_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool skipAddingIndexes = 8; |
| private boolean skipAddingIndexes_ ; |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public boolean hasSkipAddingIndexes() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public boolean getSkipAddingIndexes() { |
| return skipAddingIndexes_; |
| } |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public Builder setSkipAddingIndexes(boolean value) { |
| bitField0_ |= 0x00000080; |
| skipAddingIndexes_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool skipAddingIndexes = 8;</code> |
| */ |
| public Builder clearSkipAddingIndexes() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| skipAddingIndexes_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional .PTable lockedAncestorTable = 9; |
| private org.apache.phoenix.coprocessor.generated.PTableProtos.PTable lockedAncestorTable_ = 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> lockedAncestorTableBuilder_; |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public boolean hasLockedAncestorTable() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable getLockedAncestorTable() { |
| if (lockedAncestorTableBuilder_ == null) { |
| return lockedAncestorTable_; |
| } else { |
| return lockedAncestorTableBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public Builder setLockedAncestorTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) { |
| if (lockedAncestorTableBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lockedAncestorTable_ = value; |
| onChanged(); |
| } else { |
| lockedAncestorTableBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public Builder setLockedAncestorTable( |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder builderForValue) { |
| if (lockedAncestorTableBuilder_ == null) { |
| lockedAncestorTable_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| lockedAncestorTableBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public Builder mergeLockedAncestorTable(org.apache.phoenix.coprocessor.generated.PTableProtos.PTable value) { |
| if (lockedAncestorTableBuilder_ == null) { |
| if (((bitField0_ & 0x00000100) == 0x00000100) && |
| lockedAncestorTable_ != org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance()) { |
| lockedAncestorTable_ = |
| org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.newBuilder(lockedAncestorTable_).mergeFrom(value).buildPartial(); |
| } else { |
| lockedAncestorTable_ = value; |
| } |
| onChanged(); |
| } else { |
| lockedAncestorTableBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public Builder clearLockedAncestorTable() { |
| if (lockedAncestorTableBuilder_ == null) { |
| lockedAncestorTable_ = org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.getDefaultInstance(); |
| onChanged(); |
| } else { |
| lockedAncestorTableBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000100); |
| return this; |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTable.Builder getLockedAncestorTableBuilder() { |
| bitField0_ |= 0x00000100; |
| onChanged(); |
| return getLockedAncestorTableFieldBuilder().getBuilder(); |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| public org.apache.phoenix.coprocessor.generated.PTableProtos.PTableOrBuilder getLockedAncestorTableOrBuilder() { |
| if (lockedAncestorTableBuilder_ != null) { |
| return lockedAncestorTableBuilder_.getMessageOrBuilder(); |
| } else { |
| return lockedAncestorTable_; |
| } |
| } |
| /** |
| * <code>optional .PTable lockedAncestorTable = 9;</code> |
| */ |
| 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> |
| getLockedAncestorTableFieldBuilder() { |
| if (lockedAncestorTableBuilder_ == null) { |
| lockedAncestorTableBuilder_ = 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>( |
| lockedAncestorTable_, |
| getParentForChildren(), |
| isClean()); |
| lockedAncestorTable_ = null; |
| } |
| return lockedAncestorTableBuilder_; |
| } |
| |
| // @@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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| boolean hasTenantId(); |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTenantId(); |
| |
| // repeated bytes functionNames = 2; |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getFunctionNamesList(); |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| int getFunctionNamesCount(); |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| com.google.protobuf.ByteString getFunctionNames(int index); |
| |
| // repeated int64 functionTimestamps = 3; |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| java.util.List<java.lang.Long> getFunctionTimestampsList(); |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| int getFunctionTimestampsCount(); |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| long getFunctionTimestamps(int index); |
| |
| // required int64 clientTimestamp = 4; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| boolean hasClientTimestamp(); |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| long getClientTimestamp(); |
| |
| // optional int32 clientVersion = 5; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| mutable_bitField0_ |= 0x00000002; |
| } |
| functionNames_.add(input.readBytes()); |
| break; |
| } |
| case 24: { |
| if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { |
| functionTimestamps_ = new java.util.ArrayList<java.lang.Long>(); |
| 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<java.lang.Long>(); |
| 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<GetFunctionsRequest> PARSER = |
| new com.google.protobuf.AbstractParser<GetFunctionsRequest>() { |
| 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<GetFunctionsRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bytes tenantId = 1; |
| public static final int TENANTID_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString tenantId_; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTenantId() { |
| return tenantId_; |
| } |
| |
| // repeated bytes functionNames = 2; |
| public static final int FUNCTIONNAMES_FIELD_NUMBER = 2; |
| private java.util.List<com.google.protobuf.ByteString> functionNames_; |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getFunctionNamesList() { |
| return functionNames_; |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public int getFunctionNamesCount() { |
| return functionNames_.size(); |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| 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<java.lang.Long> functionTimestamps_; |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public java.util.List<java.lang.Long> |
| getFunctionTimestampsList() { |
| return functionTimestamps_; |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public int getFunctionTimestampsCount() { |
| return functionTimestamps_.size(); |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public long getFunctionTimestamps(int index) { |
| return functionTimestamps_.get(index); |
| } |
| |
| // required int64 clientTimestamp = 4; |
| public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 4; |
| private long clientTimestamp_; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| |
| // optional int32 clientVersion = 5; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 5; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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<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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTenantId() { |
| return tenantId_; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public Builder setTenantId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| tenantId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public Builder clearTenantId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| tenantId_ = getDefaultInstance().getTenantId(); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated bytes functionNames = 2; |
| private java.util.List<com.google.protobuf.ByteString> functionNames_ = java.util.Collections.emptyList(); |
| private void ensureFunctionNamesIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| functionNames_ = new java.util.ArrayList<com.google.protobuf.ByteString>(functionNames_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getFunctionNamesList() { |
| return java.util.Collections.unmodifiableList(functionNames_); |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public int getFunctionNamesCount() { |
| return functionNames_.size(); |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public com.google.protobuf.ByteString getFunctionNames(int index) { |
| return functionNames_.get(index); |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public Builder setFunctionNames( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureFunctionNamesIsMutable(); |
| functionNames_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public Builder addFunctionNames(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureFunctionNamesIsMutable(); |
| functionNames_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public Builder addAllFunctionNames( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureFunctionNamesIsMutable(); |
| super.addAll(values, functionNames_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes functionNames = 2;</code> |
| */ |
| public Builder clearFunctionNames() { |
| functionNames_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated int64 functionTimestamps = 3; |
| private java.util.List<java.lang.Long> functionTimestamps_ = java.util.Collections.emptyList(); |
| private void ensureFunctionTimestampsIsMutable() { |
| if (!((bitField0_ & 0x00000004) == 0x00000004)) { |
| functionTimestamps_ = new java.util.ArrayList<java.lang.Long>(functionTimestamps_); |
| bitField0_ |= 0x00000004; |
| } |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public java.util.List<java.lang.Long> |
| getFunctionTimestampsList() { |
| return java.util.Collections.unmodifiableList(functionTimestamps_); |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public int getFunctionTimestampsCount() { |
| return functionTimestamps_.size(); |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public long getFunctionTimestamps(int index) { |
| return functionTimestamps_.get(index); |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public Builder setFunctionTimestamps( |
| int index, long value) { |
| ensureFunctionTimestampsIsMutable(); |
| functionTimestamps_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public Builder addFunctionTimestamps(long value) { |
| ensureFunctionTimestampsIsMutable(); |
| functionTimestamps_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public Builder addAllFunctionTimestamps( |
| java.lang.Iterable<? extends java.lang.Long> values) { |
| ensureFunctionTimestampsIsMutable(); |
| super.addAll(values, functionTimestamps_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated int64 functionTimestamps = 3;</code> |
| */ |
| public Builder clearFunctionTimestamps() { |
| functionTimestamps_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 clientTimestamp = 4; |
| private long clientTimestamp_ ; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public Builder setClientTimestamp(long value) { |
| bitField0_ |= 0x00000008; |
| clientTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public Builder clearClientTimestamp() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| clientTimestamp_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 5; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000010; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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; |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| java.lang.String getSchemaName(); |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getSchemaNameBytes(); |
| |
| // required int64 clientTimestamp = 2; |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| boolean hasClientTimestamp(); |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| long getClientTimestamp(); |
| |
| // required int32 clientVersion = 3; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<GetSchemaRequest> PARSER = |
| new com.google.protobuf.AbstractParser<GetSchemaRequest>() { |
| 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<GetSchemaRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string schemaName = 1; |
| public static final int SCHEMANAME_FIELD_NUMBER = 1; |
| private java.lang.Object schemaName_; |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| |
| // required int32 clientVersion = 3; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 3; |
| private int clientVersion_; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<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_ = ""; |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| public Builder setSchemaName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| public Builder clearSchemaName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| schemaName_ = getDefaultInstance().getSchemaName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 1;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public Builder setClientTimestamp(long value) { |
| bitField0_ |= 0x00000002; |
| clientTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 2;</code> |
| */ |
| public Builder clearClientTimestamp() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| clientTimestamp_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 clientVersion = 3; |
| private int clientVersion_ ; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000004; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // optional int32 clientVersion = 2; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| int getClientVersion(); |
| |
| // optional bool allocateIndexId = 3; |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| boolean hasAllocateIndexId(); |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| boolean getAllocateIndexId(); |
| } |
| /** |
| * Protobuf type {@code CreateTableRequest} |
| * |
| * <pre> |
| * each byte array represents a MutationProto instance |
| * </pre> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| tableMetadataMutations_.add(input.readBytes()); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000001; |
| clientVersion_ = input.readInt32(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000002; |
| allocateIndexId_ = 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_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<CreateTableRequest> PARSER = |
| new com.google.protobuf.AbstractParser<CreateTableRequest>() { |
| 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<CreateTableRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| |
| // optional bool allocateIndexId = 3; |
| public static final int ALLOCATEINDEXID_FIELD_NUMBER = 3; |
| private boolean allocateIndexId_; |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public boolean hasAllocateIndexId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public boolean getAllocateIndexId() { |
| return allocateIndexId_; |
| } |
| |
| private void initFields() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| clientVersion_ = 0; |
| allocateIndexId_ = false; |
| } |
| 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_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBool(3, allocateIndexId_); |
| } |
| 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_); |
| } |
| 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 && |
| 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()); |
| } |
| 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} |
| * |
| * <pre> |
| * each byte array represents a MutationProto instance |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<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) { |
| } |
| } |
| 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); |
| 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_; |
| 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()); |
| } |
| 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.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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 2; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000002; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| clientVersion_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool allocateIndexId = 3; |
| private boolean allocateIndexId_ ; |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public boolean hasAllocateIndexId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public boolean getAllocateIndexId() { |
| return allocateIndexId_; |
| } |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public Builder setAllocateIndexId(boolean value) { |
| bitField0_ |= 0x00000004; |
| allocateIndexId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool allocateIndexId = 3;</code> |
| */ |
| public Builder clearAllocateIndexId() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| allocateIndexId_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // @@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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // required bool temporary = 2; |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| boolean hasTemporary(); |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| boolean getTemporary(); |
| |
| // optional bool replace = 3; |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| boolean hasReplace(); |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| boolean getReplace(); |
| |
| // optional int32 clientVersion = 4; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| int getClientVersion(); |
| } |
| /** |
| * Protobuf type {@code CreateFunctionRequest} |
| * |
| * <pre> |
| * each byte array represents a MutationProto instance |
| * </pre> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<CreateFunctionRequest> PARSER = |
| new com.google.protobuf.AbstractParser<CreateFunctionRequest>() { |
| 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<CreateFunctionRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public boolean hasTemporary() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public boolean getTemporary() { |
| return temporary_; |
| } |
| |
| // optional bool replace = 3; |
| public static final int REPLACE_FIELD_NUMBER = 3; |
| private boolean replace_; |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public boolean hasReplace() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public boolean getReplace() { |
| return replace_; |
| } |
| |
| // optional int32 clientVersion = 4; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 4; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| 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} |
| * |
| * <pre> |
| * each byte array represents a MutationProto instance |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // required bool temporary = 2; |
| private boolean temporary_ ; |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public boolean hasTemporary() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public boolean getTemporary() { |
| return temporary_; |
| } |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public Builder setTemporary(boolean value) { |
| bitField0_ |= 0x00000002; |
| temporary_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bool temporary = 2;</code> |
| */ |
| public Builder clearTemporary() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| temporary_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool replace = 3; |
| private boolean replace_ ; |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public boolean hasReplace() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public boolean getReplace() { |
| return replace_; |
| } |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public Builder setReplace(boolean value) { |
| bitField0_ |= 0x00000004; |
| replace_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool replace = 3;</code> |
| */ |
| public Builder clearReplace() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| replace_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 4; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000008; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // required string schemaName = 2; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| java.lang.String getSchemaName(); |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getSchemaNameBytes(); |
| |
| // required int32 clientVersion = 3; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<CreateSchemaRequest> PARSER = |
| new com.google.protobuf.AbstractParser<CreateSchemaRequest>() { |
| 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<CreateSchemaRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // required string schemaName = 2; |
| private java.lang.Object schemaName_ = ""; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public Builder setSchemaName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public Builder clearSchemaName() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| schemaName_ = getDefaultInstance().getSchemaName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000004; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // required string tableType = 2; |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| boolean hasTableType(); |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| java.lang.String getTableType(); |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTableTypeBytes(); |
| |
| // optional bool cascade = 3; |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| boolean hasCascade(); |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| boolean getCascade(); |
| |
| // optional int32 clientVersion = 4; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| int getClientVersion(); |
| |
| // optional bool skipAddingParentColumns = 5; |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| boolean hasSkipAddingParentColumns(); |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| boolean getSkipAddingParentColumns(); |
| } |
| /** |
| * 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<com.google.protobuf.ByteString>(); |
| 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; |
| } |
| case 40: { |
| bitField0_ |= 0x00000008; |
| skipAddingParentColumns_ = 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_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<DropTableRequest> PARSER = |
| new com.google.protobuf.AbstractParser<DropTableRequest>() { |
| 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<DropTableRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| public boolean hasTableType() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public boolean hasCascade() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public boolean getCascade() { |
| return cascade_; |
| } |
| |
| // optional int32 clientVersion = 4; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 4; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| |
| // optional bool skipAddingParentColumns = 5; |
| public static final int SKIPADDINGPARENTCOLUMNS_FIELD_NUMBER = 5; |
| private boolean skipAddingParentColumns_; |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public boolean hasSkipAddingParentColumns() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public boolean getSkipAddingParentColumns() { |
| return skipAddingParentColumns_; |
| } |
| |
| private void initFields() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| tableType_ = ""; |
| cascade_ = false; |
| clientVersion_ = 0; |
| skipAddingParentColumns_ = false; |
| } |
| 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_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBool(5, skipAddingParentColumns_); |
| } |
| 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_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(5, skipAddingParentColumns_); |
| } |
| 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 && (hasSkipAddingParentColumns() == other.hasSkipAddingParentColumns()); |
| if (hasSkipAddingParentColumns()) { |
| result = result && (getSkipAddingParentColumns() |
| == other.getSkipAddingParentColumns()); |
| } |
| 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(); |
| } |
| if (hasSkipAddingParentColumns()) { |
| hash = (37 * hash) + SKIPADDINGPARENTCOLUMNS_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getSkipAddingParentColumns()); |
| } |
| 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<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); |
| skipAddingParentColumns_ = false; |
| 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_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_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.skipAddingParentColumns_ = skipAddingParentColumns_; |
| 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()); |
| } |
| if (other.hasSkipAddingParentColumns()) { |
| setSkipAddingParentColumns(other.getSkipAddingParentColumns()); |
| } |
| 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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // required string tableType = 2; |
| private java.lang.Object tableType_ = ""; |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| public boolean hasTableType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| public Builder setTableType( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| tableType_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| public Builder clearTableType() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| tableType_ = getDefaultInstance().getTableType(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string tableType = 2;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public boolean hasCascade() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public boolean getCascade() { |
| return cascade_; |
| } |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public Builder setCascade(boolean value) { |
| bitField0_ |= 0x00000004; |
| cascade_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool cascade = 3;</code> |
| */ |
| public Builder clearCascade() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| cascade_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 4; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000008; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 4;</code> |
| */ |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| clientVersion_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool skipAddingParentColumns = 5; |
| private boolean skipAddingParentColumns_ ; |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public boolean hasSkipAddingParentColumns() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public boolean getSkipAddingParentColumns() { |
| return skipAddingParentColumns_; |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public Builder setSkipAddingParentColumns(boolean value) { |
| bitField0_ |= 0x00000010; |
| skipAddingParentColumns_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool skipAddingParentColumns = 5;</code> |
| */ |
| public Builder clearSkipAddingParentColumns() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| skipAddingParentColumns_ = false; |
| 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; |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getSchemaMetadataMutationsList(); |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| int getSchemaMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getSchemaMetadataMutations(int index); |
| |
| // required string schemaName = 2; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| java.lang.String getSchemaName(); |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getSchemaNameBytes(); |
| |
| // required int32 clientVersion = 3; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<DropSchemaRequest> PARSER = |
| new com.google.protobuf.AbstractParser<DropSchemaRequest>() { |
| 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<DropSchemaRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes schemaMetadataMutations = 1; |
| public static final int SCHEMAMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> schemaMetadataMutations_; |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getSchemaMetadataMutationsList() { |
| return schemaMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public int getSchemaMetadataMutationsCount() { |
| return schemaMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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<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<com.google.protobuf.ByteString> schemaMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureSchemaMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| schemaMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(schemaMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getSchemaMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(schemaMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public int getSchemaMetadataMutationsCount() { |
| return schemaMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getSchemaMetadataMutations(int index) { |
| return schemaMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public Builder setSchemaMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureSchemaMetadataMutationsIsMutable(); |
| schemaMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public Builder addSchemaMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureSchemaMetadataMutationsIsMutable(); |
| schemaMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public Builder addAllSchemaMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureSchemaMetadataMutationsIsMutable(); |
| super.addAll(values, schemaMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes schemaMetadataMutations = 1;</code> |
| */ |
| public Builder clearSchemaMetadataMutations() { |
| schemaMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // required string schemaName = 2; |
| private java.lang.Object schemaName_ = ""; |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public Builder setSchemaName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| public Builder clearSchemaName() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| schemaName_ = getDefaultInstance().getSchemaName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string schemaName = 2;</code> |
| */ |
| 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_ ; |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000004; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 clientVersion = 3;</code> |
| */ |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // optional int32 clientVersion = 2; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| int getClientVersion(); |
| } |
| /** |
| * 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<com.google.protobuf.ByteString>(); |
| 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_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<AddColumnRequest> PARSER = |
| new com.google.protobuf.AbstractParser<AddColumnRequest>() { |
| 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<AddColumnRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| 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.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 && |
| 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.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<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) { |
| } |
| } |
| 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_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_; |
| 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()); |
| } |
| 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.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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 2; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000002; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| clientVersion_ = 0; |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // optional int32 clientVersion = 2; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| int getClientVersion(); |
| } |
| /** |
| * 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<com.google.protobuf.ByteString>(); |
| 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_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<DropColumnRequest> PARSER = |
| new com.google.protobuf.AbstractParser<DropColumnRequest>() { |
| 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<DropColumnRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| 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.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 && |
| 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.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<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) { |
| } |
| } |
| 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_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_; |
| 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()); |
| } |
| 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.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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 2; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000002; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| clientVersion_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // optional bool ifExists = 2; |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| boolean hasIfExists(); |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| boolean getIfExists(); |
| |
| // optional int32 clientVersion = 3; |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<DropFunctionRequest> PARSER = |
| new com.google.protobuf.AbstractParser<DropFunctionRequest>() { |
| 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<DropFunctionRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public boolean hasIfExists() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public boolean getIfExists() { |
| return ifExists_; |
| } |
| |
| // optional int32 clientVersion = 3; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 3; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| 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<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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool ifExists = 2; |
| private boolean ifExists_ ; |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public boolean hasIfExists() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public boolean getIfExists() { |
| return ifExists_; |
| } |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public Builder setIfExists(boolean value) { |
| bitField0_ |= 0x00000002; |
| ifExists_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool ifExists = 2;</code> |
| */ |
| public Builder clearIfExists() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| ifExists_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 3; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000004; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 3;</code> |
| */ |
| 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; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| java.util.List<com.google.protobuf.ByteString> getTableMetadataMutationsList(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| int getTableMetadataMutationsCount(); |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTableMetadataMutations(int index); |
| |
| // optional int32 clientVersion = 2; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| 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<com.google.protobuf.ByteString>(); |
| 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<UpdateIndexStateRequest> PARSER = |
| new com.google.protobuf.AbstractParser<UpdateIndexStateRequest>() { |
| 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<UpdateIndexStateRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // repeated bytes tableMetadataMutations = 1; |
| public static final int TABLEMETADATAMUTATIONS_FIELD_NUMBER = 1; |
| private java.util.List<com.google.protobuf.ByteString> tableMetadataMutations_; |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return tableMetadataMutations_; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| 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<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<com.google.protobuf.ByteString> tableMetadataMutations_ = java.util.Collections.emptyList(); |
| private void ensureTableMetadataMutationsIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| tableMetadataMutations_ = new java.util.ArrayList<com.google.protobuf.ByteString>(tableMetadataMutations_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public java.util.List<com.google.protobuf.ByteString> |
| getTableMetadataMutationsList() { |
| return java.util.Collections.unmodifiableList(tableMetadataMutations_); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public int getTableMetadataMutationsCount() { |
| return tableMetadataMutations_.size(); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTableMetadataMutations(int index) { |
| return tableMetadataMutations_.get(index); |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder setTableMetadataMutations( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addTableMetadataMutations(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTableMetadataMutationsIsMutable(); |
| tableMetadataMutations_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder addAllTableMetadataMutations( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTableMetadataMutationsIsMutable(); |
| super.addAll(values, tableMetadataMutations_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated bytes tableMetadataMutations = 1;</code> |
| */ |
| public Builder clearTableMetadataMutations() { |
| tableMetadataMutations_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 2; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000002; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 2;</code> |
| */ |
| 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; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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<ClearCacheRequest> PARSER = |
| new com.google.protobuf.AbstractParser<ClearCacheRequest>() { |
| 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<ClearCacheRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional int32 clientVersion = 1; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 1; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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<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_ ; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000001; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| boolean hasUnfreedBytes(); |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| 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<ClearCacheResponse> PARSER = |
| new com.google.protobuf.AbstractParser<ClearCacheResponse>() { |
| 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<ClearCacheResponse> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional int64 unfreedBytes = 1; |
| public static final int UNFREEDBYTES_FIELD_NUMBER = 1; |
| private long unfreedBytes_; |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| public boolean hasUnfreedBytes() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| 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<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_ ; |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| public boolean hasUnfreedBytes() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| public long getUnfreedBytes() { |
| return unfreedBytes_; |
| } |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| public Builder setUnfreedBytes(long value) { |
| bitField0_ |= 0x00000001; |
| unfreedBytes_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 unfreedBytes = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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<GetVersionRequest> PARSER = |
| new com.google.protobuf.AbstractParser<GetVersionRequest>() { |
| 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<GetVersionRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional int32 clientVersion = 1; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 1; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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<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_ ; |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000001; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| boolean hasVersion(); |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| long getVersion(); |
| |
| // optional int64 systemCatalogTimestamp = 2; |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| boolean hasSystemCatalogTimestamp(); |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| 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<GetVersionResponse> PARSER = |
| new com.google.protobuf.AbstractParser<GetVersionResponse>() { |
| 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<GetVersionResponse> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required int64 version = 1; |
| public static final int VERSION_FIELD_NUMBER = 1; |
| private long version_; |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public boolean hasVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public long getVersion() { |
| return version_; |
| } |
| |
| // optional int64 systemCatalogTimestamp = 2; |
| public static final int SYSTEMCATALOGTIMESTAMP_FIELD_NUMBER = 2; |
| private long systemCatalogTimestamp_; |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| public boolean hasSystemCatalogTimestamp() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| 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<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_ ; |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public boolean hasVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public long getVersion() { |
| return version_; |
| } |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public Builder setVersion(long value) { |
| bitField0_ |= 0x00000001; |
| version_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 version = 1;</code> |
| */ |
| public Builder clearVersion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| version_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int64 systemCatalogTimestamp = 2; |
| private long systemCatalogTimestamp_ ; |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| public boolean hasSystemCatalogTimestamp() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| public long getSystemCatalogTimestamp() { |
| return systemCatalogTimestamp_; |
| } |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| public Builder setSystemCatalogTimestamp(long value) { |
| bitField0_ |= 0x00000002; |
| systemCatalogTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 systemCatalogTimestamp = 2;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| boolean hasTenantId(); |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| com.google.protobuf.ByteString getTenantId(); |
| |
| // required bytes schemaName = 2; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| boolean hasSchemaName(); |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| com.google.protobuf.ByteString getSchemaName(); |
| |
| // required bytes tableName = 3; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| boolean hasTableName(); |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| com.google.protobuf.ByteString getTableName(); |
| |
| // required int64 clientTimestamp = 4; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| boolean hasClientTimestamp(); |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| long getClientTimestamp(); |
| |
| // optional int32 clientVersion = 5; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| boolean hasClientVersion(); |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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<ClearTableFromCacheRequest> PARSER = |
| new com.google.protobuf.AbstractParser<ClearTableFromCacheRequest>() { |
| 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<ClearTableFromCacheRequest> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bytes tenantId = 1; |
| public static final int TENANTID_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString tenantId_; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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_; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| |
| // required int64 clientTimestamp = 4; |
| public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 4; |
| private long clientTimestamp_; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| |
| // optional int32 clientVersion = 5; |
| public static final int CLIENTVERSION_FIELD_NUMBER = 5; |
| private int clientVersion_; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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<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; |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public boolean hasTenantId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getTenantId() { |
| return tenantId_; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| public Builder setTenantId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| tenantId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tenantId = 1;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public boolean hasSchemaName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public com.google.protobuf.ByteString getSchemaName() { |
| return schemaName_; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| public Builder setSchemaName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes schemaName = 2;</code> |
| */ |
| 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; |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public boolean hasTableName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public com.google.protobuf.ByteString getTableName() { |
| return tableName_; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder setTableName(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| tableName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes tableName = 3;</code> |
| */ |
| public Builder clearTableName() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| tableName_ = getDefaultInstance().getTableName(); |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 clientTimestamp = 4; |
| private long clientTimestamp_ ; |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public boolean hasClientTimestamp() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public long getClientTimestamp() { |
| return clientTimestamp_; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public Builder setClientTimestamp(long value) { |
| bitField0_ |= 0x00000008; |
| clientTimestamp_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 clientTimestamp = 4;</code> |
| */ |
| public Builder clearClientTimestamp() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| clientTimestamp_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 clientVersion = 5; |
| private int clientVersion_ ; |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public int getClientVersion() { |
| return clientVersion_; |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| public Builder setClientVersion(int value) { |
| bitField0_ |= 0x00000010; |
| clientVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 clientVersion = 5;</code> |
| */ |
| 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<ClearTableFromCacheResponse> PARSER = |
| new com.google.protobuf.AbstractParser<ClearTableFromCacheResponse>() { |
| 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<ClearTableFromCacheResponse> 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<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 { |
| /** |
| * <code>rpc getTable(.GetTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc getFunctions(.GetFunctionsRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getFunctions( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc getSchema(.GetSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createTable(.CreateTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createFunction(.CreateFunctionRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createSchema(.CreateSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropTable(.DropTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropSchema(.DropSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropFunction(.DropFunctionRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc addColumn(.AddColumnRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void addColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropColumn(.DropColumnRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc updateIndexState(.UpdateIndexStateRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void updateIndexState( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc clearCache(.ClearCacheRequest) returns (.ClearCacheResponse);</code> |
| */ |
| public abstract void clearCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse> done); |
| |
| /** |
| * <code>rpc getVersion(.GetVersionRequest) returns (.GetVersionResponse);</code> |
| */ |
| public abstract void getVersion( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse> done); |
| |
| /** |
| * <code>rpc clearTableFromCache(.ClearTableFromCacheRequest) returns (.ClearTableFromCacheResponse);</code> |
| */ |
| public abstract void clearTableFromCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse> 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<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse> 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."); |
| } |
| } |
| |
| }; |
| } |
| |
| /** |
| * <code>rpc getTable(.GetTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc getFunctions(.GetFunctionsRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getFunctions( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc getSchema(.GetSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void getSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createTable(.CreateTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createFunction(.CreateFunctionRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc createSchema(.CreateSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void createSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropTable(.DropTableRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropSchema(.DropSchemaRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropFunction(.DropFunctionRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc addColumn(.AddColumnRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void addColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc dropColumn(.DropColumnRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void dropColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc updateIndexState(.UpdateIndexStateRequest) returns (.MetaDataResponse);</code> |
| */ |
| public abstract void updateIndexState( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done); |
| |
| /** |
| * <code>rpc clearCache(.ClearCacheRequest) returns (.ClearCacheResponse);</code> |
| */ |
| public abstract void clearCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse> done); |
| |
| /** |
| * <code>rpc getVersion(.GetVersionRequest) returns (.GetVersionResponse);</code> |
| */ |
| public abstract void getVersion( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse> done); |
| |
| /** |
| * <code>rpc clearTableFromCache(.ClearTableFromCacheRequest) returns (.ClearTableFromCacheResponse);</code> |
| */ |
| public abstract void clearTableFromCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse> 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.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 1: |
| this.getFunctions(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 2: |
| this.getSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 3: |
| this.createTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 4: |
| this.createFunction(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 5: |
| this.createSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 6: |
| this.dropTable(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 7: |
| this.dropSchema(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 8: |
| this.dropFunction(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 9: |
| this.addColumn(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 10: |
| this.dropColumn(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 11: |
| this.updateIndexState(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse>specializeCallback( |
| done)); |
| return; |
| case 12: |
| this.clearCache(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse>specializeCallback( |
| done)); |
| return; |
| case 13: |
| this.getVersion(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse>specializeCallback( |
| done)); |
| return; |
| case 14: |
| this.clearTableFromCache(controller, (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest)request, |
| com.google.protobuf.RpcUtil.<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse>specializeCallback( |
| done)); |
| return; |
| 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."); |
| } |
| } |
| |
| public static Stub newStub( |
| com.google.protobuf.RpcChannel channel) { |
| return new Stub(channel); |
| } |
| |
| public static final class Stub extends org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataService implements Interface { |
| private Stub(com.google.protobuf.RpcChannel channel) { |
| this.channel = channel; |
| } |
| |
| private final com.google.protobuf.RpcChannel channel; |
| |
| public com.google.protobuf.RpcChannel getChannel() { |
| return channel; |
| } |
| |
| public void getTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(0), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void getFunctions( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(1), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void getSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(2), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void createTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(3), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void createFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(4), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void createSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(5), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void dropTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(6), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void dropSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(7), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void dropFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(8), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void addColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(9), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void dropColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(10), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void updateIndexState( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(11), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance())); |
| } |
| |
| public void clearCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(12), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance())); |
| } |
| |
| public void getVersion( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(13), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance())); |
| } |
| |
| public void clearTableFromCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request, |
| com.google.protobuf.RpcCallback<org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse> done) { |
| channel.callMethod( |
| getDescriptor().getMethods().get(14), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance(), |
| com.google.protobuf.RpcUtil.generalizeCallback( |
| done, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.class, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance())); |
| } |
| } |
| |
| public static BlockingInterface newBlockingStub( |
| com.google.protobuf.BlockingRpcChannel channel) { |
| return new BlockingStub(channel); |
| } |
| |
| public interface BlockingInterface { |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getFunctions( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse addColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse updateIndexState( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse clearCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse getVersion( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request) |
| throws com.google.protobuf.ServiceException; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse clearTableFromCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request) |
| throws com.google.protobuf.ServiceException; |
| } |
| |
| private static final class BlockingStub implements BlockingInterface { |
| private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { |
| this.channel = channel; |
| } |
| |
| private final com.google.protobuf.BlockingRpcChannel channel; |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(0), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getFunctions( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetFunctionsRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(1), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse getSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetSchemaRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(2), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateTableRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(3), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateFunctionRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(4), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse createSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.CreateSchemaRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(5), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropTable( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropTableRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(6), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropSchema( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropSchemaRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(7), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropFunction( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropFunctionRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(8), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse addColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.AddColumnRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(9), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse dropColumn( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.DropColumnRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(10), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse updateIndexState( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.UpdateIndexStateRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(11), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse clearCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(12), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearCacheResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse getVersion( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(13), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetVersionResponse.getDefaultInstance()); |
| } |
| |
| |
| public org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse clearTableFromCache( |
| com.google.protobuf.RpcController controller, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheRequest request) |
| throws com.google.protobuf.ServiceException { |
| return (org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse) channel.callBlockingMethod( |
| getDescriptor().getMethods().get(14), |
| controller, |
| request, |
| org.apache.phoenix.coprocessor.generated.MetaDataProtos.ClearTableFromCacheResponse.getDefaultInstance()); |
| } |
| |
| } |
| |
| // @@protoc_insertion_point(class_scope:MetaDataService) |
| } |
| |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_SharedTableState_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_SharedTableState_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_MetaDataResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_MetaDataResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_GetTableRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_GetTableRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_GetFunctionsRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_GetFunctionsRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_GetSchemaRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_GetSchemaRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_CreateTableRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_CreateTableRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_CreateFunctionRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_CreateFunctionRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_CreateSchemaRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_CreateSchemaRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_DropTableRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_DropTableRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_DropSchemaRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_DropSchemaRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_AddColumnRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_AddColumnRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_DropColumnRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_DropColumnRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_DropFunctionRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_DropFunctionRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_UpdateIndexStateRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_UpdateIndexStateRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_ClearCacheRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_ClearCacheRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_ClearCacheResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_ClearCacheResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_GetVersionRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_GetVersionRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_GetVersionResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_GetVersionResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_ClearTableFromCacheRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_ClearTableFromCacheRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_ClearTableFromCacheResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_ClearTableFromCacheResponse_fieldAccessorTable; |
| |
| public static com.google.protobuf.Descriptors.FileDescriptor |
| getDescriptor() { |
| return descriptor; |
| } |
| private static com.google.protobuf.Descriptors.FileDescriptor |
| descriptor; |
| static { |
| java.lang.String[] descriptorData = { |
| "\n\025MetaDataService.proto\032\014PTable.proto\032\017P" + |
| "Function.proto\032\rPSchema.proto\"\256\001\n\020Shared" + |
| "TableState\022\020\n\010tenantId\030\001 \001(\014\022\022\n\nschemaNa" + |
| "me\030\002 \002(\014\022\021\n\ttableName\030\003 \002(\014\022\031\n\007columns\030\004" + |
| " \003(\0132\010.PColumn\022\025\n\rphysicalNames\030\005 \003(\014\022\023\n" + |
| "\013viewIndexId\030\006 \002(\003\022\032\n\017viewIndexIdType\030\007 " + |
| "\001(\005:\0015\"\355\002\n\020MetaDataResponse\022!\n\nreturnCod" + |
| "e\030\001 \001(\0162\r.MutationCode\022\024\n\014mutationTime\030\002" + |
| " \001(\003\022\026\n\005table\030\003 \001(\0132\007.PTable\022\026\n\016tablesTo" + |
| "Delete\030\004 \003(\014\022\022\n\ncolumnName\030\005 \001(\014\022\022\n\nfami", |
| "lyName\030\006 \001(\014\022\024\n\014functionName\030\007 \001(\014\022\034\n\010fu" + |
| "nction\030\010 \003(\0132\n.PFunction\022/\n\024sharedTables" + |
| "ToDelete\030\t \003(\0132\021.SharedTableState\022\030\n\006sch" + |
| "ema\030\n \001(\0132\010.PSchema\022\030\n\020autoPartitionNum\030" + |
| "\013 \001(\003\022\023\n\013viewIndexId\030\014 \001(\003\022\032\n\017viewIndexI" + |
| "dType\030\r \001(\005:\0015\"\364\001\n\017GetTableRequest\022\020\n\010te" + |
| "nantId\030\001 \002(\014\022\022\n\nschemaName\030\002 \002(\014\022\021\n\ttabl" + |
| "eName\030\003 \002(\014\022\026\n\016tableTimestamp\030\004 \002(\003\022\027\n\017c" + |
| "lientTimestamp\030\005 \002(\003\022\025\n\rclientVersion\030\006 " + |
| "\001(\005\022\037\n\027skipAddingParentColumns\030\007 \001(\010\022\031\n\021", |
| "skipAddingIndexes\030\010 \001(\010\022$\n\023lockedAncesto" + |
| "rTable\030\t \001(\0132\007.PTable\"\212\001\n\023GetFunctionsRe" + |
| "quest\022\020\n\010tenantId\030\001 \002(\014\022\025\n\rfunctionNames" + |
| "\030\002 \003(\014\022\032\n\022functionTimestamps\030\003 \003(\003\022\027\n\017cl" + |
| "ientTimestamp\030\004 \002(\003\022\025\n\rclientVersion\030\005 \001" + |
| "(\005\"V\n\020GetSchemaRequest\022\022\n\nschemaName\030\001 \002" + |
| "(\t\022\027\n\017clientTimestamp\030\002 \002(\003\022\025\n\rclientVer" + |
| "sion\030\003 \002(\005\"d\n\022CreateTableRequest\022\036\n\026tabl" + |
| "eMetadataMutations\030\001 \003(\014\022\025\n\rclientVersio" + |
| "n\030\002 \001(\005\022\027\n\017allocateIndexId\030\003 \001(\010\"r\n\025Crea", |
| "teFunctionRequest\022\036\n\026tableMetadataMutati" + |
| "ons\030\001 \003(\014\022\021\n\ttemporary\030\002 \002(\010\022\017\n\007replace\030" + |
| "\003 \001(\010\022\025\n\rclientVersion\030\004 \001(\005\"`\n\023CreateSc" + |
| "hemaRequest\022\036\n\026tableMetadataMutations\030\001 " + |
| "\003(\014\022\022\n\nschemaName\030\002 \002(\t\022\025\n\rclientVersion" + |
| "\030\003 \002(\005\"\216\001\n\020DropTableRequest\022\036\n\026tableMeta" + |
| "dataMutations\030\001 \003(\014\022\021\n\ttableType\030\002 \002(\t\022\017" + |
| "\n\007cascade\030\003 \001(\010\022\025\n\rclientVersion\030\004 \001(\005\022\037" + |
| "\n\027skipAddingParentColumns\030\005 \001(\010\"_\n\021DropS" + |
| "chemaRequest\022\037\n\027schemaMetadataMutations\030", |
| "\001 \003(\014\022\022\n\nschemaName\030\002 \002(\t\022\025\n\rclientVersi" + |
| "on\030\003 \002(\005\"I\n\020AddColumnRequest\022\036\n\026tableMet" + |
| "adataMutations\030\001 \003(\014\022\025\n\rclientVersion\030\002 " + |
| "\001(\005\"J\n\021DropColumnRequest\022\036\n\026tableMetadat" + |
| "aMutations\030\001 \003(\014\022\025\n\rclientVersion\030\002 \001(\005\"" + |
| "^\n\023DropFunctionRequest\022\036\n\026tableMetadataM" + |
| "utations\030\001 \003(\014\022\020\n\010ifExists\030\002 \001(\010\022\025\n\rclie" + |
| "ntVersion\030\003 \001(\005\"P\n\027UpdateIndexStateReque" + |
| "st\022\036\n\026tableMetadataMutations\030\001 \003(\014\022\025\n\rcl" + |
| "ientVersion\030\002 \001(\005\"*\n\021ClearCacheRequest\022\025", |
| "\n\rclientVersion\030\001 \001(\005\"*\n\022ClearCacheRespo" + |
| "nse\022\024\n\014unfreedBytes\030\001 \001(\003\"*\n\021GetVersionR" + |
| "equest\022\025\n\rclientVersion\030\001 \001(\005\"E\n\022GetVers" + |
| "ionResponse\022\017\n\007version\030\001 \002(\003\022\036\n\026systemCa" + |
| "talogTimestamp\030\002 \001(\003\"\205\001\n\032ClearTableFromC" + |
| "acheRequest\022\020\n\010tenantId\030\001 \002(\014\022\022\n\nschemaN" + |
| "ame\030\002 \002(\014\022\021\n\ttableName\030\003 \002(\014\022\027\n\017clientTi" + |
| "mestamp\030\004 \002(\003\022\025\n\rclientVersion\030\005 \001(\005\"\035\n\033" + |
| "ClearTableFromCacheResponse*\271\005\n\014Mutation" + |
| "Code\022\030\n\024TABLE_ALREADY_EXISTS\020\000\022\023\n\017TABLE_", |
| "NOT_FOUND\020\001\022\024\n\020COLUMN_NOT_FOUND\020\002\022\031\n\025COL" + |
| "UMN_ALREADY_EXISTS\020\003\022\035\n\031CONCURRENT_TABLE" + |
| "_MUTATION\020\004\022\027\n\023TABLE_NOT_IN_REGION\020\005\022\025\n\021" + |
| "NEWER_TABLE_FOUND\020\006\022\034\n\030UNALLOWED_TABLE_M" + |
| "UTATION\020\007\022\021\n\rNO_PK_COLUMNS\020\010\022\032\n\026PARENT_T" + |
| "ABLE_NOT_FOUND\020\t\022\033\n\027FUNCTION_ALREADY_EXI" + |
| "STS\020\n\022\026\n\022FUNCTION_NOT_FOUND\020\013\022\030\n\024NEWER_F" + |
| "UNCTION_FOUND\020\014\022\032\n\026FUNCTION_NOT_IN_REGIO" + |
| "N\020\r\022\031\n\025SCHEMA_ALREADY_EXISTS\020\016\022\026\n\022NEWER_" + |
| "SCHEMA_FOUND\020\017\022\024\n\020SCHEMA_NOT_FOUND\020\020\022\030\n\024", |
| "SCHEMA_NOT_IN_REGION\020\021\022\032\n\026TABLES_EXIST_O" + |
| "N_SCHEMA\020\022\022\035\n\031UNALLOWED_SCHEMA_MUTATION\020" + |
| "\023\022%\n!AUTO_PARTITION_SEQUENCE_NOT_FOUND\020\024" + |
| "\022#\n\037CANNOT_COERCE_AUTO_PARTITION_ID\020\025\022\024\n" + |
| "\020TOO_MANY_INDEXES\020\026\022\037\n\033UNABLE_TO_CREATE_" + |
| "CHILD_LINK\020\027\022!\n\035UNABLE_TO_UPDATE_PARENT_" + |
| "TABLE\020\0302\345\006\n\017MetaDataService\022/\n\010getTable\022" + |
| "\020.GetTableRequest\032\021.MetaDataResponse\0227\n\014" + |
| "getFunctions\022\024.GetFunctionsRequest\032\021.Met" + |
| "aDataResponse\0221\n\tgetSchema\022\021.GetSchemaRe", |
| "quest\032\021.MetaDataResponse\0225\n\013createTable\022" + |
| "\023.CreateTableRequest\032\021.MetaDataResponse\022" + |
| ";\n\016createFunction\022\026.CreateFunctionReques" + |
| "t\032\021.MetaDataResponse\0227\n\014createSchema\022\024.C" + |
| "reateSchemaRequest\032\021.MetaDataResponse\0221\n" + |
| "\tdropTable\022\021.DropTableRequest\032\021.MetaData" + |
| "Response\0223\n\ndropSchema\022\022.DropSchemaReque" + |
| "st\032\021.MetaDataResponse\0227\n\014dropFunction\022\024." + |
| "DropFunctionRequest\032\021.MetaDataResponse\0221" + |
| "\n\taddColumn\022\021.AddColumnRequest\032\021.MetaDat", |
| "aResponse\0223\n\ndropColumn\022\022.DropColumnRequ" + |
| "est\032\021.MetaDataResponse\022?\n\020updateIndexSta" + |
| "te\022\030.UpdateIndexStateRequest\032\021.MetaDataR" + |
| "esponse\0225\n\nclearCache\022\022.ClearCacheReques" + |
| "t\032\023.ClearCacheResponse\0225\n\ngetVersion\022\022.G" + |
| "etVersionRequest\032\023.GetVersionResponse\022P\n" + |
| "\023clearTableFromCache\022\033.ClearTableFromCac" + |
| "heRequest\032\034.ClearTableFromCacheResponseB" + |
| "B\n(org.apache.phoenix.coprocessor.genera" + |
| "tedB\016MetaDataProtosH\001\210\001\001\240\001\001" |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
| new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
| public com.google.protobuf.ExtensionRegistry assignDescriptors( |
| com.google.protobuf.Descriptors.FileDescriptor root) { |
| descriptor = root; |
| internal_static_SharedTableState_descriptor = |
| getDescriptor().getMessageTypes().get(0); |
| internal_static_SharedTableState_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_SharedTableState_descriptor, |
| new java.lang.String[] { "TenantId", "SchemaName", "TableName", "Columns", "PhysicalNames", "ViewIndexId", "ViewIndexIdType", }); |
| internal_static_MetaDataResponse_descriptor = |
| getDescriptor().getMessageTypes().get(1); |
| internal_static_MetaDataResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_MetaDataResponse_descriptor, |
| new java.lang.String[] { "ReturnCode", "MutationTime", "Table", "TablesToDelete", "ColumnName", "FamilyName", "FunctionName", "Function", "SharedTablesToDelete", "Schema", "AutoPartitionNum", "ViewIndexId", "ViewIndexIdType", }); |
| internal_static_GetTableRequest_descriptor = |
| getDescriptor().getMessageTypes().get(2); |
| internal_static_GetTableRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_GetTableRequest_descriptor, |
| new java.lang.String[] { "TenantId", "SchemaName", "TableName", "TableTimestamp", "ClientTimestamp", "ClientVersion", "SkipAddingParentColumns", "SkipAddingIndexes", "LockedAncestorTable", }); |
| internal_static_GetFunctionsRequest_descriptor = |
| getDescriptor().getMessageTypes().get(3); |
| internal_static_GetFunctionsRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_GetFunctionsRequest_descriptor, |
| new java.lang.String[] { "TenantId", "FunctionNames", "FunctionTimestamps", "ClientTimestamp", "ClientVersion", }); |
| internal_static_GetSchemaRequest_descriptor = |
| getDescriptor().getMessageTypes().get(4); |
| internal_static_GetSchemaRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_GetSchemaRequest_descriptor, |
| new java.lang.String[] { "SchemaName", "ClientTimestamp", "ClientVersion", }); |
| internal_static_CreateTableRequest_descriptor = |
| getDescriptor().getMessageTypes().get(5); |
| internal_static_CreateTableRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_CreateTableRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "ClientVersion", "AllocateIndexId", }); |
| internal_static_CreateFunctionRequest_descriptor = |
| getDescriptor().getMessageTypes().get(6); |
| internal_static_CreateFunctionRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_CreateFunctionRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "Temporary", "Replace", "ClientVersion", }); |
| internal_static_CreateSchemaRequest_descriptor = |
| getDescriptor().getMessageTypes().get(7); |
| internal_static_CreateSchemaRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_CreateSchemaRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "SchemaName", "ClientVersion", }); |
| internal_static_DropTableRequest_descriptor = |
| getDescriptor().getMessageTypes().get(8); |
| internal_static_DropTableRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_DropTableRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "TableType", "Cascade", "ClientVersion", "SkipAddingParentColumns", }); |
| internal_static_DropSchemaRequest_descriptor = |
| getDescriptor().getMessageTypes().get(9); |
| internal_static_DropSchemaRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_DropSchemaRequest_descriptor, |
| new java.lang.String[] { "SchemaMetadataMutations", "SchemaName", "ClientVersion", }); |
| internal_static_AddColumnRequest_descriptor = |
| getDescriptor().getMessageTypes().get(10); |
| internal_static_AddColumnRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_AddColumnRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "ClientVersion", }); |
| internal_static_DropColumnRequest_descriptor = |
| getDescriptor().getMessageTypes().get(11); |
| internal_static_DropColumnRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_DropColumnRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "ClientVersion", }); |
| internal_static_DropFunctionRequest_descriptor = |
| getDescriptor().getMessageTypes().get(12); |
| internal_static_DropFunctionRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_DropFunctionRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "IfExists", "ClientVersion", }); |
| internal_static_UpdateIndexStateRequest_descriptor = |
| getDescriptor().getMessageTypes().get(13); |
| internal_static_UpdateIndexStateRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_UpdateIndexStateRequest_descriptor, |
| new java.lang.String[] { "TableMetadataMutations", "ClientVersion", }); |
| internal_static_ClearCacheRequest_descriptor = |
| getDescriptor().getMessageTypes().get(14); |
| internal_static_ClearCacheRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_ClearCacheRequest_descriptor, |
| new java.lang.String[] { "ClientVersion", }); |
| internal_static_ClearCacheResponse_descriptor = |
| getDescriptor().getMessageTypes().get(15); |
| internal_static_ClearCacheResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_ClearCacheResponse_descriptor, |
| new java.lang.String[] { "UnfreedBytes", }); |
| internal_static_GetVersionRequest_descriptor = |
| getDescriptor().getMessageTypes().get(16); |
| internal_static_GetVersionRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_GetVersionRequest_descriptor, |
| new java.lang.String[] { "ClientVersion", }); |
| internal_static_GetVersionResponse_descriptor = |
| getDescriptor().getMessageTypes().get(17); |
| internal_static_GetVersionResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_GetVersionResponse_descriptor, |
| new java.lang.String[] { "Version", "SystemCatalogTimestamp", }); |
| internal_static_ClearTableFromCacheRequest_descriptor = |
| getDescriptor().getMessageTypes().get(18); |
| internal_static_ClearTableFromCacheRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_ClearTableFromCacheRequest_descriptor, |
| new java.lang.String[] { "TenantId", "SchemaName", "TableName", "ClientTimestamp", "ClientVersion", }); |
| internal_static_ClearTableFromCacheResponse_descriptor = |
| getDescriptor().getMessageTypes().get(19); |
| internal_static_ClearTableFromCacheResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_ClearTableFromCacheResponse_descriptor, |
| new java.lang.String[] { }); |
| return null; |
| } |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor |
| .internalBuildGeneratedFileFrom(descriptorData, |
| new com.google.protobuf.Descriptors.FileDescriptor[] { |
| org.apache.phoenix.coprocessor.generated.PTableProtos.getDescriptor(), |
| org.apache.phoenix.coprocessor.generated.PFunctionProtos.getDescriptor(), |
| org.apache.phoenix.coprocessor.generated.PSchemaProtos.getDescriptor(), |
| }, assigner); |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |