io.temporal.api.taskqueue.v1.PollerInfo Maven / Gradle / Ivy
// 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.PollerInfo}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:PollerInfo.java.pb.meta")
public final class PollerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.taskqueue.v1.PollerInfo)
PollerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PollerInfo.newBuilder() to construct.
private PollerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PollerInfo() {
identity_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PollerInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PollerInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (lastAccessTime_ != null) {
subBuilder = lastAccessTime_.toBuilder();
}
lastAccessTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastAccessTime_);
lastAccessTime_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
identity_ = s;
break;
}
case 25: {
ratePerSecond_ = input.readDouble();
break;
}
case 34: {
io.temporal.api.common.v1.WorkerVersionCapabilities.Builder subBuilder = null;
if (workerVersionCapabilities_ != null) {
subBuilder = workerVersionCapabilities_.toBuilder();
}
workerVersionCapabilities_ = input.readMessage(io.temporal.api.common.v1.WorkerVersionCapabilities.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workerVersionCapabilities_);
workerVersionCapabilities_ = subBuilder.buildPartial();
}
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_PollerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_PollerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.taskqueue.v1.PollerInfo.class, io.temporal.api.taskqueue.v1.PollerInfo.Builder.class);
}
public static final int LAST_ACCESS_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp lastAccessTime_;
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
* @return Whether the lastAccessTime field is set.
*/
public boolean hasLastAccessTime() {
return lastAccessTime_ != null;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
* @return The lastAccessTime.
*/
public com.google.protobuf.Timestamp getLastAccessTime() {
return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() {
return getLastAccessTime();
}
public static final int IDENTITY_FIELD_NUMBER = 2;
private volatile java.lang.Object identity_;
/**
* string identity = 2;
* @return The identity.
*/
public java.lang.String getIdentity() {
java.lang.Object ref = identity_;
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();
identity_ = s;
return s;
}
}
/**
* string identity = 2;
* @return The bytes for identity.
*/
public com.google.protobuf.ByteString
getIdentityBytes() {
java.lang.Object ref = identity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RATE_PER_SECOND_FIELD_NUMBER = 3;
private double ratePerSecond_;
/**
* double rate_per_second = 3;
* @return The ratePerSecond.
*/
public double getRatePerSecond() {
return ratePerSecond_;
}
public static final int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER = 4;
private io.temporal.api.common.v1.WorkerVersionCapabilities workerVersionCapabilities_;
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
* @return Whether the workerVersionCapabilities field is set.
*/
public boolean hasWorkerVersionCapabilities() {
return workerVersionCapabilities_ != null;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
* @return The workerVersionCapabilities.
*/
public io.temporal.api.common.v1.WorkerVersionCapabilities getWorkerVersionCapabilities() {
return workerVersionCapabilities_ == null ? io.temporal.api.common.v1.WorkerVersionCapabilities.getDefaultInstance() : workerVersionCapabilities_;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public io.temporal.api.common.v1.WorkerVersionCapabilitiesOrBuilder getWorkerVersionCapabilitiesOrBuilder() {
return getWorkerVersionCapabilities();
}
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 (lastAccessTime_ != null) {
output.writeMessage(1, getLastAccessTime());
}
if (!getIdentityBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_);
}
if (ratePerSecond_ != 0D) {
output.writeDouble(3, ratePerSecond_);
}
if (workerVersionCapabilities_ != null) {
output.writeMessage(4, getWorkerVersionCapabilities());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (lastAccessTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLastAccessTime());
}
if (!getIdentityBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_);
}
if (ratePerSecond_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, ratePerSecond_);
}
if (workerVersionCapabilities_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWorkerVersionCapabilities());
}
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.PollerInfo)) {
return super.equals(obj);
}
io.temporal.api.taskqueue.v1.PollerInfo other = (io.temporal.api.taskqueue.v1.PollerInfo) obj;
if (hasLastAccessTime() != other.hasLastAccessTime()) return false;
if (hasLastAccessTime()) {
if (!getLastAccessTime()
.equals(other.getLastAccessTime())) return false;
}
if (!getIdentity()
.equals(other.getIdentity())) return false;
if (java.lang.Double.doubleToLongBits(getRatePerSecond())
!= java.lang.Double.doubleToLongBits(
other.getRatePerSecond())) return false;
if (hasWorkerVersionCapabilities() != other.hasWorkerVersionCapabilities()) return false;
if (hasWorkerVersionCapabilities()) {
if (!getWorkerVersionCapabilities()
.equals(other.getWorkerVersionCapabilities())) 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 (hasLastAccessTime()) {
hash = (37 * hash) + LAST_ACCESS_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastAccessTime().hashCode();
}
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getIdentity().hashCode();
hash = (37 * hash) + RATE_PER_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRatePerSecond()));
if (hasWorkerVersionCapabilities()) {
hash = (37 * hash) + WORKER_VERSION_CAPABILITIES_FIELD_NUMBER;
hash = (53 * hash) + getWorkerVersionCapabilities().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.taskqueue.v1.PollerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.taskqueue.v1.PollerInfo 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.PollerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.taskqueue.v1.PollerInfo 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.PollerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.taskqueue.v1.PollerInfo 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.PollerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.taskqueue.v1.PollerInfo 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.PollerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.taskqueue.v1.PollerInfo 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.PollerInfo 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.PollerInfo 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.PollerInfo 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.PollerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.taskqueue.v1.PollerInfo)
io.temporal.api.taskqueue.v1.PollerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_PollerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.taskqueue.v1.MessageProto.internal_static_temporal_api_taskqueue_v1_PollerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.taskqueue.v1.PollerInfo.class, io.temporal.api.taskqueue.v1.PollerInfo.Builder.class);
}
// Construct using io.temporal.api.taskqueue.v1.PollerInfo.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();
if (lastAccessTimeBuilder_ == null) {
lastAccessTime_ = null;
} else {
lastAccessTime_ = null;
lastAccessTimeBuilder_ = null;
}
identity_ = "";
ratePerSecond_ = 0D;
if (workerVersionCapabilitiesBuilder_ == null) {
workerVersionCapabilities_ = null;
} else {
workerVersionCapabilities_ = null;
workerVersionCapabilitiesBuilder_ = null;
}
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_PollerInfo_descriptor;
}
@java.lang.Override
public io.temporal.api.taskqueue.v1.PollerInfo getDefaultInstanceForType() {
return io.temporal.api.taskqueue.v1.PollerInfo.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.taskqueue.v1.PollerInfo build() {
io.temporal.api.taskqueue.v1.PollerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.taskqueue.v1.PollerInfo buildPartial() {
io.temporal.api.taskqueue.v1.PollerInfo result = new io.temporal.api.taskqueue.v1.PollerInfo(this);
if (lastAccessTimeBuilder_ == null) {
result.lastAccessTime_ = lastAccessTime_;
} else {
result.lastAccessTime_ = lastAccessTimeBuilder_.build();
}
result.identity_ = identity_;
result.ratePerSecond_ = ratePerSecond_;
if (workerVersionCapabilitiesBuilder_ == null) {
result.workerVersionCapabilities_ = workerVersionCapabilities_;
} else {
result.workerVersionCapabilities_ = workerVersionCapabilitiesBuilder_.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.PollerInfo) {
return mergeFrom((io.temporal.api.taskqueue.v1.PollerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.taskqueue.v1.PollerInfo other) {
if (other == io.temporal.api.taskqueue.v1.PollerInfo.getDefaultInstance()) return this;
if (other.hasLastAccessTime()) {
mergeLastAccessTime(other.getLastAccessTime());
}
if (!other.getIdentity().isEmpty()) {
identity_ = other.identity_;
onChanged();
}
if (other.getRatePerSecond() != 0D) {
setRatePerSecond(other.getRatePerSecond());
}
if (other.hasWorkerVersionCapabilities()) {
mergeWorkerVersionCapabilities(other.getWorkerVersionCapabilities());
}
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.PollerInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.taskqueue.v1.PollerInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp lastAccessTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastAccessTimeBuilder_;
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
* @return Whether the lastAccessTime field is set.
*/
public boolean hasLastAccessTime() {
return lastAccessTimeBuilder_ != null || lastAccessTime_ != null;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
* @return The lastAccessTime.
*/
public com.google.protobuf.Timestamp getLastAccessTime() {
if (lastAccessTimeBuilder_ == null) {
return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_;
} else {
return lastAccessTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public Builder setLastAccessTime(com.google.protobuf.Timestamp value) {
if (lastAccessTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastAccessTime_ = value;
onChanged();
} else {
lastAccessTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public Builder setLastAccessTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastAccessTimeBuilder_ == null) {
lastAccessTime_ = builderForValue.build();
onChanged();
} else {
lastAccessTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public Builder mergeLastAccessTime(com.google.protobuf.Timestamp value) {
if (lastAccessTimeBuilder_ == null) {
if (lastAccessTime_ != null) {
lastAccessTime_ =
com.google.protobuf.Timestamp.newBuilder(lastAccessTime_).mergeFrom(value).buildPartial();
} else {
lastAccessTime_ = value;
}
onChanged();
} else {
lastAccessTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public Builder clearLastAccessTime() {
if (lastAccessTimeBuilder_ == null) {
lastAccessTime_ = null;
onChanged();
} else {
lastAccessTime_ = null;
lastAccessTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp.Builder getLastAccessTimeBuilder() {
onChanged();
return getLastAccessTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() {
if (lastAccessTimeBuilder_ != null) {
return lastAccessTimeBuilder_.getMessageOrBuilder();
} else {
return lastAccessTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_;
}
}
/**
* .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastAccessTimeFieldBuilder() {
if (lastAccessTimeBuilder_ == null) {
lastAccessTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastAccessTime(),
getParentForChildren(),
isClean());
lastAccessTime_ = null;
}
return lastAccessTimeBuilder_;
}
private java.lang.Object identity_ = "";
/**
* string identity = 2;
* @return The identity.
*/
public java.lang.String getIdentity() {
java.lang.Object ref = identity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string identity = 2;
* @return The bytes for identity.
*/
public com.google.protobuf.ByteString
getIdentityBytes() {
java.lang.Object ref = identity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string identity = 2;
* @param value The identity to set.
* @return This builder for chaining.
*/
public Builder setIdentity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
identity_ = value;
onChanged();
return this;
}
/**
* string identity = 2;
* @return This builder for chaining.
*/
public Builder clearIdentity() {
identity_ = getDefaultInstance().getIdentity();
onChanged();
return this;
}
/**
* string identity = 2;
* @param value The bytes for identity to set.
* @return This builder for chaining.
*/
public Builder setIdentityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
identity_ = value;
onChanged();
return this;
}
private double ratePerSecond_ ;
/**
* double rate_per_second = 3;
* @return The ratePerSecond.
*/
public double getRatePerSecond() {
return ratePerSecond_;
}
/**
* double rate_per_second = 3;
* @param value The ratePerSecond to set.
* @return This builder for chaining.
*/
public Builder setRatePerSecond(double value) {
ratePerSecond_ = value;
onChanged();
return this;
}
/**
* double rate_per_second = 3;
* @return This builder for chaining.
*/
public Builder clearRatePerSecond() {
ratePerSecond_ = 0D;
onChanged();
return this;
}
private io.temporal.api.common.v1.WorkerVersionCapabilities workerVersionCapabilities_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkerVersionCapabilities, io.temporal.api.common.v1.WorkerVersionCapabilities.Builder, io.temporal.api.common.v1.WorkerVersionCapabilitiesOrBuilder> workerVersionCapabilitiesBuilder_;
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
* @return Whether the workerVersionCapabilities field is set.
*/
public boolean hasWorkerVersionCapabilities() {
return workerVersionCapabilitiesBuilder_ != null || workerVersionCapabilities_ != null;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
* @return The workerVersionCapabilities.
*/
public io.temporal.api.common.v1.WorkerVersionCapabilities getWorkerVersionCapabilities() {
if (workerVersionCapabilitiesBuilder_ == null) {
return workerVersionCapabilities_ == null ? io.temporal.api.common.v1.WorkerVersionCapabilities.getDefaultInstance() : workerVersionCapabilities_;
} else {
return workerVersionCapabilitiesBuilder_.getMessage();
}
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public Builder setWorkerVersionCapabilities(io.temporal.api.common.v1.WorkerVersionCapabilities value) {
if (workerVersionCapabilitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workerVersionCapabilities_ = value;
onChanged();
} else {
workerVersionCapabilitiesBuilder_.setMessage(value);
}
return this;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public Builder setWorkerVersionCapabilities(
io.temporal.api.common.v1.WorkerVersionCapabilities.Builder builderForValue) {
if (workerVersionCapabilitiesBuilder_ == null) {
workerVersionCapabilities_ = builderForValue.build();
onChanged();
} else {
workerVersionCapabilitiesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public Builder mergeWorkerVersionCapabilities(io.temporal.api.common.v1.WorkerVersionCapabilities value) {
if (workerVersionCapabilitiesBuilder_ == null) {
if (workerVersionCapabilities_ != null) {
workerVersionCapabilities_ =
io.temporal.api.common.v1.WorkerVersionCapabilities.newBuilder(workerVersionCapabilities_).mergeFrom(value).buildPartial();
} else {
workerVersionCapabilities_ = value;
}
onChanged();
} else {
workerVersionCapabilitiesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public Builder clearWorkerVersionCapabilities() {
if (workerVersionCapabilitiesBuilder_ == null) {
workerVersionCapabilities_ = null;
onChanged();
} else {
workerVersionCapabilities_ = null;
workerVersionCapabilitiesBuilder_ = null;
}
return this;
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public io.temporal.api.common.v1.WorkerVersionCapabilities.Builder getWorkerVersionCapabilitiesBuilder() {
onChanged();
return getWorkerVersionCapabilitiesFieldBuilder().getBuilder();
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
public io.temporal.api.common.v1.WorkerVersionCapabilitiesOrBuilder getWorkerVersionCapabilitiesOrBuilder() {
if (workerVersionCapabilitiesBuilder_ != null) {
return workerVersionCapabilitiesBuilder_.getMessageOrBuilder();
} else {
return workerVersionCapabilities_ == null ?
io.temporal.api.common.v1.WorkerVersionCapabilities.getDefaultInstance() : workerVersionCapabilities_;
}
}
/**
*
* If a worker has opted into the worker versioning feature while polling, its capabilities will
* appear here.
*
*
* .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkerVersionCapabilities, io.temporal.api.common.v1.WorkerVersionCapabilities.Builder, io.temporal.api.common.v1.WorkerVersionCapabilitiesOrBuilder>
getWorkerVersionCapabilitiesFieldBuilder() {
if (workerVersionCapabilitiesBuilder_ == null) {
workerVersionCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkerVersionCapabilities, io.temporal.api.common.v1.WorkerVersionCapabilities.Builder, io.temporal.api.common.v1.WorkerVersionCapabilitiesOrBuilder>(
getWorkerVersionCapabilities(),
getParentForChildren(),
isClean());
workerVersionCapabilities_ = null;
}
return workerVersionCapabilitiesBuilder_;
}
@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.PollerInfo)
}
// @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerInfo)
private static final io.temporal.api.taskqueue.v1.PollerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.taskqueue.v1.PollerInfo();
}
public static io.temporal.api.taskqueue.v1.PollerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PollerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PollerInfo(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.PollerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy