Class PollerGroupsInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PollerGroupsInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<PollerGroupsInfo.Builder>
io.temporal.api.taskqueue.v1.PollerGroupsInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PollerGroupsInfoOrBuilder, Cloneable
Enclosing class:
PollerGroupsInfo

public static final class PollerGroupsInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PollerGroupsInfo.Builder> implements PollerGroupsInfoOrBuilder
 A versioned snapshot of the poller groups the client should use for future polls to a task
 queue. The version is monotonically increasing so that a client can ignore a snapshot that is
 older than the one it has already applied.
 
Protobuf type temporal.api.taskqueue.v1.PollerGroupsInfo
  • 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<PollerGroupsInfo.Builder>
    • clear

      public PollerGroupsInfo.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<PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • setField

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • clearField

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • clearOneof

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • setRepeatedField

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • addRepeatedField

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • mergeFrom

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • mergeFrom

      public PollerGroupsInfo.Builder mergeFrom(PollerGroupsInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PollerGroupsInfo.Builder>
    • mergeFrom

      public PollerGroupsInfo.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<PollerGroupsInfo.Builder>
      Throws:
      IOException
    • getVersion

      public long getVersion()
       Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
       version is not greater than the one it last applied.
       
      int64 version = 1;
      Specified by:
      getVersion in interface PollerGroupsInfoOrBuilder
      Returns:
      The version.
    • setVersion

      public PollerGroupsInfo.Builder setVersion(long value)
       Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
       version is not greater than the one it last applied.
       
      int64 version = 1;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public PollerGroupsInfo.Builder clearVersion()
       Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
       version is not greater than the one it last applied.
       
      int64 version = 1;
      Returns:
      This builder for chaining.
    • getPollerGroupsList

      public List<PollerGroupInfo> getPollerGroupsList()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
      Specified by:
      getPollerGroupsList in interface PollerGroupsInfoOrBuilder
    • getPollerGroupsCount

      public int getPollerGroupsCount()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
      Specified by:
      getPollerGroupsCount in interface PollerGroupsInfoOrBuilder
    • getPollerGroups

      public PollerGroupInfo getPollerGroups(int index)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
      Specified by:
      getPollerGroups in interface PollerGroupsInfoOrBuilder
    • setPollerGroups

      public PollerGroupsInfo.Builder setPollerGroups(int index, PollerGroupInfo value)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • setPollerGroups

      public PollerGroupsInfo.Builder setPollerGroups(int index, PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addPollerGroups

      public PollerGroupsInfo.Builder addPollerGroups(PollerGroupInfo value)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addPollerGroups

      public PollerGroupsInfo.Builder addPollerGroups(int index, PollerGroupInfo value)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addPollerGroups

      public PollerGroupsInfo.Builder addPollerGroups(PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addPollerGroups

      public PollerGroupsInfo.Builder addPollerGroups(int index, PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addAllPollerGroups

      public PollerGroupsInfo.Builder addAllPollerGroups(Iterable<? extends PollerGroupInfo> values)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • clearPollerGroups

      public PollerGroupsInfo.Builder clearPollerGroups()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • removePollerGroups

      public PollerGroupsInfo.Builder removePollerGroups(int index)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • getPollerGroupsBuilder

      public PollerGroupInfo.Builder getPollerGroupsBuilder(int index)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • getPollerGroupsOrBuilder

      public PollerGroupInfoOrBuilder getPollerGroupsOrBuilder(int index)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
      Specified by:
      getPollerGroupsOrBuilder in interface PollerGroupsInfoOrBuilder
    • getPollerGroupsOrBuilderList

      public List<? extends PollerGroupInfoOrBuilder> getPollerGroupsOrBuilderList()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
      Specified by:
      getPollerGroupsOrBuilderList in interface PollerGroupsInfoOrBuilder
    • addPollerGroupsBuilder

      public PollerGroupInfo.Builder addPollerGroupsBuilder()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • addPollerGroupsBuilder

      public PollerGroupInfo.Builder addPollerGroupsBuilder(int index)
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • getPollerGroupsBuilderList

      public List<PollerGroupInfo.Builder> getPollerGroupsBuilderList()
       The weighted list of poller groups the client should use for future polls to this task queue.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_groups = 2;
    • setUnknownFields

      public final PollerGroupsInfo.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<PollerGroupsInfo.Builder>
    • mergeUnknownFields

      public final PollerGroupsInfo.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<PollerGroupsInfo.Builder>