Package com.google.spanner.v1
Class Group.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
com.google.spanner.v1.Group.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GroupOrBuilder,Cloneable
- Enclosing class:
- Group
public static final class Group.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
implements GroupOrBuilder
A `Group` represents a paxos group in a database. A group is a set of tablets that are replicated across multiple servers. Groups may have a leader tablet. Groups store one (or sometimes more) ranges of keys.Protobuf type
google.spanner.v1.Group-
Method Summary
Modifier and TypeMethodDescriptionaddAllTablets(Iterable<? extends Tablet> values) A list of tablets that are part of the group.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTablets(int index, Tablet value) A list of tablets that are part of the group.addTablets(int index, Tablet.Builder builderForValue) A list of tablets that are part of the group.addTablets(Tablet value) A list of tablets that are part of the group.addTablets(Tablet.Builder builderForValue) A list of tablets that are part of the group.A list of tablets that are part of the group.addTabletsBuilder(int index) A list of tablets that are part of the group.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) `generation` indicates the freshness of the group information (including leader information) contained in this proto.The UID of the paxos group, unique within the database.The last known leader tablet of the group as an index into `tablets`.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A list of tablets that are part of the group.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteString`generation` indicates the freshness of the group information (including leader information) contained in this proto.longThe UID of the paxos group, unique within the database.intThe last known leader tablet of the group as an index into `tablets`.getTablets(int index) A list of tablets that are part of the group.getTabletsBuilder(int index) A list of tablets that are part of the group.A list of tablets that are part of the group.intA list of tablets that are part of the group.A list of tablets that are part of the group.getTabletsOrBuilder(int index) A list of tablets that are part of the group.List<? extends TabletOrBuilder>A list of tablets that are part of the group.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Group.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeTablets(int index) A list of tablets that are part of the group.setGeneration(com.google.protobuf.ByteString value) `generation` indicates the freshness of the group information (including leader information) contained in this proto.setGroupUid(long value) The UID of the paxos group, unique within the database.setLeaderIndex(int value) The last known leader tablet of the group as an index into `tablets`.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTablets(int index, Tablet value) A list of tablets that are part of the group.setTablets(int index, Tablet.Builder builderForValue) A list of tablets that are part of the group.final Group.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Group.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
setRepeatedField
public Group.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
addRepeatedField
public Group.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Group.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
mergeFrom
public Group.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Group.Builder>- Throws:
IOException
-
getGroupUid
public long getGroupUid()The UID of the paxos group, unique within the database. Matches the `group_uid` field in `Range`.
uint64 group_uid = 1;- Specified by:
getGroupUidin interfaceGroupOrBuilder- Returns:
- The groupUid.
-
setGroupUid
The UID of the paxos group, unique within the database. Matches the `group_uid` field in `Range`.
uint64 group_uid = 1;- Parameters:
value- The groupUid to set.- Returns:
- This builder for chaining.
-
clearGroupUid
The UID of the paxos group, unique within the database. Matches the `group_uid` field in `Range`.
uint64 group_uid = 1;- Returns:
- This builder for chaining.
-
getTabletsList
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2;- Specified by:
getTabletsListin interfaceGroupOrBuilder
-
getTabletsCount
public int getTabletsCount()A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2;- Specified by:
getTabletsCountin interfaceGroupOrBuilder
-
getTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2;- Specified by:
getTabletsin interfaceGroupOrBuilder
-
setTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
setTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addAllTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
clearTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
removeTablets
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
getTabletsBuilder
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
getTabletsOrBuilder
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2;- Specified by:
getTabletsOrBuilderin interfaceGroupOrBuilder
-
getTabletsOrBuilderList
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2;- Specified by:
getTabletsOrBuilderListin interfaceGroupOrBuilder
-
addTabletsBuilder
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
addTabletsBuilder
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
getTabletsBuilderList
A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance. Tablet UIDs reference `Tablet.tablet_uid`.
repeated .google.spanner.v1.Tablet tablets = 2; -
getLeaderIndex
public int getLeaderIndex()The last known leader tablet of the group as an index into `tablets`. May be negative if the group has no known leader.
int32 leader_index = 3;- Specified by:
getLeaderIndexin interfaceGroupOrBuilder- Returns:
- The leaderIndex.
-
setLeaderIndex
The last known leader tablet of the group as an index into `tablets`. May be negative if the group has no known leader.
int32 leader_index = 3;- Parameters:
value- The leaderIndex to set.- Returns:
- This builder for chaining.
-
clearLeaderIndex
The last known leader tablet of the group as an index into `tablets`. May be negative if the group has no known leader.
int32 leader_index = 3;- Returns:
- This builder for chaining.
-
getGeneration
public com.google.protobuf.ByteString getGeneration()`generation` indicates the freshness of the group information (including leader information) contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Group` corresponding to A is newer than the `Group` corresponding to B, and should be used preferentially.
bytes generation = 4;- Specified by:
getGenerationin interfaceGroupOrBuilder- Returns:
- The generation.
-
setGeneration
`generation` indicates the freshness of the group information (including leader information) contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Group` corresponding to A is newer than the `Group` corresponding to B, and should be used preferentially.
bytes generation = 4;- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
clearGeneration
`generation` indicates the freshness of the group information (including leader information) contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Group` corresponding to A is newer than the `Group` corresponding to B, and should be used preferentially.
bytes generation = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>
-