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

io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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/command/v1/message.proto

package io.temporal.api.command.v1;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ScheduleNexusOperationCommandAttributes(
      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();

            endpoint_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            service_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            operation_ = s;
            break;
          }
          case 34: {
            io.temporal.api.common.v1.Payload.Builder subBuilder = null;
            if (input_ != null) {
              subBuilder = input_.toBuilder();
            }
            input_ = input.readMessage(io.temporal.api.common.v1.Payload.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(input_);
              input_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (scheduleToCloseTimeout_ != null) {
              subBuilder = scheduleToCloseTimeout_.toBuilder();
            }
            scheduleToCloseTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(scheduleToCloseTimeout_);
              scheduleToCloseTimeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              nexusHeader_ = com.google.protobuf.MapField.newMapField(
                  NexusHeaderDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            nexusHeader__ = input.readMessage(
                NexusHeaderDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            nexusHeader_.getMutableMap().put(
                nexusHeader__.getKey(), nexusHeader__.getValue());
            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.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleNexusOperationCommandAttributes_descriptor;
  }

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

  public static final int ENDPOINT_FIELD_NUMBER = 1;
  private volatile java.lang.Object endpoint_;
  /**
   * 
   * Endpoint name, must exist in the endpoint registry or this command will fail.
   * 
* * string endpoint = 1; * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; } } /** *
   * Endpoint name, must exist in the endpoint registry or this command will fail.
   * 
* * string endpoint = 1; * @return The bytes for endpoint. */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** *
   * Service name.
   * 
* * string service = 2; * @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; } } /** *
   * Service name.
   * 
* * string service = 2; * @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 = 3; private volatile java.lang.Object operation_; /** *
   * Operation name.
   * 
* * string operation = 3; * @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; } } /** *
   * Operation name.
   * 
* * string operation = 3; * @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 INPUT_FIELD_NUMBER = 4; private io.temporal.api.common.v1.Payload input_; /** *
   * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
   * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
   * content is transformed back to the original Payload sent in this command.
   * 
* * .temporal.api.common.v1.Payload input = 4; * @return Whether the input field is set. */ public boolean hasInput() { return input_ != null; } /** *
   * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
   * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
   * content is transformed back to the original Payload sent in this command.
   * 
* * .temporal.api.common.v1.Payload input = 4; * @return The input. */ public io.temporal.api.common.v1.Payload getInput() { return input_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : input_; } /** *
   * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
   * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
   * content is transformed back to the original Payload sent in this command.
   * 
* * .temporal.api.common.v1.Payload input = 4; */ public io.temporal.api.common.v1.PayloadOrBuilder getInputOrBuilder() { return getInput(); } public static final int SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER = 5; private com.google.protobuf.Duration scheduleToCloseTimeout_; /** *
   * Schedule-to-close timeout for this operation.
   * Indicates how long the caller is willing to wait for operation completion.
   * Calls are retried internally by the server.
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; * @return Whether the scheduleToCloseTimeout field is set. */ public boolean hasScheduleToCloseTimeout() { return scheduleToCloseTimeout_ != null; } /** *
   * Schedule-to-close timeout for this operation.
   * Indicates how long the caller is willing to wait for operation completion.
   * Calls are retried internally by the server.
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; * @return The scheduleToCloseTimeout. */ public com.google.protobuf.Duration getScheduleToCloseTimeout() { return scheduleToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_; } /** *
   * Schedule-to-close timeout for this operation.
   * Indicates how long the caller is willing to wait for operation completion.
   * Calls are retried internally by the server.
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder() { return getScheduleToCloseTimeout(); } public static final int NEXUS_HEADER_FIELD_NUMBER = 6; private static final class NexusHeaderDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleNexusOperationCommandAttributes_NexusHeaderEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> nexusHeader_; private com.google.protobuf.MapField internalGetNexusHeader() { if (nexusHeader_ == null) { return com.google.protobuf.MapField.emptyMapField( NexusHeaderDefaultEntryHolder.defaultEntry); } return nexusHeader_; } public int getNexusHeaderCount() { return internalGetNexusHeader().getMap().size(); } /** *
   * Header to attach to the Nexus request.
   * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
   * transmitted to external services as-is.
   * This is useful for propagating tracing information.
   * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
   * transmitted to Nexus operations that may be external and are not traditional payloads.
   * 
* * map<string, string> nexus_header = 6; */ public boolean containsNexusHeader( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNexusHeader().getMap().containsKey(key); } /** * Use {@link #getNexusHeaderMap()} instead. */ @java.lang.Deprecated public java.util.Map getNexusHeader() { return getNexusHeaderMap(); } /** *
   * Header to attach to the Nexus request.
   * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
   * transmitted to external services as-is.
   * This is useful for propagating tracing information.
   * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
   * transmitted to Nexus operations that may be external and are not traditional payloads.
   * 
* * map<string, string> nexus_header = 6; */ public java.util.Map getNexusHeaderMap() { return internalGetNexusHeader().getMap(); } /** *
   * Header to attach to the Nexus request.
   * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
   * transmitted to external services as-is.
   * This is useful for propagating tracing information.
   * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
   * transmitted to Nexus operations that may be external and are not traditional payloads.
   * 
* * map<string, string> nexus_header = 6; */ public java.lang.String getNexusHeaderOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNexusHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Header to attach to the Nexus request.
   * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
   * transmitted to external services as-is.
   * This is useful for propagating tracing information.
   * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
   * transmitted to Nexus operations that may be external and are not traditional payloads.
   * 
* * map<string, string> nexus_header = 6; */ public java.lang.String getNexusHeaderOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNexusHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!getEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!getServiceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_); } if (!getOperationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operation_); } if (input_ != null) { output.writeMessage(4, getInput()); } if (scheduleToCloseTimeout_ != null) { output.writeMessage(5, getScheduleToCloseTimeout()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNexusHeader(), NexusHeaderDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (!getServiceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); } if (!getOperationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operation_); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInput()); } if (scheduleToCloseTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getScheduleToCloseTimeout()); } for (java.util.Map.Entry entry : internalGetNexusHeader().getMap().entrySet()) { com.google.protobuf.MapEntry nexusHeader__ = NexusHeaderDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, nexusHeader__); } 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.command.v1.ScheduleNexusOperationCommandAttributes)) { return super.equals(obj); } io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes other = (io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) obj; if (!getEndpoint() .equals(other.getEndpoint())) return false; if (!getService() .equals(other.getService())) return false; if (!getOperation() .equals(other.getOperation())) return false; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (hasScheduleToCloseTimeout() != other.hasScheduleToCloseTimeout()) return false; if (hasScheduleToCloseTimeout()) { if (!getScheduleToCloseTimeout() .equals(other.getScheduleToCloseTimeout())) return false; } if (!internalGetNexusHeader().equals( other.internalGetNexusHeader())) 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) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (hasScheduleToCloseTimeout()) { hash = (37 * hash) + SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getScheduleToCloseTimeout().hashCode(); } if (!internalGetNexusHeader().getMap().isEmpty()) { hash = (37 * hash) + NEXUS_HEADER_FIELD_NUMBER; hash = (53 * hash) + internalGetNexusHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes 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.command.v1.ScheduleNexusOperationCommandAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleNexusOperationCommandAttributes_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetNexusHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableNexusHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleNexusOperationCommandAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.class, io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.Builder.class); } // Construct using io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.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(); endpoint_ = ""; service_ = ""; operation_ = ""; if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } if (scheduleToCloseTimeoutBuilder_ == null) { scheduleToCloseTimeout_ = null; } else { scheduleToCloseTimeout_ = null; scheduleToCloseTimeoutBuilder_ = null; } internalGetMutableNexusHeader().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_ScheduleNexusOperationCommandAttributes_descriptor; } @java.lang.Override public io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes getDefaultInstanceForType() { return io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.getDefaultInstance(); } @java.lang.Override public io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes build() { io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes buildPartial() { io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes result = new io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes(this); int from_bitField0_ = bitField0_; result.endpoint_ = endpoint_; result.service_ = service_; result.operation_ = operation_; if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (scheduleToCloseTimeoutBuilder_ == null) { result.scheduleToCloseTimeout_ = scheduleToCloseTimeout_; } else { result.scheduleToCloseTimeout_ = scheduleToCloseTimeoutBuilder_.build(); } result.nexusHeader_ = internalGetNexusHeader(); result.nexusHeader_.makeImmutable(); 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.command.v1.ScheduleNexusOperationCommandAttributes) { return mergeFrom((io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes other) { if (other == io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getOperation().isEmpty()) { operation_ = other.operation_; onChanged(); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.hasScheduleToCloseTimeout()) { mergeScheduleToCloseTimeout(other.getScheduleToCloseTimeout()); } internalGetMutableNexusHeader().mergeFrom( other.internalGetNexusHeader()); 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.command.v1.ScheduleNexusOperationCommandAttributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object endpoint_ = ""; /** *
     * Endpoint name, must exist in the endpoint registry or this command will fail.
     * 
* * string endpoint = 1; * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Endpoint name, must exist in the endpoint registry or this command will fail.
     * 
* * string endpoint = 1; * @return The bytes for endpoint. */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Endpoint name, must exist in the endpoint registry or this command will fail.
     * 
* * string endpoint = 1; * @param value The endpoint to set. * @return This builder for chaining. */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** *
     * Endpoint name, must exist in the endpoint registry or this command will fail.
     * 
* * string endpoint = 1; * @return This builder for chaining. */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** *
     * Endpoint name, must exist in the endpoint registry or this command will fail.
     * 
* * string endpoint = 1; * @param value The bytes for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpoint_ = value; onChanged(); return this; } private java.lang.Object service_ = ""; /** *
     * Service name.
     * 
* * string service = 2; * @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; } } /** *
     * Service name.
     * 
* * string service = 2; * @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; } } /** *
     * Service name.
     * 
* * string service = 2; * @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; } /** *
     * Service name.
     * 
* * string service = 2; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
     * Service name.
     * 
* * string service = 2; * @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_ = ""; /** *
     * Operation name.
     * 
* * string operation = 3; * @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; } } /** *
     * Operation name.
     * 
* * string operation = 3; * @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; } } /** *
     * Operation name.
     * 
* * string operation = 3; * @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; } /** *
     * Operation name.
     * 
* * string operation = 3; * @return This builder for chaining. */ public Builder clearOperation() { operation_ = getDefaultInstance().getOperation(); onChanged(); return this; } /** *
     * Operation name.
     * 
* * string operation = 3; * @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 io.temporal.api.common.v1.Payload input_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder> inputBuilder_; /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; * @return The input. */ public io.temporal.api.common.v1.Payload getInput() { if (inputBuilder_ == null) { return input_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public Builder setInput(io.temporal.api.common.v1.Payload value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public Builder setInput( io.temporal.api.common.v1.Payload.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public Builder mergeInput(io.temporal.api.common.v1.Payload value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = io.temporal.api.common.v1.Payload.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public io.temporal.api.common.v1.Payload.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ public io.temporal.api.common.v1.PayloadOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : input_; } } /** *
     * Input for the operation. The server converts this into Nexus request content and the appropriate content headers
     * internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
     * content is transformed back to the original Payload sent in this command.
     * 
* * .temporal.api.common.v1.Payload input = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private com.google.protobuf.Duration scheduleToCloseTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> scheduleToCloseTimeoutBuilder_; /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; * @return Whether the scheduleToCloseTimeout field is set. */ public boolean hasScheduleToCloseTimeout() { return scheduleToCloseTimeoutBuilder_ != null || scheduleToCloseTimeout_ != null; } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; * @return The scheduleToCloseTimeout. */ public com.google.protobuf.Duration getScheduleToCloseTimeout() { if (scheduleToCloseTimeoutBuilder_ == null) { return scheduleToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_; } else { return scheduleToCloseTimeoutBuilder_.getMessage(); } } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public Builder setScheduleToCloseTimeout(com.google.protobuf.Duration value) { if (scheduleToCloseTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scheduleToCloseTimeout_ = value; onChanged(); } else { scheduleToCloseTimeoutBuilder_.setMessage(value); } return this; } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public Builder setScheduleToCloseTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (scheduleToCloseTimeoutBuilder_ == null) { scheduleToCloseTimeout_ = builderForValue.build(); onChanged(); } else { scheduleToCloseTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public Builder mergeScheduleToCloseTimeout(com.google.protobuf.Duration value) { if (scheduleToCloseTimeoutBuilder_ == null) { if (scheduleToCloseTimeout_ != null) { scheduleToCloseTimeout_ = com.google.protobuf.Duration.newBuilder(scheduleToCloseTimeout_).mergeFrom(value).buildPartial(); } else { scheduleToCloseTimeout_ = value; } onChanged(); } else { scheduleToCloseTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public Builder clearScheduleToCloseTimeout() { if (scheduleToCloseTimeoutBuilder_ == null) { scheduleToCloseTimeout_ = null; onChanged(); } else { scheduleToCloseTimeout_ = null; scheduleToCloseTimeoutBuilder_ = null; } return this; } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public com.google.protobuf.Duration.Builder getScheduleToCloseTimeoutBuilder() { onChanged(); return getScheduleToCloseTimeoutFieldBuilder().getBuilder(); } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder() { if (scheduleToCloseTimeoutBuilder_ != null) { return scheduleToCloseTimeoutBuilder_.getMessageOrBuilder(); } else { return scheduleToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : scheduleToCloseTimeout_; } } /** *
     * Schedule-to-close timeout for this operation.
     * Indicates how long the caller is willing to wait for operation completion.
     * Calls are retried internally by the server.
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration schedule_to_close_timeout = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getScheduleToCloseTimeoutFieldBuilder() { if (scheduleToCloseTimeoutBuilder_ == null) { scheduleToCloseTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getScheduleToCloseTimeout(), getParentForChildren(), isClean()); scheduleToCloseTimeout_ = null; } return scheduleToCloseTimeoutBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> nexusHeader_; private com.google.protobuf.MapField internalGetNexusHeader() { if (nexusHeader_ == null) { return com.google.protobuf.MapField.emptyMapField( NexusHeaderDefaultEntryHolder.defaultEntry); } return nexusHeader_; } private com.google.protobuf.MapField internalGetMutableNexusHeader() { onChanged();; if (nexusHeader_ == null) { nexusHeader_ = com.google.protobuf.MapField.newMapField( NexusHeaderDefaultEntryHolder.defaultEntry); } if (!nexusHeader_.isMutable()) { nexusHeader_ = nexusHeader_.copy(); } return nexusHeader_; } public int getNexusHeaderCount() { return internalGetNexusHeader().getMap().size(); } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public boolean containsNexusHeader( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNexusHeader().getMap().containsKey(key); } /** * Use {@link #getNexusHeaderMap()} instead. */ @java.lang.Deprecated public java.util.Map getNexusHeader() { return getNexusHeaderMap(); } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public java.util.Map getNexusHeaderMap() { return internalGetNexusHeader().getMap(); } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public java.lang.String getNexusHeaderOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNexusHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public java.lang.String getNexusHeaderOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNexusHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNexusHeader() { internalGetMutableNexusHeader().getMutableMap() .clear(); return this; } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public Builder removeNexusHeader( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableNexusHeader().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNexusHeader() { return internalGetMutableNexusHeader().getMutableMap(); } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public Builder putNexusHeader( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableNexusHeader().getMutableMap() .put(key, value); return this; } /** *
     * Header to attach to the Nexus request.
     * Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
     * transmitted to external services as-is.
     * This is useful for propagating tracing information.
     * Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
     * transmitted to Nexus operations that may be external and are not traditional payloads.
     * 
* * map<string, string> nexus_header = 6; */ public Builder putAllNexusHeader( java.util.Map values) { internalGetMutableNexusHeader().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) } // @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) private static final io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes(); } public static io.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScheduleNexusOperationCommandAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScheduleNexusOperationCommandAttributes(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.command.v1.ScheduleNexusOperationCommandAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy