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

io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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/workflowservice/v1/request_response.proto

package io.temporal.api.workflowservice.v1;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetWorkflowExecutionHistoryReverseResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            io.temporal.api.history.v1.History.Builder subBuilder = null;
            if (history_ != null) {
              subBuilder = history_.toBuilder();
            }
            history_ = input.readMessage(io.temporal.api.history.v1.History.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(history_);
              history_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {

            nextPageToken_ = input.readBytes();
            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_GetWorkflowExecutionHistoryReverseResponse_descriptor;
  }

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

  public static final int HISTORY_FIELD_NUMBER = 1;
  private io.temporal.api.history.v1.History history_;
  /**
   * .temporal.api.history.v1.History history = 1;
   * @return Whether the history field is set.
   */
  public boolean hasHistory() {
    return history_ != null;
  }
  /**
   * .temporal.api.history.v1.History history = 1;
   * @return The history.
   */
  public io.temporal.api.history.v1.History getHistory() {
    return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_;
  }
  /**
   * .temporal.api.history.v1.History history = 1;
   */
  public io.temporal.api.history.v1.HistoryOrBuilder getHistoryOrBuilder() {
    return getHistory();
  }

  public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3;
  private com.google.protobuf.ByteString nextPageToken_;
  /**
   * 
   * Will be set if there are more history events than were included in this response
   * 
* * bytes next_page_token = 3; * @return The nextPageToken. */ public com.google.protobuf.ByteString getNextPageToken() { return nextPageToken_; } 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 (history_ != null) { output.writeMessage(1, getHistory()); } if (!nextPageToken_.isEmpty()) { output.writeBytes(3, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (history_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHistory()); } if (!nextPageToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nextPageToken_); } 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.GetWorkflowExecutionHistoryReverseResponse)) { return super.equals(obj); } io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse other = (io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) obj; if (hasHistory() != other.hasHistory()) return false; if (hasHistory()) { if (!getHistory() .equals(other.getHistory())) return false; } if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHistory()) { hash = (37 * hash) + HISTORY_FIELD_NUMBER; hash = (53 * hash) + getHistory().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse 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.GetWorkflowExecutionHistoryReverseResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_GetWorkflowExecutionHistoryReverseResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_GetWorkflowExecutionHistoryReverseResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.class, io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.Builder.class); } // Construct using io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (historyBuilder_ == null) { history_ = null; } else { history_ = null; historyBuilder_ = null; } nextPageToken_ = com.google.protobuf.ByteString.EMPTY; 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_GetWorkflowExecutionHistoryReverseResponse_descriptor; } @java.lang.Override public io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse getDefaultInstanceForType() { return io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.getDefaultInstance(); } @java.lang.Override public io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse build() { io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse buildPartial() { io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse result = new io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse(this); if (historyBuilder_ == null) { result.history_ = history_; } else { result.history_ = historyBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.GetWorkflowExecutionHistoryReverseResponse) { return mergeFrom((io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse other) { if (other == io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.getDefaultInstance()) return this; if (other.hasHistory()) { mergeHistory(other.getHistory()); } if (other.getNextPageToken() != com.google.protobuf.ByteString.EMPTY) { setNextPageToken(other.getNextPageToken()); } 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.GetWorkflowExecutionHistoryReverseResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.temporal.api.history.v1.History history_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder> historyBuilder_; /** * .temporal.api.history.v1.History history = 1; * @return Whether the history field is set. */ public boolean hasHistory() { return historyBuilder_ != null || history_ != null; } /** * .temporal.api.history.v1.History history = 1; * @return The history. */ public io.temporal.api.history.v1.History getHistory() { if (historyBuilder_ == null) { return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_; } else { return historyBuilder_.getMessage(); } } /** * .temporal.api.history.v1.History history = 1; */ public Builder setHistory(io.temporal.api.history.v1.History value) { if (historyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } history_ = value; onChanged(); } else { historyBuilder_.setMessage(value); } return this; } /** * .temporal.api.history.v1.History history = 1; */ public Builder setHistory( io.temporal.api.history.v1.History.Builder builderForValue) { if (historyBuilder_ == null) { history_ = builderForValue.build(); onChanged(); } else { historyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.history.v1.History history = 1; */ public Builder mergeHistory(io.temporal.api.history.v1.History value) { if (historyBuilder_ == null) { if (history_ != null) { history_ = io.temporal.api.history.v1.History.newBuilder(history_).mergeFrom(value).buildPartial(); } else { history_ = value; } onChanged(); } else { historyBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.history.v1.History history = 1; */ public Builder clearHistory() { if (historyBuilder_ == null) { history_ = null; onChanged(); } else { history_ = null; historyBuilder_ = null; } return this; } /** * .temporal.api.history.v1.History history = 1; */ public io.temporal.api.history.v1.History.Builder getHistoryBuilder() { onChanged(); return getHistoryFieldBuilder().getBuilder(); } /** * .temporal.api.history.v1.History history = 1; */ public io.temporal.api.history.v1.HistoryOrBuilder getHistoryOrBuilder() { if (historyBuilder_ != null) { return historyBuilder_.getMessageOrBuilder(); } else { return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_; } } /** * .temporal.api.history.v1.History history = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder> getHistoryFieldBuilder() { if (historyBuilder_ == null) { historyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder>( getHistory(), getParentForChildren(), isClean()); history_ = null; } return historyBuilder_; } private com.google.protobuf.ByteString nextPageToken_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Will be set if there are more history events than were included in this response
     * 
* * bytes next_page_token = 3; * @return The nextPageToken. */ public com.google.protobuf.ByteString getNextPageToken() { return nextPageToken_; } /** *
     * Will be set if there are more history events than were included in this response
     * 
* * bytes next_page_token = 3; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
     * Will be set if there are more history events than were included in this response
     * 
* * bytes next_page_token = 3; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); 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.GetWorkflowExecutionHistoryReverseResponse) } // @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) private static final io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse(); } public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetWorkflowExecutionHistoryReverseResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetWorkflowExecutionHistoryReverseResponse(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.GetWorkflowExecutionHistoryReverseResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy