Package io.dingodb.coordinator
Class Coordinator.CreateRegionRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.coordinator.Coordinator.CreateRegionRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Coordinator.CreateRegionRequestOrBuilder,Serializable
- Enclosing class:
- Coordinator
public static final class Coordinator.CreateRegionRequest
extends com.google.protobuf.GeneratedMessageV3
implements Coordinator.CreateRegionRequestOrBuilder
Protobuf type
dingodb.pb.coordinator.CreateRegionRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.coordinator.CreateRegionRequestNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorlongoptional, if region_type is INDEX, this field is requiredoptional, if region_type is INDEX, this field is requiredoptional, if region_type is INDEX, this field is requiredcom.google.protobuf.Parser<Coordinator.CreateRegionRequest>longoptional, if region_type is INDEX, this field is requiredgetRange().dingodb.pb.common.Range range = 5;.dingodb.pb.common.Range range = 5;.dingodb.pb.common.RawEngine raw_engine = 6;int.dingodb.pb.common.RawEngine raw_engine = 6;longoptional, if region_id <= 0.string region_name = 2;com.google.protobuf.ByteStringstring region_name = 2;optional, if set, will create a region with this type, this type is default STOREintoptional, if set, will create a region with this type, this type is default STORElongint64 replica_num = 4;.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;string resource_tag = 3;com.google.protobuf.ByteStringstring resource_tag = 3;longoptionalintlongoptional, if set, will split from this regionoptional if set, will create a store engine with this type, this is type is default raft store engineintoptional if set, will create a store engine with this type, this is type is default raft store enginelonggetStoreIds(int index) optional if not set, will create choose from all storesintoptional if not set, will create choose from all storesoptional if not set, will create choose from all storeslongoptionallongoptional, if not provided or zero, means default tenantbooleanif true, use region_name direct; if false, use region_name add [region_id]inthashCode()booleanoptional, if region_type is INDEX, this field is requiredbooleanhasRange().dingodb.pb.common.Range range = 5;boolean.dingodb.pb.common.RequestInfo request_info = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Coordinator.CreateRegionRequest prototype) protected Coordinator.CreateRegionRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Coordinator.CreateRegionRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REQUEST_INFO_FIELD_NUMBER
public static final int REQUEST_INFO_FIELD_NUMBER- See Also:
-
REGION_NAME_FIELD_NUMBER
public static final int REGION_NAME_FIELD_NUMBER- See Also:
-
RESOURCE_TAG_FIELD_NUMBER
public static final int RESOURCE_TAG_FIELD_NUMBER- See Also:
-
REPLICA_NUM_FIELD_NUMBER
public static final int REPLICA_NUM_FIELD_NUMBER- See Also:
-
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER- See Also:
-
RAW_ENGINE_FIELD_NUMBER
public static final int RAW_ENGINE_FIELD_NUMBER- See Also:
-
STORE_ENGINE_FIELD_NUMBER
public static final int STORE_ENGINE_FIELD_NUMBER- See Also:
-
REGION_ID_FIELD_NUMBER
public static final int REGION_ID_FIELD_NUMBER- See Also:
-
USE_REGION_NAME_DIRECT_FIELD_NUMBER
public static final int USE_REGION_NAME_DIRECT_FIELD_NUMBER- See Also:
-
SCHEMA_ID_FIELD_NUMBER
public static final int SCHEMA_ID_FIELD_NUMBER- See Also:
-
TABLE_ID_FIELD_NUMBER
public static final int TABLE_ID_FIELD_NUMBER- See Also:
-
INDEX_ID_FIELD_NUMBER
public static final int INDEX_ID_FIELD_NUMBER- See Also:
-
PART_ID_FIELD_NUMBER
public static final int PART_ID_FIELD_NUMBER- See Also:
-
TENANT_ID_FIELD_NUMBER
public static final int TENANT_ID_FIELD_NUMBER- See Also:
-
STORE_IDS_FIELD_NUMBER
public static final int STORE_IDS_FIELD_NUMBER- See Also:
-
SPLIT_FROM_REGION_ID_FIELD_NUMBER
public static final int SPLIT_FROM_REGION_ID_FIELD_NUMBER- See Also:
-
REGION_TYPE_FIELD_NUMBER
public static final int REGION_TYPE_FIELD_NUMBER- See Also:
-
INDEX_PARAMETER_FIELD_NUMBER
public static final int INDEX_PARAMETER_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasRequestInfo
public boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
hasRequestInfoin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The requestInfo.
-
getRequestInfoOrBuilder
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoOrBuilderin interfaceCoordinator.CreateRegionRequestOrBuilder
-
getRegionName
string region_name = 2;- Specified by:
getRegionNamein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The regionName.
-
getRegionNameBytes
public com.google.protobuf.ByteString getRegionNameBytes()string region_name = 2;- Specified by:
getRegionNameBytesin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The bytes for regionName.
-
getResourceTag
string resource_tag = 3;- Specified by:
getResourceTagin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The resourceTag.
-
getResourceTagBytes
public com.google.protobuf.ByteString getResourceTagBytes()string resource_tag = 3;- Specified by:
getResourceTagBytesin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The bytes for resourceTag.
-
getReplicaNum
public long getReplicaNum()int64 replica_num = 4;- Specified by:
getReplicaNumin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The replicaNum.
-
hasRange
public boolean hasRange().dingodb.pb.common.Range range = 5;- Specified by:
hasRangein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- Whether the range field is set.
-
getRange
.dingodb.pb.common.Range range = 5;- Specified by:
getRangein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The range.
-
getRangeOrBuilder
.dingodb.pb.common.Range range = 5;- Specified by:
getRangeOrBuilderin interfaceCoordinator.CreateRegionRequestOrBuilder
-
getRawEngineValue
public int getRawEngineValue().dingodb.pb.common.RawEngine raw_engine = 6;- Specified by:
getRawEngineValuein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The enum numeric value on the wire for rawEngine.
-
getRawEngine
.dingodb.pb.common.RawEngine raw_engine = 6;- Specified by:
getRawEnginein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The rawEngine.
-
getStoreEngineValue
public int getStoreEngineValue()optional if set, will create a store engine with this type, this is type is default raft store engine
.dingodb.pb.common.StorageEngine store_engine = 7;- Specified by:
getStoreEngineValuein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The enum numeric value on the wire for storeEngine.
-
getStoreEngine
optional if set, will create a store engine with this type, this is type is default raft store engine
.dingodb.pb.common.StorageEngine store_engine = 7;- Specified by:
getStoreEnginein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The storeEngine.
-
getRegionId
public long getRegionId()optional, if region_id <= 0. coordinator will generate new region_id. if region_id > 0 coordinator will use the region_id.
int64 region_id = 8;- Specified by:
getRegionIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The regionId.
-
getUseRegionNameDirect
public boolean getUseRegionNameDirect()if true, use region_name direct; if false, use region_name add [region_id]
bool use_region_name_direct = 9;- Specified by:
getUseRegionNameDirectin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The useRegionNameDirect.
-
getSchemaId
public long getSchemaId()optional
int64 schema_id = 11;- Specified by:
getSchemaIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The schemaId.
-
getTableId
public long getTableId()optional
int64 table_id = 12;- Specified by:
getTableIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The tableId.
-
getIndexId
public long getIndexId()optional, if region_type is INDEX, this field is required
int64 index_id = 13;- Specified by:
getIndexIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The indexId.
-
getPartId
public long getPartId()optional, if region_type is INDEX, this field is required
int64 part_id = 14;- Specified by:
getPartIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The partId.
-
getTenantId
public long getTenantId()optional, if not provided or zero, means default tenant
int64 tenant_id = 15;- Specified by:
getTenantIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The tenantId.
-
getStoreIdsList
optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Specified by:
getStoreIdsListin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- A list containing the storeIds.
-
getStoreIdsCount
public int getStoreIdsCount()optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Specified by:
getStoreIdsCountin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The count of storeIds.
-
getStoreIds
public long getStoreIds(int index) optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Specified by:
getStoreIdsin interfaceCoordinator.CreateRegionRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The storeIds at the given index.
-
getSplitFromRegionId
public long getSplitFromRegionId()optional, if set, will split from this region
int64 split_from_region_id = 25;- Specified by:
getSplitFromRegionIdin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The splitFromRegionId.
-
getRegionTypeValue
public int getRegionTypeValue()optional, if set, will create a region with this type, this type is default STORE
.dingodb.pb.common.RegionType region_type = 30;- Specified by:
getRegionTypeValuein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The enum numeric value on the wire for regionType.
-
getRegionType
optional, if set, will create a region with this type, this type is default STORE
.dingodb.pb.common.RegionType region_type = 30;- Specified by:
getRegionTypein interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The regionType.
-
hasIndexParameter
public boolean hasIndexParameter()optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;- Specified by:
hasIndexParameterin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- Whether the indexParameter field is set.
-
getIndexParameter
optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;- Specified by:
getIndexParameterin interfaceCoordinator.CreateRegionRequestOrBuilder- Returns:
- The indexParameter.
-
getIndexParameterOrBuilder
optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;- Specified by:
getIndexParameterOrBuilderin interfaceCoordinator.CreateRegionRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Coordinator.CreateRegionRequest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Coordinator.CreateRegionRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.CreateRegionRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Coordinator.CreateRegionRequest.Builder newBuilder(Coordinator.CreateRegionRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Coordinator.CreateRegionRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-