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

io.temporal.api.taskqueue.v1.BuildIdReachability 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 by build id, in one or more task queues.
 * 
* * Protobuf type {@code temporal.api.taskqueue.v1.BuildIdReachability} */ @javax.annotation.Generated(value="protoc", comments="annotations:BuildIdReachability.java.pb.meta") public final class BuildIdReachability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.taskqueue.v1.BuildIdReachability) BuildIdReachabilityOrBuilder { private static final long serialVersionUID = 0L; // Use BuildIdReachability.newBuilder() to construct. private BuildIdReachability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuildIdReachability() { buildId_ = ""; taskQueueReachability_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuildIdReachability(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BuildIdReachability( 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(); buildId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { taskQueueReachability_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } taskQueueReachability_.add( input.readMessage(io.temporal.api.taskqueue.v1.TaskQueueReachability.parser(), extensionRegistry)); 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)) { taskQueueReachability_ = java.util.Collections.unmodifiableList(taskQueueReachability_); } 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_BuildIdReachability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_BuildIdReachability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.taskqueue.v1.BuildIdReachability.class, io.temporal.api.taskqueue.v1.BuildIdReachability.Builder.class); } public static final int BUILD_ID_FIELD_NUMBER = 1; private volatile java.lang.Object buildId_; /** *
   * A build id or empty if unversioned.
   * 
* * string build_id = 1; * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; 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(); buildId_ = s; return s; } } /** *
   * A build id or empty if unversioned.
   * 
* * string build_id = 1; * @return The bytes for buildId. */ public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buildId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TASK_QUEUE_REACHABILITY_FIELD_NUMBER = 2; private java.util.List taskQueueReachability_; /** *
   * Reachability per task queue.
   * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public java.util.List getTaskQueueReachabilityList() { return taskQueueReachability_; } /** *
   * Reachability per task queue.
   * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public java.util.List getTaskQueueReachabilityOrBuilderList() { return taskQueueReachability_; } /** *
   * Reachability per task queue.
   * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public int getTaskQueueReachabilityCount() { return taskQueueReachability_.size(); } /** *
   * Reachability per task queue.
   * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachability getTaskQueueReachability(int index) { return taskQueueReachability_.get(index); } /** *
   * Reachability per task queue.
   * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder getTaskQueueReachabilityOrBuilder( int index) { return taskQueueReachability_.get(index); } 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 { if (!getBuildIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildId_); } for (int i = 0; i < taskQueueReachability_.size(); i++) { output.writeMessage(2, taskQueueReachability_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getBuildIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildId_); } for (int i = 0; i < taskQueueReachability_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, taskQueueReachability_.get(i)); } 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.BuildIdReachability)) { return super.equals(obj); } io.temporal.api.taskqueue.v1.BuildIdReachability other = (io.temporal.api.taskqueue.v1.BuildIdReachability) obj; if (!getBuildId() .equals(other.getBuildId())) return false; if (!getTaskQueueReachabilityList() .equals(other.getTaskQueueReachabilityList())) 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) + BUILD_ID_FIELD_NUMBER; hash = (53 * hash) + getBuildId().hashCode(); if (getTaskQueueReachabilityCount() > 0) { hash = (37 * hash) + TASK_QUEUE_REACHABILITY_FIELD_NUMBER; hash = (53 * hash) + getTaskQueueReachabilityList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.taskqueue.v1.BuildIdReachability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.BuildIdReachability 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.BuildIdReachability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.BuildIdReachability 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.BuildIdReachability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.taskqueue.v1.BuildIdReachability 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.BuildIdReachability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.BuildIdReachability 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.BuildIdReachability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.taskqueue.v1.BuildIdReachability 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.BuildIdReachability 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.BuildIdReachability 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.BuildIdReachability 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 by build id, in one or more task queues.
   * 
* * Protobuf type {@code temporal.api.taskqueue.v1.BuildIdReachability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.taskqueue.v1.BuildIdReachability) io.temporal.api.taskqueue.v1.BuildIdReachabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_BuildIdReachability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_BuildIdReachability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.taskqueue.v1.BuildIdReachability.class, io.temporal.api.taskqueue.v1.BuildIdReachability.Builder.class); } // Construct using io.temporal.api.taskqueue.v1.BuildIdReachability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTaskQueueReachabilityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); buildId_ = ""; if (taskQueueReachabilityBuilder_ == null) { taskQueueReachability_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { taskQueueReachabilityBuilder_.clear(); } 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_BuildIdReachability_descriptor; } @java.lang.Override public io.temporal.api.taskqueue.v1.BuildIdReachability getDefaultInstanceForType() { return io.temporal.api.taskqueue.v1.BuildIdReachability.getDefaultInstance(); } @java.lang.Override public io.temporal.api.taskqueue.v1.BuildIdReachability build() { io.temporal.api.taskqueue.v1.BuildIdReachability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.taskqueue.v1.BuildIdReachability buildPartial() { io.temporal.api.taskqueue.v1.BuildIdReachability result = new io.temporal.api.taskqueue.v1.BuildIdReachability(this); int from_bitField0_ = bitField0_; result.buildId_ = buildId_; if (taskQueueReachabilityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { taskQueueReachability_ = java.util.Collections.unmodifiableList(taskQueueReachability_); bitField0_ = (bitField0_ & ~0x00000001); } result.taskQueueReachability_ = taskQueueReachability_; } else { result.taskQueueReachability_ = taskQueueReachabilityBuilder_.build(); } 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.BuildIdReachability) { return mergeFrom((io.temporal.api.taskqueue.v1.BuildIdReachability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.taskqueue.v1.BuildIdReachability other) { if (other == io.temporal.api.taskqueue.v1.BuildIdReachability.getDefaultInstance()) return this; if (!other.getBuildId().isEmpty()) { buildId_ = other.buildId_; onChanged(); } if (taskQueueReachabilityBuilder_ == null) { if (!other.taskQueueReachability_.isEmpty()) { if (taskQueueReachability_.isEmpty()) { taskQueueReachability_ = other.taskQueueReachability_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.addAll(other.taskQueueReachability_); } onChanged(); } } else { if (!other.taskQueueReachability_.isEmpty()) { if (taskQueueReachabilityBuilder_.isEmpty()) { taskQueueReachabilityBuilder_.dispose(); taskQueueReachabilityBuilder_ = null; taskQueueReachability_ = other.taskQueueReachability_; bitField0_ = (bitField0_ & ~0x00000001); taskQueueReachabilityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaskQueueReachabilityFieldBuilder() : null; } else { taskQueueReachabilityBuilder_.addAllMessages(other.taskQueueReachability_); } } } 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.BuildIdReachability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.taskqueue.v1.BuildIdReachability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object buildId_ = ""; /** *
     * A build id or empty if unversioned.
     * 
* * string build_id = 1; * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A build id or empty if unversioned.
     * 
* * string build_id = 1; * @return The bytes for buildId. */ public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buildId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A build id or empty if unversioned.
     * 
* * string build_id = 1; * @param value The buildId to set. * @return This builder for chaining. */ public Builder setBuildId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buildId_ = value; onChanged(); return this; } /** *
     * A build id or empty if unversioned.
     * 
* * string build_id = 1; * @return This builder for chaining. */ public Builder clearBuildId() { buildId_ = getDefaultInstance().getBuildId(); onChanged(); return this; } /** *
     * A build id or empty if unversioned.
     * 
* * string build_id = 1; * @param value The bytes for buildId to set. * @return This builder for chaining. */ public Builder setBuildIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buildId_ = value; onChanged(); return this; } private java.util.List taskQueueReachability_ = java.util.Collections.emptyList(); private void ensureTaskQueueReachabilityIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { taskQueueReachability_ = new java.util.ArrayList(taskQueueReachability_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueueReachability, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder, io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder> taskQueueReachabilityBuilder_; /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public java.util.List getTaskQueueReachabilityList() { if (taskQueueReachabilityBuilder_ == null) { return java.util.Collections.unmodifiableList(taskQueueReachability_); } else { return taskQueueReachabilityBuilder_.getMessageList(); } } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public int getTaskQueueReachabilityCount() { if (taskQueueReachabilityBuilder_ == null) { return taskQueueReachability_.size(); } else { return taskQueueReachabilityBuilder_.getCount(); } } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachability getTaskQueueReachability(int index) { if (taskQueueReachabilityBuilder_ == null) { return taskQueueReachability_.get(index); } else { return taskQueueReachabilityBuilder_.getMessage(index); } } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder setTaskQueueReachability( int index, io.temporal.api.taskqueue.v1.TaskQueueReachability value) { if (taskQueueReachabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.set(index, value); onChanged(); } else { taskQueueReachabilityBuilder_.setMessage(index, value); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder setTaskQueueReachability( int index, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder builderForValue) { if (taskQueueReachabilityBuilder_ == null) { ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.set(index, builderForValue.build()); onChanged(); } else { taskQueueReachabilityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder addTaskQueueReachability(io.temporal.api.taskqueue.v1.TaskQueueReachability value) { if (taskQueueReachabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.add(value); onChanged(); } else { taskQueueReachabilityBuilder_.addMessage(value); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder addTaskQueueReachability( int index, io.temporal.api.taskqueue.v1.TaskQueueReachability value) { if (taskQueueReachabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.add(index, value); onChanged(); } else { taskQueueReachabilityBuilder_.addMessage(index, value); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder addTaskQueueReachability( io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder builderForValue) { if (taskQueueReachabilityBuilder_ == null) { ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.add(builderForValue.build()); onChanged(); } else { taskQueueReachabilityBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder addTaskQueueReachability( int index, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder builderForValue) { if (taskQueueReachabilityBuilder_ == null) { ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.add(index, builderForValue.build()); onChanged(); } else { taskQueueReachabilityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder addAllTaskQueueReachability( java.lang.Iterable values) { if (taskQueueReachabilityBuilder_ == null) { ensureTaskQueueReachabilityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, taskQueueReachability_); onChanged(); } else { taskQueueReachabilityBuilder_.addAllMessages(values); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder clearTaskQueueReachability() { if (taskQueueReachabilityBuilder_ == null) { taskQueueReachability_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { taskQueueReachabilityBuilder_.clear(); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public Builder removeTaskQueueReachability(int index) { if (taskQueueReachabilityBuilder_ == null) { ensureTaskQueueReachabilityIsMutable(); taskQueueReachability_.remove(index); onChanged(); } else { taskQueueReachabilityBuilder_.remove(index); } return this; } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder getTaskQueueReachabilityBuilder( int index) { return getTaskQueueReachabilityFieldBuilder().getBuilder(index); } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder getTaskQueueReachabilityOrBuilder( int index) { if (taskQueueReachabilityBuilder_ == null) { return taskQueueReachability_.get(index); } else { return taskQueueReachabilityBuilder_.getMessageOrBuilder(index); } } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public java.util.List getTaskQueueReachabilityOrBuilderList() { if (taskQueueReachabilityBuilder_ != null) { return taskQueueReachabilityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(taskQueueReachability_); } } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder addTaskQueueReachabilityBuilder() { return getTaskQueueReachabilityFieldBuilder().addBuilder( io.temporal.api.taskqueue.v1.TaskQueueReachability.getDefaultInstance()); } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder addTaskQueueReachabilityBuilder( int index) { return getTaskQueueReachabilityFieldBuilder().addBuilder( index, io.temporal.api.taskqueue.v1.TaskQueueReachability.getDefaultInstance()); } /** *
     * Reachability per task queue.
     * 
* * repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2; */ public java.util.List getTaskQueueReachabilityBuilderList() { return getTaskQueueReachabilityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueueReachability, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder, io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder> getTaskQueueReachabilityFieldBuilder() { if (taskQueueReachabilityBuilder_ == null) { taskQueueReachabilityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueueReachability, io.temporal.api.taskqueue.v1.TaskQueueReachability.Builder, io.temporal.api.taskqueue.v1.TaskQueueReachabilityOrBuilder>( taskQueueReachability_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); taskQueueReachability_ = null; } return taskQueueReachabilityBuilder_; } @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.BuildIdReachability) } // @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdReachability) private static final io.temporal.api.taskqueue.v1.BuildIdReachability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.taskqueue.v1.BuildIdReachability(); } public static io.temporal.api.taskqueue.v1.BuildIdReachability getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuildIdReachability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BuildIdReachability(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.BuildIdReachability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy