io.temporal.api.nexus.v1.StartOperationRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/nexus/v1/message.proto
package io.temporal.api.nexus.v1;
/**
*
* A request to start an operation.
*
*
* Protobuf type {@code temporal.api.nexus.v1.StartOperationRequest}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:StartOperationRequest.java.pb.meta")
public final class StartOperationRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.nexus.v1.StartOperationRequest)
StartOperationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartOperationRequest.newBuilder() to construct.
private StartOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartOperationRequest() {
service_ = "";
operation_ = "";
requestId_ = "";
callback_ = "";
links_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartOperationRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartOperationRequest(
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();
service_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
operation_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
requestId_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
callback_ = s;
break;
}
case 42: {
io.temporal.api.common.v1.Payload.Builder subBuilder = null;
if (payload_ != null) {
subBuilder = payload_.toBuilder();
}
payload_ = input.readMessage(io.temporal.api.common.v1.Payload.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(payload_);
payload_ = subBuilder.buildPartial();
}
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
callbackHeader_ = com.google.protobuf.MapField.newMapField(
CallbackHeaderDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
callbackHeader__ = input.readMessage(
CallbackHeaderDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
callbackHeader_.getMutableMap().put(
callbackHeader__.getKey(), callbackHeader__.getValue());
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
links_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
links_.add(
input.readMessage(io.temporal.api.nexus.v1.Link.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_ & 0x00000002) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetCallbackHeader();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.nexus.v1.StartOperationRequest.class, io.temporal.api.nexus.v1.StartOperationRequest.Builder.class);
}
public static final int SERVICE_FIELD_NUMBER = 1;
private volatile java.lang.Object service_;
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @return The service.
*/
public java.lang.String getService() {
java.lang.Object ref = service_;
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();
service_ = s;
return s;
}
}
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @return The bytes for service.
*/
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATION_FIELD_NUMBER = 2;
private volatile java.lang.Object operation_;
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @return The operation.
*/
public java.lang.String getOperation() {
java.lang.Object ref = operation_;
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();
operation_ = s;
return s;
}
}
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @return The bytes for operation.
*/
public com.google.protobuf.ByteString
getOperationBytes() {
java.lang.Object ref = operation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object requestId_;
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
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();
requestId_ = s;
return s;
}
}
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALLBACK_FIELD_NUMBER = 4;
private volatile java.lang.Object callback_;
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @return The callback.
*/
public java.lang.String getCallback() {
java.lang.Object ref = callback_;
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();
callback_ = s;
return s;
}
}
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @return The bytes for callback.
*/
public com.google.protobuf.ByteString
getCallbackBytes() {
java.lang.Object ref = callback_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callback_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYLOAD_FIELD_NUMBER = 5;
private io.temporal.api.common.v1.Payload payload_;
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
return payload_ != null;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
* @return The payload.
*/
public io.temporal.api.common.v1.Payload getPayload() {
return payload_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : payload_;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public io.temporal.api.common.v1.PayloadOrBuilder getPayloadOrBuilder() {
return getPayload();
}
public static final int CALLBACK_HEADER_FIELD_NUMBER = 6;
private static final class CallbackHeaderDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_CallbackHeaderEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> callbackHeader_;
private com.google.protobuf.MapField
internalGetCallbackHeader() {
if (callbackHeader_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CallbackHeaderDefaultEntryHolder.defaultEntry);
}
return callbackHeader_;
}
public int getCallbackHeaderCount() {
return internalGetCallbackHeader().getMap().size();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public boolean containsCallbackHeader(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCallbackHeader().getMap().containsKey(key);
}
/**
* Use {@link #getCallbackHeaderMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCallbackHeader() {
return getCallbackHeaderMap();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.util.Map getCallbackHeaderMap() {
return internalGetCallbackHeader().getMap();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.lang.String getCallbackHeaderOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCallbackHeader().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.lang.String getCallbackHeaderOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCallbackHeader().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int LINKS_FIELD_NUMBER = 7;
private java.util.List links_;
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public java.util.List getLinksList() {
return links_;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public java.util.List extends io.temporal.api.nexus.v1.LinkOrBuilder>
getLinksOrBuilderList() {
return links_;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public int getLinksCount() {
return links_.size();
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.Link getLinks(int index) {
return links_.get(index);
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.LinkOrBuilder getLinksOrBuilder(
int index) {
return links_.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 (!getServiceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
}
if (!getOperationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_);
}
if (!getRequestIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_);
}
if (!getCallbackBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, callback_);
}
if (payload_ != null) {
output.writeMessage(5, getPayload());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetCallbackHeader(),
CallbackHeaderDefaultEntryHolder.defaultEntry,
6);
for (int i = 0; i < links_.size(); i++) {
output.writeMessage(7, links_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getServiceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
}
if (!getOperationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_);
}
if (!getRequestIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_);
}
if (!getCallbackBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, callback_);
}
if (payload_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPayload());
}
for (java.util.Map.Entry entry
: internalGetCallbackHeader().getMap().entrySet()) {
com.google.protobuf.MapEntry
callbackHeader__ = CallbackHeaderDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, callbackHeader__);
}
for (int i = 0; i < links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, links_.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.nexus.v1.StartOperationRequest)) {
return super.equals(obj);
}
io.temporal.api.nexus.v1.StartOperationRequest other = (io.temporal.api.nexus.v1.StartOperationRequest) obj;
if (!getService()
.equals(other.getService())) return false;
if (!getOperation()
.equals(other.getOperation())) return false;
if (!getRequestId()
.equals(other.getRequestId())) return false;
if (!getCallback()
.equals(other.getCallback())) return false;
if (hasPayload() != other.hasPayload()) return false;
if (hasPayload()) {
if (!getPayload()
.equals(other.getPayload())) return false;
}
if (!internalGetCallbackHeader().equals(
other.internalGetCallbackHeader())) return false;
if (!getLinksList()
.equals(other.getLinksList())) 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) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
hash = (37 * hash) + CALLBACK_FIELD_NUMBER;
hash = (53 * hash) + getCallback().hashCode();
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
if (!internalGetCallbackHeader().getMap().isEmpty()) {
hash = (37 * hash) + CALLBACK_HEADER_FIELD_NUMBER;
hash = (53 * hash) + internalGetCallbackHeader().hashCode();
}
if (getLinksCount() > 0) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.nexus.v1.StartOperationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.nexus.v1.StartOperationRequest 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.nexus.v1.StartOperationRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.nexus.v1.StartOperationRequest 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.nexus.v1.StartOperationRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.nexus.v1.StartOperationRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.nexus.v1.StartOperationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.nexus.v1.StartOperationRequest 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.nexus.v1.StartOperationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.nexus.v1.StartOperationRequest 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.nexus.v1.StartOperationRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.nexus.v1.StartOperationRequest 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.nexus.v1.StartOperationRequest 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;
}
/**
*
* A request to start an operation.
*
*
* Protobuf type {@code temporal.api.nexus.v1.StartOperationRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.nexus.v1.StartOperationRequest)
io.temporal.api.nexus.v1.StartOperationRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetCallbackHeader();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableCallbackHeader();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.nexus.v1.StartOperationRequest.class, io.temporal.api.nexus.v1.StartOperationRequest.Builder.class);
}
// Construct using io.temporal.api.nexus.v1.StartOperationRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLinksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
service_ = "";
operation_ = "";
requestId_ = "";
callback_ = "";
if (payloadBuilder_ == null) {
payload_ = null;
} else {
payload_ = null;
payloadBuilder_ = null;
}
internalGetMutableCallbackHeader().clear();
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
linksBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.nexus.v1.MessageProto.internal_static_temporal_api_nexus_v1_StartOperationRequest_descriptor;
}
@java.lang.Override
public io.temporal.api.nexus.v1.StartOperationRequest getDefaultInstanceForType() {
return io.temporal.api.nexus.v1.StartOperationRequest.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.nexus.v1.StartOperationRequest build() {
io.temporal.api.nexus.v1.StartOperationRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.nexus.v1.StartOperationRequest buildPartial() {
io.temporal.api.nexus.v1.StartOperationRequest result = new io.temporal.api.nexus.v1.StartOperationRequest(this);
int from_bitField0_ = bitField0_;
result.service_ = service_;
result.operation_ = operation_;
result.requestId_ = requestId_;
result.callback_ = callback_;
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = payloadBuilder_.build();
}
result.callbackHeader_ = internalGetCallbackHeader();
result.callbackHeader_.makeImmutable();
if (linksBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.links_ = links_;
} else {
result.links_ = linksBuilder_.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.nexus.v1.StartOperationRequest) {
return mergeFrom((io.temporal.api.nexus.v1.StartOperationRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.nexus.v1.StartOperationRequest other) {
if (other == io.temporal.api.nexus.v1.StartOperationRequest.getDefaultInstance()) return this;
if (!other.getService().isEmpty()) {
service_ = other.service_;
onChanged();
}
if (!other.getOperation().isEmpty()) {
operation_ = other.operation_;
onChanged();
}
if (!other.getRequestId().isEmpty()) {
requestId_ = other.requestId_;
onChanged();
}
if (!other.getCallback().isEmpty()) {
callback_ = other.callback_;
onChanged();
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
internalGetMutableCallbackHeader().mergeFrom(
other.internalGetCallbackHeader());
if (linksBuilder_ == null) {
if (!other.links_.isEmpty()) {
if (links_.isEmpty()) {
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLinksIsMutable();
links_.addAll(other.links_);
}
onChanged();
}
} else {
if (!other.links_.isEmpty()) {
if (linksBuilder_.isEmpty()) {
linksBuilder_.dispose();
linksBuilder_ = null;
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000002);
linksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinksFieldBuilder() : null;
} else {
linksBuilder_.addAllMessages(other.links_);
}
}
}
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.nexus.v1.StartOperationRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.nexus.v1.StartOperationRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object service_ = "";
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @return The service.
*/
public java.lang.String getService() {
java.lang.Object ref = service_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
service_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @return The bytes for service.
*/
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
return this;
}
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @return This builder for chaining.
*/
public Builder clearService() {
service_ = getDefaultInstance().getService();
onChanged();
return this;
}
/**
*
* Name of service to start the operation in.
*
*
* string service = 1;
* @param value The bytes for service to set.
* @return This builder for chaining.
*/
public Builder setServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
service_ = value;
onChanged();
return this;
}
private java.lang.Object operation_ = "";
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @return The operation.
*/
public java.lang.String getOperation() {
java.lang.Object ref = operation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @return The bytes for operation.
*/
public com.google.protobuf.ByteString
getOperationBytes() {
java.lang.Object ref = operation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @param value The operation to set.
* @return This builder for chaining.
*/
public Builder setOperation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
return this;
}
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @return This builder for chaining.
*/
public Builder clearOperation() {
operation_ = getDefaultInstance().getOperation();
onChanged();
return this;
}
/**
*
* Type of operation to start.
*
*
* string operation = 2;
* @param value The bytes for operation to set.
* @return This builder for chaining.
*/
public Builder setOperationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operation_ = value;
onChanged();
return this;
}
private java.lang.Object requestId_ = "";
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
requestId_ = value;
onChanged();
return this;
}
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @return This builder for chaining.
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
onChanged();
return this;
}
/**
*
* A request ID that can be used as an idempotentency key.
*
*
* string request_id = 3;
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
requestId_ = value;
onChanged();
return this;
}
private java.lang.Object callback_ = "";
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @return The callback.
*/
public java.lang.String getCallback() {
java.lang.Object ref = callback_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callback_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @return The bytes for callback.
*/
public com.google.protobuf.ByteString
getCallbackBytes() {
java.lang.Object ref = callback_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callback_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @param value The callback to set.
* @return This builder for chaining.
*/
public Builder setCallback(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
callback_ = value;
onChanged();
return this;
}
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @return This builder for chaining.
*/
public Builder clearCallback() {
callback_ = getDefaultInstance().getCallback();
onChanged();
return this;
}
/**
*
* Callback URL to call upon completion if the started operation is async.
*
*
* string callback = 4;
* @param value The bytes for callback to set.
* @return This builder for chaining.
*/
public Builder setCallbackBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
callback_ = value;
onChanged();
return this;
}
private io.temporal.api.common.v1.Payload payload_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder> payloadBuilder_;
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
return payloadBuilder_ != null || payload_ != null;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
* @return The payload.
*/
public io.temporal.api.common.v1.Payload getPayload() {
if (payloadBuilder_ == null) {
return payload_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public Builder setPayload(io.temporal.api.common.v1.Payload value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
payloadBuilder_.setMessage(value);
}
return this;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public Builder setPayload(
io.temporal.api.common.v1.Payload.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public Builder mergePayload(io.temporal.api.common.v1.Payload value) {
if (payloadBuilder_ == null) {
if (payload_ != null) {
payload_ =
io.temporal.api.common.v1.Payload.newBuilder(payload_).mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = null;
onChanged();
} else {
payload_ = null;
payloadBuilder_ = null;
}
return this;
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public io.temporal.api.common.v1.Payload.Builder getPayloadBuilder() {
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
public io.temporal.api.common.v1.PayloadOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_ == null ?
io.temporal.api.common.v1.Payload.getDefaultInstance() : payload_;
}
}
/**
*
* Full request body from the incoming HTTP request.
*
*
* .temporal.api.common.v1.Payload payload = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> callbackHeader_;
private com.google.protobuf.MapField
internalGetCallbackHeader() {
if (callbackHeader_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CallbackHeaderDefaultEntryHolder.defaultEntry);
}
return callbackHeader_;
}
private com.google.protobuf.MapField
internalGetMutableCallbackHeader() {
onChanged();;
if (callbackHeader_ == null) {
callbackHeader_ = com.google.protobuf.MapField.newMapField(
CallbackHeaderDefaultEntryHolder.defaultEntry);
}
if (!callbackHeader_.isMutable()) {
callbackHeader_ = callbackHeader_.copy();
}
return callbackHeader_;
}
public int getCallbackHeaderCount() {
return internalGetCallbackHeader().getMap().size();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public boolean containsCallbackHeader(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCallbackHeader().getMap().containsKey(key);
}
/**
* Use {@link #getCallbackHeaderMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCallbackHeader() {
return getCallbackHeaderMap();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.util.Map getCallbackHeaderMap() {
return internalGetCallbackHeader().getMap();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.lang.String getCallbackHeaderOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCallbackHeader().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public java.lang.String getCallbackHeaderOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCallbackHeader().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCallbackHeader() {
internalGetMutableCallbackHeader().getMutableMap()
.clear();
return this;
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public Builder removeCallbackHeader(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCallbackHeader().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCallbackHeader() {
return internalGetMutableCallbackHeader().getMutableMap();
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public Builder putCallbackHeader(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCallbackHeader().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Header that is expected to be attached to the callback request when the operation completes.
*
*
* map<string, string> callback_header = 6;
*/
public Builder putAllCallbackHeader(
java.util.Map values) {
internalGetMutableCallbackHeader().getMutableMap()
.putAll(values);
return this;
}
private java.util.List links_ =
java.util.Collections.emptyList();
private void ensureLinksIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
links_ = new java.util.ArrayList(links_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.nexus.v1.Link, io.temporal.api.nexus.v1.Link.Builder, io.temporal.api.nexus.v1.LinkOrBuilder> linksBuilder_;
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public java.util.List getLinksList() {
if (linksBuilder_ == null) {
return java.util.Collections.unmodifiableList(links_);
} else {
return linksBuilder_.getMessageList();
}
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public int getLinksCount() {
if (linksBuilder_ == null) {
return links_.size();
} else {
return linksBuilder_.getCount();
}
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.Link getLinks(int index) {
if (linksBuilder_ == null) {
return links_.get(index);
} else {
return linksBuilder_.getMessage(index);
}
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder setLinks(
int index, io.temporal.api.nexus.v1.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.set(index, value);
onChanged();
} else {
linksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder setLinks(
int index, io.temporal.api.nexus.v1.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.set(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder addLinks(io.temporal.api.nexus.v1.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(value);
onChanged();
} else {
linksBuilder_.addMessage(value);
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder addLinks(
int index, io.temporal.api.nexus.v1.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(index, value);
onChanged();
} else {
linksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder addLinks(
io.temporal.api.nexus.v1.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder addLinks(
int index, io.temporal.api.nexus.v1.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder addAllLinks(
java.lang.Iterable extends io.temporal.api.nexus.v1.Link> values) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, links_);
onChanged();
} else {
linksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder clearLinks() {
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
linksBuilder_.clear();
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public Builder removeLinks(int index) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.remove(index);
onChanged();
} else {
linksBuilder_.remove(index);
}
return this;
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.Link.Builder getLinksBuilder(
int index) {
return getLinksFieldBuilder().getBuilder(index);
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.LinkOrBuilder getLinksOrBuilder(
int index) {
if (linksBuilder_ == null) {
return links_.get(index); } else {
return linksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public java.util.List extends io.temporal.api.nexus.v1.LinkOrBuilder>
getLinksOrBuilderList() {
if (linksBuilder_ != null) {
return linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(links_);
}
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.Link.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
io.temporal.api.nexus.v1.Link.getDefaultInstance());
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public io.temporal.api.nexus.v1.Link.Builder addLinksBuilder(
int index) {
return getLinksFieldBuilder().addBuilder(
index, io.temporal.api.nexus.v1.Link.getDefaultInstance());
}
/**
*
* Links contain caller information and can be attached to the operations started by the handler.
*
*
* repeated .temporal.api.nexus.v1.Link links = 7;
*/
public java.util.List
getLinksBuilderList() {
return getLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.nexus.v1.Link, io.temporal.api.nexus.v1.Link.Builder, io.temporal.api.nexus.v1.LinkOrBuilder>
getLinksFieldBuilder() {
if (linksBuilder_ == null) {
linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.nexus.v1.Link, io.temporal.api.nexus.v1.Link.Builder, io.temporal.api.nexus.v1.LinkOrBuilder>(
links_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
links_ = null;
}
return linksBuilder_;
}
@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.nexus.v1.StartOperationRequest)
}
// @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest)
private static final io.temporal.api.nexus.v1.StartOperationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.nexus.v1.StartOperationRequest();
}
public static io.temporal.api.nexus.v1.StartOperationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartOperationRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartOperationRequest(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.nexus.v1.StartOperationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy