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

io.temporal.api.taskqueue.v1.TaskQueueReachability 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;

/**
 * 
 * Reachability of tasks for a worker on a single task queue.
 * 
* * Protobuf type {@code temporal.api.taskqueue.v1.TaskQueueReachability} */ @javax.annotation.Generated(value="protoc", comments="annotations:TaskQueueReachability.java.pb.meta") public final class TaskQueueReachability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.taskqueue.v1.TaskQueueReachability) TaskQueueReachabilityOrBuilder { private static final long serialVersionUID = 0L; // Use TaskQueueReachability.newBuilder() to construct. private TaskQueueReachability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskQueueReachability() { taskQueue_ = ""; reachability_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TaskQueueReachability(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskQueueReachability( 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: { java.lang.String s = input.readStringRequireUtf8(); taskQueue_ = s; break; } case 16: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { reachability_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } reachability_.add(rawValue); break; } case 18: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { reachability_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } reachability_.add(rawValue); } input.popLimit(oldLimit); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { reachability_ = java.util.Collections.unmodifiableList(reachability_); } 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_TaskQueueReachability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueReachability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.taskqueue.v1.TaskQueueReachability.class, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder.class); } public static final int TASK_QUEUE_FIELD_NUMBER = 1; private volatile java.lang.Object taskQueue_; /** * string task_queue = 1; * @return The taskQueue. */ public java.lang.String getTaskQueue() { java.lang.Object ref = taskQueue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskQueue_ = s; return s; } } /** * string task_queue = 1; * @return The bytes for taskQueue. */ public com.google.protobuf.ByteString getTaskQueueBytes() { java.lang.Object ref = taskQueue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskQueue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REACHABILITY_FIELD_NUMBER = 2; private java.util.List reachability_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.temporal.api.enums.v1.TaskReachability> reachability_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.temporal.api.enums.v1.TaskReachability>() { public io.temporal.api.enums.v1.TaskReachability convert(java.lang.Integer from) { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.TaskReachability result = io.temporal.api.enums.v1.TaskReachability.valueOf(from); return result == null ? io.temporal.api.enums.v1.TaskReachability.UNRECOGNIZED : result; } }; /** *
   * Task reachability for a worker in a single task queue.
   * See the TaskReachability docstring for information about each enum variant.
   * If reachability is empty, this worker is considered unreachable in this task queue.
   * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return A list containing the reachability. */ public java.util.List getReachabilityList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.temporal.api.enums.v1.TaskReachability>(reachability_, reachability_converter_); } /** *
   * Task reachability for a worker in a single task queue.
   * See the TaskReachability docstring for information about each enum variant.
   * If reachability is empty, this worker is considered unreachable in this task queue.
   * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param value The reachability to add. */ public int getReachabilityCount() { return reachability_.size(); } /** *
   * Task reachability for a worker in a single task queue.
   * See the TaskReachability docstring for information about each enum variant.
   * If reachability is empty, this worker is considered unreachable in this task queue.
   * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index of the element to return. * @return The reachability at the given index. */ public io.temporal.api.enums.v1.TaskReachability getReachability(int index) { return reachability_converter_.convert(reachability_.get(index)); } /** *
   * Task reachability for a worker in a single task queue.
   * See the TaskReachability docstring for information about each enum variant.
   * If reachability is empty, this worker is considered unreachable in this task queue.
   * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return A list containing the enum numeric values on the wire for reachability. */ public java.util.List getReachabilityValueList() { return reachability_; } /** *
   * Task reachability for a worker in a single task queue.
   * See the TaskReachability docstring for information about each enum variant.
   * If reachability is empty, this worker is considered unreachable in this task queue.
   * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of reachability at the given index. */ public int getReachabilityValue(int index) { return reachability_.get(index); } private int reachabilityMemoizedSerializedSize; 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 { getSerializedSize(); if (!getTaskQueueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskQueue_); } if (getReachabilityList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(reachabilityMemoizedSerializedSize); } for (int i = 0; i < reachability_.size(); i++) { output.writeEnumNoTag(reachability_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTaskQueueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskQueue_); } { int dataSize = 0; for (int i = 0; i < reachability_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(reachability_.get(i)); } size += dataSize; if (!getReachabilityList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }reachabilityMemoizedSerializedSize = dataSize; } 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.TaskQueueReachability)) { return super.equals(obj); } io.temporal.api.taskqueue.v1.TaskQueueReachability other = (io.temporal.api.taskqueue.v1.TaskQueueReachability) obj; if (!getTaskQueue() .equals(other.getTaskQueue())) return false; if (!reachability_.equals(other.reachability_)) 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(); hash = (37 * hash) + TASK_QUEUE_FIELD_NUMBER; hash = (53 * hash) + getTaskQueue().hashCode(); if (getReachabilityCount() > 0) { hash = (37 * hash) + REACHABILITY_FIELD_NUMBER; hash = (53 * hash) + reachability_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.taskqueue.v1.TaskQueueReachability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability 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.TaskQueueReachability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability 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.TaskQueueReachability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability 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.TaskQueueReachability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability 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.TaskQueueReachability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability 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.TaskQueueReachability 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.TaskQueueReachability 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.TaskQueueReachability 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; } /** *
   * Reachability of tasks for a worker on a single task queue.
   * 
* * Protobuf type {@code temporal.api.taskqueue.v1.TaskQueueReachability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.taskqueue.v1.TaskQueueReachability) io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueReachability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_TaskQueueReachability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.taskqueue.v1.TaskQueueReachability.class, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder.class); } // Construct using io.temporal.api.taskqueue.v1.TaskQueueReachability.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(); taskQueue_ = ""; reachability_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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_TaskQueueReachability_descriptor; } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueReachability getDefaultInstanceForType() { return io.temporal.api.taskqueue.v1.TaskQueueReachability.getDefaultInstance(); } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueReachability build() { io.temporal.api.taskqueue.v1.TaskQueueReachability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.taskqueue.v1.TaskQueueReachability buildPartial() { io.temporal.api.taskqueue.v1.TaskQueueReachability result = new io.temporal.api.taskqueue.v1.TaskQueueReachability(this); int from_bitField0_ = bitField0_; result.taskQueue_ = taskQueue_; if (((bitField0_ & 0x00000001) != 0)) { reachability_ = java.util.Collections.unmodifiableList(reachability_); bitField0_ = (bitField0_ & ~0x00000001); } result.reachability_ = reachability_; 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.TaskQueueReachability) { return mergeFrom((io.temporal.api.taskqueue.v1.TaskQueueReachability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.taskqueue.v1.TaskQueueReachability other) { if (other == io.temporal.api.taskqueue.v1.TaskQueueReachability.getDefaultInstance()) return this; if (!other.getTaskQueue().isEmpty()) { taskQueue_ = other.taskQueue_; onChanged(); } if (!other.reachability_.isEmpty()) { if (reachability_.isEmpty()) { reachability_ = other.reachability_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureReachabilityIsMutable(); reachability_.addAll(other.reachability_); } onChanged(); } 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.TaskQueueReachability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.taskqueue.v1.TaskQueueReachability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object taskQueue_ = ""; /** * string task_queue = 1; * @return The taskQueue. */ public java.lang.String getTaskQueue() { java.lang.Object ref = taskQueue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskQueue_ = s; return s; } else { return (java.lang.String) ref; } } /** * string task_queue = 1; * @return The bytes for taskQueue. */ public com.google.protobuf.ByteString getTaskQueueBytes() { java.lang.Object ref = taskQueue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskQueue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string task_queue = 1; * @param value The taskQueue to set. * @return This builder for chaining. */ public Builder setTaskQueue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } taskQueue_ = value; onChanged(); return this; } /** * string task_queue = 1; * @return This builder for chaining. */ public Builder clearTaskQueue() { taskQueue_ = getDefaultInstance().getTaskQueue(); onChanged(); return this; } /** * string task_queue = 1; * @param value The bytes for taskQueue to set. * @return This builder for chaining. */ public Builder setTaskQueueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); taskQueue_ = value; onChanged(); return this; } private java.util.List reachability_ = java.util.Collections.emptyList(); private void ensureReachabilityIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { reachability_ = new java.util.ArrayList(reachability_); bitField0_ |= 0x00000001; } } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return A list containing the reachability. */ public java.util.List getReachabilityList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.temporal.api.enums.v1.TaskReachability>(reachability_, reachability_converter_); } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return The count of reachability. */ public int getReachabilityCount() { return reachability_.size(); } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index of the element to return. * @return The reachability at the given index. */ public io.temporal.api.enums.v1.TaskReachability getReachability(int index) { return reachability_converter_.convert(reachability_.get(index)); } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index to set the value at. * @param value The reachability to set. * @return This builder for chaining. */ public Builder setReachability( int index, io.temporal.api.enums.v1.TaskReachability value) { if (value == null) { throw new NullPointerException(); } ensureReachabilityIsMutable(); reachability_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param value The reachability to add. * @return This builder for chaining. */ public Builder addReachability(io.temporal.api.enums.v1.TaskReachability value) { if (value == null) { throw new NullPointerException(); } ensureReachabilityIsMutable(); reachability_.add(value.getNumber()); onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param values The reachability to add. * @return This builder for chaining. */ public Builder addAllReachability( java.lang.Iterable values) { ensureReachabilityIsMutable(); for (io.temporal.api.enums.v1.TaskReachability value : values) { reachability_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return This builder for chaining. */ public Builder clearReachability() { reachability_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @return A list containing the enum numeric values on the wire for reachability. */ public java.util.List getReachabilityValueList() { return java.util.Collections.unmodifiableList(reachability_); } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of reachability at the given index. */ public int getReachabilityValue(int index) { return reachability_.get(index); } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of reachability at the given index. * @return This builder for chaining. */ public Builder setReachabilityValue( int index, int value) { ensureReachabilityIsMutable(); reachability_.set(index, value); onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param value The enum numeric value on the wire for reachability to add. * @return This builder for chaining. */ public Builder addReachabilityValue(int value) { ensureReachabilityIsMutable(); reachability_.add(value); onChanged(); return this; } /** *
     * Task reachability for a worker in a single task queue.
     * See the TaskReachability docstring for information about each enum variant.
     * If reachability is empty, this worker is considered unreachable in this task queue.
     * 
* * repeated .temporal.api.enums.v1.TaskReachability reachability = 2; * @param values The enum numeric values on the wire for reachability to add. * @return This builder for chaining. */ public Builder addAllReachabilityValue( java.lang.Iterable values) { ensureReachabilityIsMutable(); for (int value : values) { reachability_.add(value); } 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.TaskQueueReachability) } // @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueReachability) private static final io.temporal.api.taskqueue.v1.TaskQueueReachability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.taskqueue.v1.TaskQueueReachability(); } public static io.temporal.api.taskqueue.v1.TaskQueueReachability getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskQueueReachability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskQueueReachability(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.TaskQueueReachability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy