Package io.dingodb.meta
Class Meta.WatchCreateRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
io.dingodb.meta.Meta.WatchCreateRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.WatchCreateRequestOrBuilder,Cloneable
- Enclosing class:
- Meta.WatchCreateRequest
public static final class Meta.WatchCreateRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
implements Meta.WatchCreateRequestOrBuilder
Protobuf type
dingodb.pb.meta.WatchCreateRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventTypes(Iterable<? extends Meta.MetaEventType> values) the event_types than client want to get from coordinatoraddAllEventTypesValue(Iterable<Integer> values) the event_types than client want to get from coordinatoraddEventTypes(Meta.MetaEventType value) the event_types than client want to get from coordinatoraddEventTypesValue(int value) the event_types than client want to get from coordinatoraddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()the event_types than client want to get from coordinatorclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) start_revision is an optional revision to watch from (inclusive).If watch_id is provided and non-zero, it will be assigned to this watcher.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEventTypes(int index) the event_types than client want to get from coordinatorintthe event_types than client want to get from coordinatorthe event_types than client want to get from coordinatorintgetEventTypesValue(int index) the event_types than client want to get from coordinatorthe event_types than client want to get from coordinatorlongstart_revision is an optional revision to watch from (inclusive).longIf watch_id is provided and non-zero, it will be assigned to this watcher.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Meta.WatchCreateRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEventTypes(int index, Meta.MetaEventType value) the event_types than client want to get from coordinatorsetEventTypesValue(int index, int value) the event_types than client want to get from coordinatorsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartRevision(long value) start_revision is an optional revision to watch from (inclusive).setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWatchId(long value) If watch_id is provided and non-zero, it will be assigned to this watcher.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<Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.Builder>
-
setField
public Meta.WatchCreateRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-
clearField
public Meta.WatchCreateRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-
clearOneof
public Meta.WatchCreateRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-
setRepeatedField
public Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.Builder>
-
addRepeatedField
public Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Meta.WatchCreateRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-
mergeFrom
public Meta.WatchCreateRequest.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<Meta.WatchCreateRequest.Builder>- Throws:
IOException
-
getStartRevision
public long getStartRevision()start_revision is an optional revision to watch from (inclusive). if start_revision is 0, means watch from "now". if start_revision > 0, means watch from start_revision. if the caller setup the start_revision, the create may be failed if the start_revision is compacted. caller need to check the compact_revision in the response.
int64 start_revision = 1;- Specified by:
getStartRevisionin interfaceMeta.WatchCreateRequestOrBuilder- Returns:
- The startRevision.
-
setStartRevision
start_revision is an optional revision to watch from (inclusive). if start_revision is 0, means watch from "now". if start_revision > 0, means watch from start_revision. if the caller setup the start_revision, the create may be failed if the start_revision is compacted. caller need to check the compact_revision in the response.
int64 start_revision = 1;- Parameters:
value- The startRevision to set.- Returns:
- This builder for chaining.
-
clearStartRevision
start_revision is an optional revision to watch from (inclusive). if start_revision is 0, means watch from "now". if start_revision > 0, means watch from start_revision. if the caller setup the start_revision, the create may be failed if the start_revision is compacted. caller need to check the compact_revision in the response.
int64 start_revision = 1;- Returns:
- This builder for chaining.
-
getEventTypesList
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Specified by:
getEventTypesListin interfaceMeta.WatchCreateRequestOrBuilder- Returns:
- A list containing the eventTypes.
-
getEventTypesCount
public int getEventTypesCount()the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Specified by:
getEventTypesCountin interfaceMeta.WatchCreateRequestOrBuilder- Returns:
- The count of eventTypes.
-
getEventTypes
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Specified by:
getEventTypesin interfaceMeta.WatchCreateRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The eventTypes at the given index.
-
setEventTypes
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
index- The index to set the value at.value- The eventTypes to set.- Returns:
- This builder for chaining.
-
addEventTypes
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
value- The eventTypes to add.- Returns:
- This builder for chaining.
-
addAllEventTypes
public Meta.WatchCreateRequest.Builder addAllEventTypes(Iterable<? extends Meta.MetaEventType> values) the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
values- The eventTypes to add.- Returns:
- This builder for chaining.
-
clearEventTypes
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Returns:
- This builder for chaining.
-
getEventTypesValueList
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Specified by:
getEventTypesValueListin interfaceMeta.WatchCreateRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for eventTypes.
-
getEventTypesValue
public int getEventTypesValue(int index) the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Specified by:
getEventTypesValuein interfaceMeta.WatchCreateRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of eventTypes at the given index.
-
setEventTypesValue
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for eventTypes to set.- Returns:
- This builder for chaining.
-
addEventTypesValue
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
value- The enum numeric value on the wire for eventTypes to add.- Returns:
- This builder for chaining.
-
addAllEventTypesValue
the event_types than client want to get from coordinator
repeated .dingodb.pb.meta.MetaEventType event_types = 2;- Parameters:
values- The enum numeric values on the wire for eventTypes to add.- Returns:
- This builder for chaining.
-
getWatchId
public long getWatchId()If watch_id is provided and non-zero, it will be assigned to this watcher. For Executor, this field can be set to 0 to let coordinator assign a new ID. Since creating a watcher in coordinator is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;- Specified by:
getWatchIdin interfaceMeta.WatchCreateRequestOrBuilder- Returns:
- The watchId.
-
setWatchId
If watch_id is provided and non-zero, it will be assigned to this watcher. For Executor, this field can be set to 0 to let coordinator assign a new ID. Since creating a watcher in coordinator is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;- Parameters:
value- The watchId to set.- Returns:
- This builder for chaining.
-
clearWatchId
If watch_id is provided and non-zero, it will be assigned to this watcher. For Executor, this field can be set to 0 to let coordinator assign a new ID. Since creating a watcher in coordinator is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Meta.WatchCreateRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-
mergeUnknownFields
public final Meta.WatchCreateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
-