Class TaskQueueVersionInfo.Builder

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

public static final class TaskQueueVersionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersionInfo.Builder> implements TaskQueueVersionInfoOrBuilder
Protobuf type temporal.api.taskqueue.v1.TaskQueueVersionInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersionInfo.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersionInfo.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersionInfo.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<TaskQueueVersionInfo.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<TaskQueueVersionInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public TaskQueueVersionInfo.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<TaskQueueVersionInfo.Builder>
      Throws:
      IOException
    • getTypesInfoCount

      public int getTypesInfoCount()
      Description copied from interface: TaskQueueVersionInfoOrBuilder
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
      Specified by:
      getTypesInfoCount in interface TaskQueueVersionInfoOrBuilder
    • containsTypesInfo

      public boolean containsTypesInfo(int key)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
      Specified by:
      containsTypesInfo in interface TaskQueueVersionInfoOrBuilder
    • getTypesInfo

      @Deprecated public Map<Integer,TaskQueueTypeInfo> getTypesInfo()
      Deprecated.
      Use getTypesInfoMap() instead.
      Specified by:
      getTypesInfo in interface TaskQueueVersionInfoOrBuilder
    • getTypesInfoMap

      public Map<Integer,TaskQueueTypeInfo> getTypesInfoMap()
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
      Specified by:
      getTypesInfoMap in interface TaskQueueVersionInfoOrBuilder
    • getTypesInfoOrDefault

      public TaskQueueTypeInfo getTypesInfoOrDefault(int key, TaskQueueTypeInfo defaultValue)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
      Specified by:
      getTypesInfoOrDefault in interface TaskQueueVersionInfoOrBuilder
    • getTypesInfoOrThrow

      public TaskQueueTypeInfo getTypesInfoOrThrow(int key)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
      Specified by:
      getTypesInfoOrThrow in interface TaskQueueVersionInfoOrBuilder
    • clearTypesInfo

      public TaskQueueVersionInfo.Builder clearTypesInfo()
    • removeTypesInfo

      public TaskQueueVersionInfo.Builder removeTypesInfo(int key)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
    • getMutableTypesInfo

      @Deprecated public Map<Integer,TaskQueueTypeInfo> getMutableTypesInfo()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTypesInfo

      public TaskQueueVersionInfo.Builder putTypesInfo(int key, TaskQueueTypeInfo value)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
    • putAllTypesInfo

      public TaskQueueVersionInfo.Builder putAllTypesInfo(Map<Integer,TaskQueueTypeInfo> values)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
    • putTypesInfoBuilderIfAbsent

      public TaskQueueTypeInfo.Builder putTypesInfoBuilderIfAbsent(int key)
       Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
       
      map<int32, .temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
    • getTaskReachabilityValue

      public int getTaskReachabilityValue()
       Task Reachability is eventually consistent; there may be a delay until it converges to the most
       accurate value but it is designed in a way to take the more conservative side until it converges.
       For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
      
       Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
       accounted for reachability as server cannot know if they'll happen as they do not use
       assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
       who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
       sure to query reachability for the parent/previous workflow's Task Queue as well.
       
      .temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
      Specified by:
      getTaskReachabilityValue in interface TaskQueueVersionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for taskReachability.
    • setTaskReachabilityValue

      public TaskQueueVersionInfo.Builder setTaskReachabilityValue(int value)
       Task Reachability is eventually consistent; there may be a delay until it converges to the most
       accurate value but it is designed in a way to take the more conservative side until it converges.
       For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
      
       Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
       accounted for reachability as server cannot know if they'll happen as they do not use
       assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
       who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
       sure to query reachability for the parent/previous workflow's Task Queue as well.
       
      .temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
      Parameters:
      value - The enum numeric value on the wire for taskReachability to set.
      Returns:
      This builder for chaining.
    • getTaskReachability

      public BuildIdTaskReachability getTaskReachability()
       Task Reachability is eventually consistent; there may be a delay until it converges to the most
       accurate value but it is designed in a way to take the more conservative side until it converges.
       For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
      
       Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
       accounted for reachability as server cannot know if they'll happen as they do not use
       assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
       who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
       sure to query reachability for the parent/previous workflow's Task Queue as well.
       
      .temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
      Specified by:
      getTaskReachability in interface TaskQueueVersionInfoOrBuilder
      Returns:
      The taskReachability.
    • setTaskReachability

      public TaskQueueVersionInfo.Builder setTaskReachability(BuildIdTaskReachability value)
       Task Reachability is eventually consistent; there may be a delay until it converges to the most
       accurate value but it is designed in a way to take the more conservative side until it converges.
       For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
      
       Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
       accounted for reachability as server cannot know if they'll happen as they do not use
       assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
       who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
       sure to query reachability for the parent/previous workflow's Task Queue as well.
       
      .temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
      Parameters:
      value - The taskReachability to set.
      Returns:
      This builder for chaining.
    • clearTaskReachability

      public TaskQueueVersionInfo.Builder clearTaskReachability()
       Task Reachability is eventually consistent; there may be a delay until it converges to the most
       accurate value but it is designed in a way to take the more conservative side until it converges.
       For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
      
       Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
       accounted for reachability as server cannot know if they'll happen as they do not use
       assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
       who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
       sure to query reachability for the parent/previous workflow's Task Queue as well.
       
      .temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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