All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.taskqueue.v1.TaskQueueVersionInfo Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/taskqueue/v1/message.proto

package io.temporal.api.taskqueue.v1;

/**
 * Protobuf type {@code temporal.api.taskqueue.v1.TaskQueueVersionInfo}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:TaskQueueVersionInfo.java.pb.meta")
public  final class TaskQueueVersionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.taskqueue.v1.TaskQueueVersionInfo)
    TaskQueueVersionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TaskQueueVersionInfo.newBuilder() to construct.
  private TaskQueueVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TaskQueueVersionInfo() {
    taskReachability_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TaskQueueVersionInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TaskQueueVersionInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              typesInfo_ = com.google.protobuf.MapField.newMapField(
                  TypesInfoDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            typesInfo__ = input.readMessage(
                TypesInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            typesInfo_.getMutableMap().put(
                typesInfo__.getKey(), typesInfo__.getValue());
            break;
          }
          case 16: {
            int rawValue = input.readEnum();

            taskReachability_ = rawValue;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 1:
        return internalGetTypesInfo();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.class, io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.Builder.class);
  }

  public static final int TYPES_INFO_FIELD_NUMBER = 1;
  private static final class TypesInfoDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_TypesInfoEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.INT32,
                0,
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                io.temporal.api.taskqueue.v1.TaskQueueTypeInfo.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.Integer, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo> typesInfo_;
  private com.google.protobuf.MapField
  internalGetTypesInfo() {
    if (typesInfo_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          TypesInfoDefaultEntryHolder.defaultEntry);
    }
    return typesInfo_;
  }

  public int getTypesInfoCount() {
    return internalGetTypesInfo().getMap().size();
  }
  /**
   * 
   * 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; */ public boolean containsTypesInfo( int key) { return internalGetTypesInfo().getMap().containsKey(key); } /** * Use {@link #getTypesInfoMap()} instead. */ @java.lang.Deprecated public java.util.Map getTypesInfo() { return 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; */ public java.util.Map getTypesInfoMap() { return internalGetTypesInfo().getMap(); } /** *
   * 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; */ public io.temporal.api.taskqueue.v1.TaskQueueTypeInfo getTypesInfoOrDefault( int key, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo defaultValue) { java.util.Map map = internalGetTypesInfo().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ public io.temporal.api.taskqueue.v1.TaskQueueTypeInfo getTypesInfoOrThrow( int key) { java.util.Map map = internalGetTypesInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TASK_REACHABILITY_FIELD_NUMBER = 2; private int taskReachability_; /** *
   * 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; * @return The enum numeric value on the wire for taskReachability. */ public int getTaskReachabilityValue() { return taskReachability_; } /** *
   * 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; * @return The taskReachability. */ public io.temporal.api.enums.v1.BuildIdTaskReachability getTaskReachability() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BuildIdTaskReachability result = io.temporal.api.enums.v1.BuildIdTaskReachability.valueOf(taskReachability_); return result == null ? io.temporal.api.enums.v1.BuildIdTaskReachability.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetTypesInfo(), TypesInfoDefaultEntryHolder.defaultEntry, 1); if (taskReachability_ != io.temporal.api.enums.v1.BuildIdTaskReachability.BUILD_ID_TASK_REACHABILITY_UNSPECIFIED.getNumber()) { output.writeEnum(2, taskReachability_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetTypesInfo().getMap().entrySet()) { com.google.protobuf.MapEntry typesInfo__ = TypesInfoDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, typesInfo__); } if (taskReachability_ != io.temporal.api.enums.v1.BuildIdTaskReachability.BUILD_ID_TASK_REACHABILITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, taskReachability_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.taskqueue.v1.TaskQueueVersionInfo)) { return super.equals(obj); } io.temporal.api.taskqueue.v1.TaskQueueVersionInfo other = (io.temporal.api.taskqueue.v1.TaskQueueVersionInfo) obj; if (!internalGetTypesInfo().equals( other.internalGetTypesInfo())) return false; if (taskReachability_ != other.taskReachability_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetTypesInfo().getMap().isEmpty()) { hash = (37 * hash) + TYPES_INFO_FIELD_NUMBER; hash = (53 * hash) + internalGetTypesInfo().hashCode(); } hash = (37 * hash) + TASK_REACHABILITY_FIELD_NUMBER; hash = (53 * hash) + taskReachability_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.taskqueue.v1.TaskQueueVersionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code temporal.api.taskqueue.v1.TaskQueueVersionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.taskqueue.v1.TaskQueueVersionInfo) io.temporal.api.taskqueue.v1.TaskQueueVersionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetTypesInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableTypesInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.class, io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.Builder.class); } // Construct using io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableTypesInfo().clear(); taskReachability_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueVersionInfo_descriptor; } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueVersionInfo getDefaultInstanceForType() { return io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.getDefaultInstance(); } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueVersionInfo build() { io.temporal.api.taskqueue.v1.TaskQueueVersionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueVersionInfo buildPartial() { io.temporal.api.taskqueue.v1.TaskQueueVersionInfo result = new io.temporal.api.taskqueue.v1.TaskQueueVersionInfo(this); int from_bitField0_ = bitField0_; result.typesInfo_ = internalGetTypesInfo(); result.typesInfo_.makeImmutable(); result.taskReachability_ = taskReachability_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.taskqueue.v1.TaskQueueVersionInfo) { return mergeFrom((io.temporal.api.taskqueue.v1.TaskQueueVersionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.taskqueue.v1.TaskQueueVersionInfo other) { if (other == io.temporal.api.taskqueue.v1.TaskQueueVersionInfo.getDefaultInstance()) return this; internalGetMutableTypesInfo().mergeFrom( other.internalGetTypesInfo()); if (other.taskReachability_ != 0) { setTaskReachabilityValue(other.getTaskReachabilityValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.taskqueue.v1.TaskQueueVersionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.taskqueue.v1.TaskQueueVersionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo> typesInfo_; private com.google.protobuf.MapField internalGetTypesInfo() { if (typesInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( TypesInfoDefaultEntryHolder.defaultEntry); } return typesInfo_; } private com.google.protobuf.MapField internalGetMutableTypesInfo() { onChanged();; if (typesInfo_ == null) { typesInfo_ = com.google.protobuf.MapField.newMapField( TypesInfoDefaultEntryHolder.defaultEntry); } if (!typesInfo_.isMutable()) { typesInfo_ = typesInfo_.copy(); } return typesInfo_; } public int getTypesInfoCount() { return internalGetTypesInfo().getMap().size(); } /** *
     * 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; */ public boolean containsTypesInfo( int key) { return internalGetTypesInfo().getMap().containsKey(key); } /** * Use {@link #getTypesInfoMap()} instead. */ @java.lang.Deprecated public java.util.Map getTypesInfo() { return 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; */ public java.util.Map getTypesInfoMap() { return internalGetTypesInfo().getMap(); } /** *
     * 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; */ public io.temporal.api.taskqueue.v1.TaskQueueTypeInfo getTypesInfoOrDefault( int key, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo defaultValue) { java.util.Map map = internalGetTypesInfo().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ public io.temporal.api.taskqueue.v1.TaskQueueTypeInfo getTypesInfoOrThrow( int key) { java.util.Map map = internalGetTypesInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTypesInfo() { internalGetMutableTypesInfo().getMutableMap() .clear(); return this; } /** *
     * 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; */ public Builder removeTypesInfo( int key) { internalGetMutableTypesInfo().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTypesInfo() { return internalGetMutableTypesInfo().getMutableMap(); } /** *
     * 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; */ public Builder putTypesInfo( int key, io.temporal.api.taskqueue.v1.TaskQueueTypeInfo value) { if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableTypesInfo().getMutableMap() .put(key, value); return this; } /** *
     * 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; */ public Builder putAllTypesInfo( java.util.Map values) { internalGetMutableTypesInfo().getMutableMap() .putAll(values); return this; } private int taskReachability_ = 0; /** *
     * 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; * @return The enum numeric value on the wire for taskReachability. */ public int getTaskReachabilityValue() { return taskReachability_; } /** *
     * 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; * @param value The enum numeric value on the wire for taskReachability to set. * @return This builder for chaining. */ public Builder setTaskReachabilityValue(int value) { taskReachability_ = value; onChanged(); return this; } /** *
     * 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; * @return The taskReachability. */ public io.temporal.api.enums.v1.BuildIdTaskReachability getTaskReachability() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BuildIdTaskReachability result = io.temporal.api.enums.v1.BuildIdTaskReachability.valueOf(taskReachability_); return result == null ? io.temporal.api.enums.v1.BuildIdTaskReachability.UNRECOGNIZED : result; } /** *
     * 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; * @param value The taskReachability to set. * @return This builder for chaining. */ public Builder setTaskReachability(io.temporal.api.enums.v1.BuildIdTaskReachability value) { if (value == null) { throw new NullPointerException(); } taskReachability_ = value.getNumber(); onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearTaskReachability() { taskReachability_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo) } // @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo) private static final io.temporal.api.taskqueue.v1.TaskQueueVersionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.taskqueue.v1.TaskQueueVersionInfo(); } public static io.temporal.api.taskqueue.v1.TaskQueueVersionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskQueueVersionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskQueueVersionInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueVersionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy