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

io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse Maven / Gradle / Ivy

There is a newer version: 1.24.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/workflowservice/v1/request_response.proto

package io.temporal.api.workflowservice.v1;

/**
 * Protobuf type {@code temporal.api.workflowservice.v1.DescribeBatchOperationResponse}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:DescribeBatchOperationResponse.java.pb.meta")
public  final class DescribeBatchOperationResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.DescribeBatchOperationResponse)
    DescribeBatchOperationResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DescribeBatchOperationResponse.newBuilder() to construct.
  private DescribeBatchOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private DescribeBatchOperationResponse() {
    operationType_ = 0;
    jobId_ = "";
    state_ = 0;
    identity_ = "";
    reason_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DescribeBatchOperationResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            int rawValue = input.readEnum();

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

            jobId_ = s;
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            state_ = rawValue;
            break;
          }
          case 34: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (startTime_ != null) {
              subBuilder = startTime_.toBuilder();
            }
            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTime_);
              startTime_ = subBuilder.buildPartial();
            }

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

            break;
          }
          case 48: {

            totalOperationCount_ = input.readInt64();
            break;
          }
          case 56: {

            completeOperationCount_ = input.readInt64();
            break;
          }
          case 64: {

            failureOperationCount_ = input.readInt64();
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

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

            reason_ = s;
            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.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeBatchOperationResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeBatchOperationResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.class, io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.Builder.class);
  }

  public static final int OPERATION_TYPE_FIELD_NUMBER = 1;
  private int operationType_;
  /**
   * 
   * Batch operation type
   * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @return The enum numeric value on the wire for operationType. */ public int getOperationTypeValue() { return operationType_; } /** *
   * Batch operation type
   * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @return The operationType. */ public io.temporal.api.enums.v1.BatchOperationType getOperationType() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BatchOperationType result = io.temporal.api.enums.v1.BatchOperationType.valueOf(operationType_); return result == null ? io.temporal.api.enums.v1.BatchOperationType.UNRECOGNIZED : result; } public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** *
   * Batch job ID
   * 
* * string job_id = 2; * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; 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(); jobId_ = s; return s; } } /** *
   * Batch job ID
   * 
* * string job_id = 2; * @return The bytes for jobId. */ public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** *
   * Batch operation state
   * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; } /** *
   * Batch operation state
   * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @return The state. */ public io.temporal.api.enums.v1.BatchOperationState getState() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BatchOperationState result = io.temporal.api.enums.v1.BatchOperationState.valueOf(state_); return result == null ? io.temporal.api.enums.v1.BatchOperationState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** *
   * Batch operation start time
   * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; } /** *
   * Batch operation start time
   * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** *
   * Batch operation start time
   * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } public static final int CLOSE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp closeTime_; /** *
   * Batch operation close time
   * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; * @return Whether the closeTime field is set. */ public boolean hasCloseTime() { return closeTime_ != null; } /** *
   * Batch operation close time
   * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; * @return The closeTime. */ public com.google.protobuf.Timestamp getCloseTime() { return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; } /** *
   * Batch operation close time
   * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder() { return getCloseTime(); } public static final int TOTAL_OPERATION_COUNT_FIELD_NUMBER = 6; private long totalOperationCount_; /** *
   * Total operation count
   * 
* * int64 total_operation_count = 6; * @return The totalOperationCount. */ public long getTotalOperationCount() { return totalOperationCount_; } public static final int COMPLETE_OPERATION_COUNT_FIELD_NUMBER = 7; private long completeOperationCount_; /** *
   * Complete operation count
   * 
* * int64 complete_operation_count = 7; * @return The completeOperationCount. */ public long getCompleteOperationCount() { return completeOperationCount_; } public static final int FAILURE_OPERATION_COUNT_FIELD_NUMBER = 8; private long failureOperationCount_; /** *
   * Failure operation count
   * 
* * int64 failure_operation_count = 8; * @return The failureOperationCount. */ public long getFailureOperationCount() { return failureOperationCount_; } public static final int IDENTITY_FIELD_NUMBER = 9; private volatile java.lang.Object identity_; /** *
   * Identity indicates the operator identity
   * 
* * string identity = 9; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } } /** *
   * Identity indicates the operator identity
   * 
* * string identity = 9; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REASON_FIELD_NUMBER = 10; private volatile java.lang.Object reason_; /** *
   * Reason indicates the reason to stop a operation
   * 
* * string reason = 10; * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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(); reason_ = s; return s; } } /** *
   * Reason indicates the reason to stop a operation
   * 
* * string reason = 10; * @return The bytes for reason. */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (operationType_ != io.temporal.api.enums.v1.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, operationType_); } if (!getJobIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } if (state_ != io.temporal.api.enums.v1.BatchOperationState.BATCH_OPERATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (startTime_ != null) { output.writeMessage(4, getStartTime()); } if (closeTime_ != null) { output.writeMessage(5, getCloseTime()); } if (totalOperationCount_ != 0L) { output.writeInt64(6, totalOperationCount_); } if (completeOperationCount_ != 0L) { output.writeInt64(7, completeOperationCount_); } if (failureOperationCount_ != 0L) { output.writeInt64(8, failureOperationCount_); } if (!getIdentityBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, identity_); } if (!getReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reason_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationType_ != io.temporal.api.enums.v1.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } if (!getJobIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } if (state_ != io.temporal.api.enums.v1.BatchOperationState.BATCH_OPERATION_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, state_); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStartTime()); } if (closeTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCloseTime()); } if (totalOperationCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, totalOperationCount_); } if (completeOperationCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, completeOperationCount_); } if (failureOperationCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, failureOperationCount_); } if (!getIdentityBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, identity_); } if (!getReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, reason_); } 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.workflowservice.v1.DescribeBatchOperationResponse)) { return super.equals(obj); } io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse other = (io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse) obj; if (operationType_ != other.operationType_) return false; if (!getJobId() .equals(other.getJobId())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime() .equals(other.getStartTime())) return false; } if (hasCloseTime() != other.hasCloseTime()) return false; if (hasCloseTime()) { if (!getCloseTime() .equals(other.getCloseTime())) return false; } if (getTotalOperationCount() != other.getTotalOperationCount()) return false; if (getCompleteOperationCount() != other.getCompleteOperationCount()) return false; if (getFailureOperationCount() != other.getFailureOperationCount()) return false; if (!getIdentity() .equals(other.getIdentity())) return false; if (!getReason() .equals(other.getReason())) 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) + OPERATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + operationType_; hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasCloseTime()) { hash = (37 * hash) + CLOSE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCloseTime().hashCode(); } hash = (37 * hash) + TOTAL_OPERATION_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalOperationCount()); hash = (37 * hash) + COMPLETE_OPERATION_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompleteOperationCount()); hash = (37 * hash) + FAILURE_OPERATION_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFailureOperationCount()); hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse 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.workflowservice.v1.DescribeBatchOperationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.DescribeBatchOperationResponse) io.temporal.api.workflowservice.v1.DescribeBatchOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeBatchOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeBatchOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.class, io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.Builder.class); } // Construct using io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.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(); operationType_ = 0; jobId_ = ""; state_ = 0; if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } if (closeTimeBuilder_ == null) { closeTime_ = null; } else { closeTime_ = null; closeTimeBuilder_ = null; } totalOperationCount_ = 0L; completeOperationCount_ = 0L; failureOperationCount_ = 0L; identity_ = ""; reason_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_DescribeBatchOperationResponse_descriptor; } @java.lang.Override public io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse getDefaultInstanceForType() { return io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.getDefaultInstance(); } @java.lang.Override public io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse build() { io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse buildPartial() { io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse result = new io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse(this); result.operationType_ = operationType_; result.jobId_ = jobId_; result.state_ = state_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } if (closeTimeBuilder_ == null) { result.closeTime_ = closeTime_; } else { result.closeTime_ = closeTimeBuilder_.build(); } result.totalOperationCount_ = totalOperationCount_; result.completeOperationCount_ = completeOperationCount_; result.failureOperationCount_ = failureOperationCount_; result.identity_ = identity_; result.reason_ = reason_; 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.workflowservice.v1.DescribeBatchOperationResponse) { return mergeFrom((io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse other) { if (other == io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } if (!other.getJobId().isEmpty()) { jobId_ = other.jobId_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasCloseTime()) { mergeCloseTime(other.getCloseTime()); } if (other.getTotalOperationCount() != 0L) { setTotalOperationCount(other.getTotalOperationCount()); } if (other.getCompleteOperationCount() != 0L) { setCompleteOperationCount(other.getCompleteOperationCount()); } if (other.getFailureOperationCount() != 0L) { setFailureOperationCount(other.getFailureOperationCount()); } if (!other.getIdentity().isEmpty()) { identity_ = other.identity_; onChanged(); } if (!other.getReason().isEmpty()) { reason_ = other.reason_; onChanged(); } 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.workflowservice.v1.DescribeBatchOperationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int operationType_ = 0; /** *
     * Batch operation type
     * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @return The enum numeric value on the wire for operationType. */ public int getOperationTypeValue() { return operationType_; } /** *
     * Batch operation type
     * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { operationType_ = value; onChanged(); return this; } /** *
     * Batch operation type
     * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @return The operationType. */ public io.temporal.api.enums.v1.BatchOperationType getOperationType() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BatchOperationType result = io.temporal.api.enums.v1.BatchOperationType.valueOf(operationType_); return result == null ? io.temporal.api.enums.v1.BatchOperationType.UNRECOGNIZED : result; } /** *
     * Batch operation type
     * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @param value The operationType to set. * @return This builder for chaining. */ public Builder setOperationType(io.temporal.api.enums.v1.BatchOperationType value) { if (value == null) { throw new NullPointerException(); } operationType_ = value.getNumber(); onChanged(); return this; } /** *
     * Batch operation type
     * 
* * .temporal.api.enums.v1.BatchOperationType operation_type = 1; * @return This builder for chaining. */ public Builder clearOperationType() { operationType_ = 0; onChanged(); return this; } private java.lang.Object jobId_ = ""; /** *
     * Batch job ID
     * 
* * string job_id = 2; * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Batch job ID
     * 
* * string job_id = 2; * @return The bytes for jobId. */ public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Batch job ID
     * 
* * string job_id = 2; * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; onChanged(); return this; } /** *
     * Batch job ID
     * 
* * string job_id = 2; * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** *
     * Batch job ID
     * 
* * string job_id = 2; * @param value The bytes for jobId to set. * @return This builder for chaining. */ public Builder setJobIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobId_ = value; onChanged(); return this; } private int state_ = 0; /** *
     * Batch operation state
     * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; } /** *
     * Batch operation state
     * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** *
     * Batch operation state
     * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @return The state. */ public io.temporal.api.enums.v1.BatchOperationState getState() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.BatchOperationState result = io.temporal.api.enums.v1.BatchOperationState.valueOf(state_); return result == null ? io.temporal.api.enums.v1.BatchOperationState.UNRECOGNIZED : result; } /** *
     * Batch operation state
     * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(io.temporal.api.enums.v1.BatchOperationState value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** *
     * Batch operation state
     * 
* * .temporal.api.enums.v1.BatchOperationState state = 3; * @return This builder for chaining. */ public Builder clearState() { state_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } return this; } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public Builder setStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } return this; } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } return this; } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** *
     * Batch operation start time
     * 
* * .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp closeTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> closeTimeBuilder_; /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; * @return Whether the closeTime field is set. */ public boolean hasCloseTime() { return closeTimeBuilder_ != null || closeTime_ != null; } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; * @return The closeTime. */ public com.google.protobuf.Timestamp getCloseTime() { if (closeTimeBuilder_ == null) { return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; } else { return closeTimeBuilder_.getMessage(); } } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder setCloseTime(com.google.protobuf.Timestamp value) { if (closeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } closeTime_ = value; onChanged(); } else { closeTimeBuilder_.setMessage(value); } return this; } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder setCloseTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (closeTimeBuilder_ == null) { closeTime_ = builderForValue.build(); onChanged(); } else { closeTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder mergeCloseTime(com.google.protobuf.Timestamp value) { if (closeTimeBuilder_ == null) { if (closeTime_ != null) { closeTime_ = com.google.protobuf.Timestamp.newBuilder(closeTime_).mergeFrom(value).buildPartial(); } else { closeTime_ = value; } onChanged(); } else { closeTimeBuilder_.mergeFrom(value); } return this; } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public Builder clearCloseTime() { if (closeTimeBuilder_ == null) { closeTime_ = null; onChanged(); } else { closeTime_ = null; closeTimeBuilder_ = null; } return this; } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder() { onChanged(); return getCloseTimeFieldBuilder().getBuilder(); } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder() { if (closeTimeBuilder_ != null) { return closeTimeBuilder_.getMessageOrBuilder(); } else { return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; } } /** *
     * Batch operation close time
     * 
* * .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCloseTimeFieldBuilder() { if (closeTimeBuilder_ == null) { closeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCloseTime(), getParentForChildren(), isClean()); closeTime_ = null; } return closeTimeBuilder_; } private long totalOperationCount_ ; /** *
     * Total operation count
     * 
* * int64 total_operation_count = 6; * @return The totalOperationCount. */ public long getTotalOperationCount() { return totalOperationCount_; } /** *
     * Total operation count
     * 
* * int64 total_operation_count = 6; * @param value The totalOperationCount to set. * @return This builder for chaining. */ public Builder setTotalOperationCount(long value) { totalOperationCount_ = value; onChanged(); return this; } /** *
     * Total operation count
     * 
* * int64 total_operation_count = 6; * @return This builder for chaining. */ public Builder clearTotalOperationCount() { totalOperationCount_ = 0L; onChanged(); return this; } private long completeOperationCount_ ; /** *
     * Complete operation count
     * 
* * int64 complete_operation_count = 7; * @return The completeOperationCount. */ public long getCompleteOperationCount() { return completeOperationCount_; } /** *
     * Complete operation count
     * 
* * int64 complete_operation_count = 7; * @param value The completeOperationCount to set. * @return This builder for chaining. */ public Builder setCompleteOperationCount(long value) { completeOperationCount_ = value; onChanged(); return this; } /** *
     * Complete operation count
     * 
* * int64 complete_operation_count = 7; * @return This builder for chaining. */ public Builder clearCompleteOperationCount() { completeOperationCount_ = 0L; onChanged(); return this; } private long failureOperationCount_ ; /** *
     * Failure operation count
     * 
* * int64 failure_operation_count = 8; * @return The failureOperationCount. */ public long getFailureOperationCount() { return failureOperationCount_; } /** *
     * Failure operation count
     * 
* * int64 failure_operation_count = 8; * @param value The failureOperationCount to set. * @return This builder for chaining. */ public Builder setFailureOperationCount(long value) { failureOperationCount_ = value; onChanged(); return this; } /** *
     * Failure operation count
     * 
* * int64 failure_operation_count = 8; * @return This builder for chaining. */ public Builder clearFailureOperationCount() { failureOperationCount_ = 0L; onChanged(); return this; } private java.lang.Object identity_ = ""; /** *
     * Identity indicates the operator identity
     * 
* * string identity = 9; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Identity indicates the operator identity
     * 
* * string identity = 9; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Identity indicates the operator identity
     * 
* * string identity = 9; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
     * Identity indicates the operator identity
     * 
* * string identity = 9; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** *
     * Identity indicates the operator identity
     * 
* * string identity = 9; * @param value The bytes for identity to set. * @return This builder for chaining. */ public Builder setIdentityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; onChanged(); return this; } private java.lang.Object reason_ = ""; /** *
     * Reason indicates the reason to stop a operation
     * 
* * string reason = 10; * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Reason indicates the reason to stop a operation
     * 
* * string reason = 10; * @return The bytes for reason. */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Reason indicates the reason to stop a operation
     * 
* * string reason = 10; * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); return this; } /** *
     * Reason indicates the reason to stop a operation
     * 
* * string reason = 10; * @return This builder for chaining. */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** *
     * Reason indicates the reason to stop a operation
     * 
* * string reason = 10; * @param value The bytes for reason to set. * @return This builder for chaining. */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; onChanged(); 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.workflowservice.v1.DescribeBatchOperationResponse) } // @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeBatchOperationResponse) private static final io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse(); } public static io.temporal.api.workflowservice.v1.DescribeBatchOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeBatchOperationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescribeBatchOperationResponse(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.workflowservice.v1.DescribeBatchOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy