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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • getDefaultInstanceForType

      public Meta.WatchCreateRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Meta.WatchCreateRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Meta.WatchCreateRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • setField

      public Meta.WatchCreateRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • clearField

      public Meta.WatchCreateRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • clearOneof

      public Meta.WatchCreateRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • addRepeatedField

      public Meta.WatchCreateRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • mergeFrom

      public Meta.WatchCreateRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Meta.WatchCreateRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getStartRevision in interface Meta.WatchCreateRequestOrBuilder
      Returns:
      The startRevision.
    • setStartRevision

      public Meta.WatchCreateRequest.Builder setStartRevision(long value)
       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

      public Meta.WatchCreateRequest.Builder 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

      public List<Meta.MetaEventType> getEventTypesList()
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Specified by:
      getEventTypesList in interface Meta.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:
      getEventTypesCount in interface Meta.WatchCreateRequestOrBuilder
      Returns:
      The count of eventTypes.
    • getEventTypes

      public Meta.MetaEventType getEventTypes(int index)
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Specified by:
      getEventTypes in interface Meta.WatchCreateRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventTypes at the given index.
    • setEventTypes

      public Meta.WatchCreateRequest.Builder setEventTypes(int index, Meta.MetaEventType value)
       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

      public Meta.WatchCreateRequest.Builder 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

      public List<Integer> getEventTypesValueList()
       the event_types than client want to get from coordinator
       
      repeated .dingodb.pb.meta.MetaEventType event_types = 2;
      Specified by:
      getEventTypesValueList in interface Meta.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:
      getEventTypesValue in interface Meta.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

      public Meta.WatchCreateRequest.Builder setEventTypesValue(int index, int value)
       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

      public Meta.WatchCreateRequest.Builder addEventTypesValue(int value)
       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

      public Meta.WatchCreateRequest.Builder addAllEventTypesValue(Iterable<Integer> values)
       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:
      getWatchId in interface Meta.WatchCreateRequestOrBuilder
      Returns:
      The watchId.
    • setWatchId

      public Meta.WatchCreateRequest.Builder setWatchId(long value)
       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

      public Meta.WatchCreateRequest.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>
    • mergeUnknownFields

      public final Meta.WatchCreateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchCreateRequest.Builder>