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

io.temporal.api.command.v1.RecordMarkerCommandAttributes Maven / Gradle / Ivy

There is a newer version: 1.24.1
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.RecordMarkerCommandAttributes}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:RecordMarkerCommandAttributes.java.pb.meta")
public  final class RecordMarkerCommandAttributes extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.command.v1.RecordMarkerCommandAttributes)
    RecordMarkerCommandAttributesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RecordMarkerCommandAttributes.newBuilder() to construct.
  private RecordMarkerCommandAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RecordMarkerCommandAttributes() {
    markerName_ = "";
  }

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

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

            markerName_ = s;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              details_ = com.google.protobuf.MapField.newMapField(
                  DetailsDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            details__ = input.readMessage(
                DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            details_.getMutableMap().put(
                details__.getKey(), details__.getValue());
            break;
          }
          case 26: {
            io.temporal.api.common.v1.Header.Builder subBuilder = null;
            if (header_ != null) {
              subBuilder = header_.toBuilder();
            }
            header_ = input.readMessage(io.temporal.api.common.v1.Header.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(header_);
              header_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            io.temporal.api.failure.v1.Failure.Builder subBuilder = null;
            if (failure_ != null) {
              subBuilder = failure_.toBuilder();
            }
            failure_ = input.readMessage(io.temporal.api.failure.v1.Failure.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(failure_);
              failure_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_RecordMarkerCommandAttributes_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 2:
        return internalGetDetails();
      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_RecordMarkerCommandAttributes_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.command.v1.RecordMarkerCommandAttributes.class, io.temporal.api.command.v1.RecordMarkerCommandAttributes.Builder.class);
  }

  public static final int MARKER_NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object markerName_;
  /**
   * string marker_name = 1;
   * @return The markerName.
   */
  public java.lang.String getMarkerName() {
    java.lang.Object ref = markerName_;
    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();
      markerName_ = s;
      return s;
    }
  }
  /**
   * string marker_name = 1;
   * @return The bytes for markerName.
   */
  public com.google.protobuf.ByteString
      getMarkerNameBytes() {
    java.lang.Object ref = markerName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      markerName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DETAILS_FIELD_NUMBER = 2;
  private static final class DetailsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, io.temporal.api.common.v1.Payloads> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_RecordMarkerCommandAttributes_DetailsEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                io.temporal.api.common.v1.Payloads.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, io.temporal.api.common.v1.Payloads> details_;
  private com.google.protobuf.MapField
  internalGetDetails() {
    if (details_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          DetailsDefaultEntryHolder.defaultEntry);
    }
    return details_;
  }

  public int getDetailsCount() {
    return internalGetDetails().getMap().size();
  }
  /**
   * map<string, .temporal.api.common.v1.Payloads> details = 2;
   */

  public boolean containsDetails(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetDetails().getMap().containsKey(key);
  }
  /**
   * Use {@link #getDetailsMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map getDetails() {
    return getDetailsMap();
  }
  /**
   * map<string, .temporal.api.common.v1.Payloads> details = 2;
   */

  public java.util.Map getDetailsMap() {
    return internalGetDetails().getMap();
  }
  /**
   * map<string, .temporal.api.common.v1.Payloads> details = 2;
   */

  public io.temporal.api.common.v1.Payloads getDetailsOrDefault(
      java.lang.String key,
      io.temporal.api.common.v1.Payloads defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetDetails().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .temporal.api.common.v1.Payloads> details = 2;
   */

  public io.temporal.api.common.v1.Payloads getDetailsOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetDetails().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int HEADER_FIELD_NUMBER = 3;
  private io.temporal.api.common.v1.Header header_;
  /**
   * .temporal.api.common.v1.Header header = 3;
   * @return Whether the header field is set.
   */
  public boolean hasHeader() {
    return header_ != null;
  }
  /**
   * .temporal.api.common.v1.Header header = 3;
   * @return The header.
   */
  public io.temporal.api.common.v1.Header getHeader() {
    return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
  }
  /**
   * .temporal.api.common.v1.Header header = 3;
   */
  public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
    return getHeader();
  }

  public static final int FAILURE_FIELD_NUMBER = 4;
  private io.temporal.api.failure.v1.Failure failure_;
  /**
   * .temporal.api.failure.v1.Failure failure = 4;
   * @return Whether the failure field is set.
   */
  public boolean hasFailure() {
    return failure_ != null;
  }
  /**
   * .temporal.api.failure.v1.Failure failure = 4;
   * @return The failure.
   */
  public io.temporal.api.failure.v1.Failure getFailure() {
    return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
  }
  /**
   * .temporal.api.failure.v1.Failure failure = 4;
   */
  public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
    return getFailure();
  }

  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 (!getMarkerNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, markerName_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetDetails(),
        DetailsDefaultEntryHolder.defaultEntry,
        2);
    if (header_ != null) {
      output.writeMessage(3, getHeader());
    }
    if (failure_ != null) {
      output.writeMessage(4, getFailure());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getMarkerNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, markerName_);
    }
    for (java.util.Map.Entry entry
         : internalGetDetails().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, details__);
    }
    if (header_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getHeader());
    }
    if (failure_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getFailure());
    }
    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.RecordMarkerCommandAttributes)) {
      return super.equals(obj);
    }
    io.temporal.api.command.v1.RecordMarkerCommandAttributes other = (io.temporal.api.command.v1.RecordMarkerCommandAttributes) obj;

    if (!getMarkerName()
        .equals(other.getMarkerName())) return false;
    if (!internalGetDetails().equals(
        other.internalGetDetails())) return false;
    if (hasHeader() != other.hasHeader()) return false;
    if (hasHeader()) {
      if (!getHeader()
          .equals(other.getHeader())) return false;
    }
    if (hasFailure() != other.hasFailure()) return false;
    if (hasFailure()) {
      if (!getFailure()
          .equals(other.getFailure())) 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) + MARKER_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getMarkerName().hashCode();
    if (!internalGetDetails().getMap().isEmpty()) {
      hash = (37 * hash) + DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetDetails().hashCode();
    }
    if (hasHeader()) {
      hash = (37 * hash) + HEADER_FIELD_NUMBER;
      hash = (53 * hash) + getHeader().hashCode();
    }
    if (hasFailure()) {
      hash = (37 * hash) + FAILURE_FIELD_NUMBER;
      hash = (53 * hash) + getFailure().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes 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.RecordMarkerCommandAttributes}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:temporal.api.command.v1.RecordMarkerCommandAttributes)
      io.temporal.api.command.v1.RecordMarkerCommandAttributesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.temporal.api.command.v1.MessageProto.internal_static_temporal_api_command_v1_RecordMarkerCommandAttributes_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetDetails();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableDetails();
        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_RecordMarkerCommandAttributes_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.temporal.api.command.v1.RecordMarkerCommandAttributes.class, io.temporal.api.command.v1.RecordMarkerCommandAttributes.Builder.class);
    }

    // Construct using io.temporal.api.command.v1.RecordMarkerCommandAttributes.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();
      markerName_ = "";

      internalGetMutableDetails().clear();
      if (headerBuilder_ == null) {
        header_ = null;
      } else {
        header_ = null;
        headerBuilder_ = null;
      }
      if (failureBuilder_ == null) {
        failure_ = null;
      } else {
        failure_ = null;
        failureBuilder_ = null;
      }
      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_RecordMarkerCommandAttributes_descriptor;
    }

    @java.lang.Override
    public io.temporal.api.command.v1.RecordMarkerCommandAttributes getDefaultInstanceForType() {
      return io.temporal.api.command.v1.RecordMarkerCommandAttributes.getDefaultInstance();
    }

    @java.lang.Override
    public io.temporal.api.command.v1.RecordMarkerCommandAttributes build() {
      io.temporal.api.command.v1.RecordMarkerCommandAttributes result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.temporal.api.command.v1.RecordMarkerCommandAttributes buildPartial() {
      io.temporal.api.command.v1.RecordMarkerCommandAttributes result = new io.temporal.api.command.v1.RecordMarkerCommandAttributes(this);
      int from_bitField0_ = bitField0_;
      result.markerName_ = markerName_;
      result.details_ = internalGetDetails();
      result.details_.makeImmutable();
      if (headerBuilder_ == null) {
        result.header_ = header_;
      } else {
        result.header_ = headerBuilder_.build();
      }
      if (failureBuilder_ == null) {
        result.failure_ = failure_;
      } else {
        result.failure_ = failureBuilder_.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.command.v1.RecordMarkerCommandAttributes) {
        return mergeFrom((io.temporal.api.command.v1.RecordMarkerCommandAttributes)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.temporal.api.command.v1.RecordMarkerCommandAttributes other) {
      if (other == io.temporal.api.command.v1.RecordMarkerCommandAttributes.getDefaultInstance()) return this;
      if (!other.getMarkerName().isEmpty()) {
        markerName_ = other.markerName_;
        onChanged();
      }
      internalGetMutableDetails().mergeFrom(
          other.internalGetDetails());
      if (other.hasHeader()) {
        mergeHeader(other.getHeader());
      }
      if (other.hasFailure()) {
        mergeFailure(other.getFailure());
      }
      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.RecordMarkerCommandAttributes parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.temporal.api.command.v1.RecordMarkerCommandAttributes) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object markerName_ = "";
    /**
     * string marker_name = 1;
     * @return The markerName.
     */
    public java.lang.String getMarkerName() {
      java.lang.Object ref = markerName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        markerName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string marker_name = 1;
     * @return The bytes for markerName.
     */
    public com.google.protobuf.ByteString
        getMarkerNameBytes() {
      java.lang.Object ref = markerName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        markerName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string marker_name = 1;
     * @param value The markerName to set.
     * @return This builder for chaining.
     */
    public Builder setMarkerName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      markerName_ = value;
      onChanged();
      return this;
    }
    /**
     * string marker_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearMarkerName() {
      
      markerName_ = getDefaultInstance().getMarkerName();
      onChanged();
      return this;
    }
    /**
     * string marker_name = 1;
     * @param value The bytes for markerName to set.
     * @return This builder for chaining.
     */
    public Builder setMarkerNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      markerName_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, io.temporal.api.common.v1.Payloads> details_;
    private com.google.protobuf.MapField
    internalGetDetails() {
      if (details_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            DetailsDefaultEntryHolder.defaultEntry);
      }
      return details_;
    }
    private com.google.protobuf.MapField
    internalGetMutableDetails() {
      onChanged();;
      if (details_ == null) {
        details_ = com.google.protobuf.MapField.newMapField(
            DetailsDefaultEntryHolder.defaultEntry);
      }
      if (!details_.isMutable()) {
        details_ = details_.copy();
      }
      return details_;
    }

    public int getDetailsCount() {
      return internalGetDetails().getMap().size();
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public boolean containsDetails(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetDetails().getMap().containsKey(key);
    }
    /**
     * Use {@link #getDetailsMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map getDetails() {
      return getDetailsMap();
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public java.util.Map getDetailsMap() {
      return internalGetDetails().getMap();
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public io.temporal.api.common.v1.Payloads getDetailsOrDefault(
        java.lang.String key,
        io.temporal.api.common.v1.Payloads defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetDetails().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public io.temporal.api.common.v1.Payloads getDetailsOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetDetails().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearDetails() {
      internalGetMutableDetails().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public Builder removeDetails(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableDetails().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableDetails() {
      return internalGetMutableDetails().getMutableMap();
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */
    public Builder putDetails(
        java.lang.String key,
        io.temporal.api.common.v1.Payloads value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableDetails().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, .temporal.api.common.v1.Payloads> details = 2;
     */

    public Builder putAllDetails(
        java.util.Map values) {
      internalGetMutableDetails().getMutableMap()
          .putAll(values);
      return this;
    }

    private io.temporal.api.common.v1.Header header_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> headerBuilder_;
    /**
     * .temporal.api.common.v1.Header header = 3;
     * @return Whether the header field is set.
     */
    public boolean hasHeader() {
      return headerBuilder_ != null || header_ != null;
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     * @return The header.
     */
    public io.temporal.api.common.v1.Header getHeader() {
      if (headerBuilder_ == null) {
        return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
      } else {
        return headerBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public Builder setHeader(io.temporal.api.common.v1.Header value) {
      if (headerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        header_ = value;
        onChanged();
      } else {
        headerBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public Builder setHeader(
        io.temporal.api.common.v1.Header.Builder builderForValue) {
      if (headerBuilder_ == null) {
        header_ = builderForValue.build();
        onChanged();
      } else {
        headerBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public Builder mergeHeader(io.temporal.api.common.v1.Header value) {
      if (headerBuilder_ == null) {
        if (header_ != null) {
          header_ =
            io.temporal.api.common.v1.Header.newBuilder(header_).mergeFrom(value).buildPartial();
        } else {
          header_ = value;
        }
        onChanged();
      } else {
        headerBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public Builder clearHeader() {
      if (headerBuilder_ == null) {
        header_ = null;
        onChanged();
      } else {
        header_ = null;
        headerBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() {
      
      onChanged();
      return getHeaderFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
      if (headerBuilder_ != null) {
        return headerBuilder_.getMessageOrBuilder();
      } else {
        return header_ == null ?
            io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
      }
    }
    /**
     * .temporal.api.common.v1.Header header = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> 
        getHeaderFieldBuilder() {
      if (headerBuilder_ == null) {
        headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>(
                getHeader(),
                getParentForChildren(),
                isClean());
        header_ = null;
      }
      return headerBuilder_;
    }

    private io.temporal.api.failure.v1.Failure failure_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> failureBuilder_;
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     * @return Whether the failure field is set.
     */
    public boolean hasFailure() {
      return failureBuilder_ != null || failure_ != null;
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     * @return The failure.
     */
    public io.temporal.api.failure.v1.Failure getFailure() {
      if (failureBuilder_ == null) {
        return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
      } else {
        return failureBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public Builder setFailure(io.temporal.api.failure.v1.Failure value) {
      if (failureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        failure_ = value;
        onChanged();
      } else {
        failureBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public Builder setFailure(
        io.temporal.api.failure.v1.Failure.Builder builderForValue) {
      if (failureBuilder_ == null) {
        failure_ = builderForValue.build();
        onChanged();
      } else {
        failureBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public Builder mergeFailure(io.temporal.api.failure.v1.Failure value) {
      if (failureBuilder_ == null) {
        if (failure_ != null) {
          failure_ =
            io.temporal.api.failure.v1.Failure.newBuilder(failure_).mergeFrom(value).buildPartial();
        } else {
          failure_ = value;
        }
        onChanged();
      } else {
        failureBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public Builder clearFailure() {
      if (failureBuilder_ == null) {
        failure_ = null;
        onChanged();
      } else {
        failure_ = null;
        failureBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public io.temporal.api.failure.v1.Failure.Builder getFailureBuilder() {
      
      onChanged();
      return getFailureFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
      if (failureBuilder_ != null) {
        return failureBuilder_.getMessageOrBuilder();
      } else {
        return failure_ == null ?
            io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
      }
    }
    /**
     * .temporal.api.failure.v1.Failure failure = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> 
        getFailureFieldBuilder() {
      if (failureBuilder_ == null) {
        failureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>(
                getFailure(),
                getParentForChildren(),
                isClean());
        failure_ = null;
      }
      return failureBuilder_;
    }
    @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.RecordMarkerCommandAttributes)
  }

  // @@protoc_insertion_point(class_scope:temporal.api.command.v1.RecordMarkerCommandAttributes)
  private static final io.temporal.api.command.v1.RecordMarkerCommandAttributes DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.temporal.api.command.v1.RecordMarkerCommandAttributes();
  }

  public static io.temporal.api.command.v1.RecordMarkerCommandAttributes getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public RecordMarkerCommandAttributes parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new RecordMarkerCommandAttributes(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.RecordMarkerCommandAttributes getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy