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

apache.rocketmq.v1.RecoverOrphanedTransactionCommand Maven / Gradle / Ivy

There is a newer version: 2.0.7.Final
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: apache/rocketmq/v1/service.proto

package apache.rocketmq.v1;

/**
 * Protobuf type {@code apache.rocketmq.v1.RecoverOrphanedTransactionCommand}
 */
public final class RecoverOrphanedTransactionCommand extends
    com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:apache.rocketmq.v1.RecoverOrphanedTransactionCommand)
    RecoverOrphanedTransactionCommandOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RecoverOrphanedTransactionCommand.newBuilder() to construct.
  private RecoverOrphanedTransactionCommand(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RecoverOrphanedTransactionCommand() {
    transactionId_ = "";
  }

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

  @java.lang.Override
  public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RecoverOrphanedTransactionCommand(
      com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            apache.rocketmq.v1.Message.Builder subBuilder = null;
            if (orphanedTransactionalMessage_ != null) {
              subBuilder = orphanedTransactionalMessage_.toBuilder();
            }
            orphanedTransactionalMessage_ = input.readMessage(apache.rocketmq.v1.Message.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(orphanedTransactionalMessage_);
              orphanedTransactionalMessage_ = subBuilder.buildPartial();
            }

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

            transactionId_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_RecoverOrphanedTransactionCommand_descriptor;
  }

  @java.lang.Override
  protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_RecoverOrphanedTransactionCommand_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            apache.rocketmq.v1.RecoverOrphanedTransactionCommand.class, apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder.class);
  }

  public static final int ORPHANED_TRANSACTIONAL_MESSAGE_FIELD_NUMBER = 1;
  private apache.rocketmq.v1.Message orphanedTransactionalMessage_;
  /**
   * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
   * @return Whether the orphanedTransactionalMessage field is set.
   */
  @java.lang.Override
  public boolean hasOrphanedTransactionalMessage() {
    return orphanedTransactionalMessage_ != null;
  }
  /**
   * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
   * @return The orphanedTransactionalMessage.
   */
  @java.lang.Override
  public apache.rocketmq.v1.Message getOrphanedTransactionalMessage() {
    return orphanedTransactionalMessage_ == null ? apache.rocketmq.v1.Message.getDefaultInstance() : orphanedTransactionalMessage_;
  }
  /**
   * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
   */
  @java.lang.Override
  public apache.rocketmq.v1.MessageOrBuilder getOrphanedTransactionalMessageOrBuilder() {
    return getOrphanedTransactionalMessage();
  }

  public static final int TRANSACTION_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object transactionId_;
  /**
   * string transaction_id = 2;
   * @return The transactionId.
   */
  @java.lang.Override
  public java.lang.String getTransactionId() {
    java.lang.Object ref = transactionId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString bs = 
          (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      transactionId_ = s;
      return s;
    }
  }
  /**
   * string transaction_id = 2;
   * @return The bytes for transactionId.
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString
      getTransactionIdBytes() {
    java.lang.Object ref = transactionId_;
    if (ref instanceof java.lang.String) {
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b = 
          com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      transactionId_ = b;
      return b;
    } else {
      return (com.aliyun.openservices.ons.shaded.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.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (orphanedTransactionalMessage_ != null) {
      output.writeMessage(1, getOrphanedTransactionalMessage());
    }
    if (!getTransactionIdBytes().isEmpty()) {
      com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (orphanedTransactionalMessage_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getOrphanedTransactionalMessage());
    }
    if (!getTransactionIdBytes().isEmpty()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transactionId_);
    }
    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 apache.rocketmq.v1.RecoverOrphanedTransactionCommand)) {
      return super.equals(obj);
    }
    apache.rocketmq.v1.RecoverOrphanedTransactionCommand other = (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) obj;

    if (hasOrphanedTransactionalMessage() != other.hasOrphanedTransactionalMessage()) return false;
    if (hasOrphanedTransactionalMessage()) {
      if (!getOrphanedTransactionalMessage()
          .equals(other.getOrphanedTransactionalMessage())) return false;
    }
    if (!getTransactionId()
        .equals(other.getTransactionId())) 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 (hasOrphanedTransactionalMessage()) {
      hash = (37 * hash) + ORPHANED_TRANSACTIONAL_MESSAGE_FIELD_NUMBER;
      hash = (53 * hash) + getOrphanedTransactionalMessage().hashCode();
    }
    hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
    hash = (53 * hash) + getTransactionId().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      java.nio.ByteBuffer data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      java.nio.ByteBuffer data,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(byte[] data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      byte[] data,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      java.io.InputStream input,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseDelimitedFrom(
      java.io.InputStream input,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand parseFrom(
      com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
      com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.aliyun.openservices.ons.shaded.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(apache.rocketmq.v1.RecoverOrphanedTransactionCommand 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.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code apache.rocketmq.v1.RecoverOrphanedTransactionCommand}
   */
  public static final class Builder extends
      com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:apache.rocketmq.v1.RecoverOrphanedTransactionCommand)
      apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder {
    public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_RecoverOrphanedTransactionCommand_descriptor;
    }

    @java.lang.Override
    protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_RecoverOrphanedTransactionCommand_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apache.rocketmq.v1.RecoverOrphanedTransactionCommand.class, apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder.class);
    }

    // Construct using apache.rocketmq.v1.RecoverOrphanedTransactionCommand.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (orphanedTransactionalMessageBuilder_ == null) {
        orphanedTransactionalMessage_ = null;
      } else {
        orphanedTransactionalMessage_ = null;
        orphanedTransactionalMessageBuilder_ = null;
      }
      transactionId_ = "";

      return this;
    }

    @java.lang.Override
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_RecoverOrphanedTransactionCommand_descriptor;
    }

    @java.lang.Override
    public apache.rocketmq.v1.RecoverOrphanedTransactionCommand getDefaultInstanceForType() {
      return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance();
    }

    @java.lang.Override
    public apache.rocketmq.v1.RecoverOrphanedTransactionCommand build() {
      apache.rocketmq.v1.RecoverOrphanedTransactionCommand result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public apache.rocketmq.v1.RecoverOrphanedTransactionCommand buildPartial() {
      apache.rocketmq.v1.RecoverOrphanedTransactionCommand result = new apache.rocketmq.v1.RecoverOrphanedTransactionCommand(this);
      if (orphanedTransactionalMessageBuilder_ == null) {
        result.orphanedTransactionalMessage_ = orphanedTransactionalMessage_;
      } else {
        result.orphanedTransactionalMessage_ = orphanedTransactionalMessageBuilder_.build();
      }
      result.transactionId_ = transactionId_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.aliyun.openservices.ons.shaded.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.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.aliyun.openservices.ons.shaded.com.google.protobuf.Message other) {
      if (other instanceof apache.rocketmq.v1.RecoverOrphanedTransactionCommand) {
        return mergeFrom((apache.rocketmq.v1.RecoverOrphanedTransactionCommand)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(apache.rocketmq.v1.RecoverOrphanedTransactionCommand other) {
      if (other == apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance()) return this;
      if (other.hasOrphanedTransactionalMessage()) {
        mergeOrphanedTransactionalMessage(other.getOrphanedTransactionalMessage());
      }
      if (!other.getTransactionId().isEmpty()) {
        transactionId_ = other.transactionId_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
        com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      apache.rocketmq.v1.RecoverOrphanedTransactionCommand parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private apache.rocketmq.v1.Message orphanedTransactionalMessage_;
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        apache.rocketmq.v1.Message, apache.rocketmq.v1.Message.Builder, apache.rocketmq.v1.MessageOrBuilder> orphanedTransactionalMessageBuilder_;
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     * @return Whether the orphanedTransactionalMessage field is set.
     */
    public boolean hasOrphanedTransactionalMessage() {
      return orphanedTransactionalMessageBuilder_ != null || orphanedTransactionalMessage_ != null;
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     * @return The orphanedTransactionalMessage.
     */
    public apache.rocketmq.v1.Message getOrphanedTransactionalMessage() {
      if (orphanedTransactionalMessageBuilder_ == null) {
        return orphanedTransactionalMessage_ == null ? apache.rocketmq.v1.Message.getDefaultInstance() : orphanedTransactionalMessage_;
      } else {
        return orphanedTransactionalMessageBuilder_.getMessage();
      }
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public Builder setOrphanedTransactionalMessage(apache.rocketmq.v1.Message value) {
      if (orphanedTransactionalMessageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        orphanedTransactionalMessage_ = value;
        onChanged();
      } else {
        orphanedTransactionalMessageBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public Builder setOrphanedTransactionalMessage(
        apache.rocketmq.v1.Message.Builder builderForValue) {
      if (orphanedTransactionalMessageBuilder_ == null) {
        orphanedTransactionalMessage_ = builderForValue.build();
        onChanged();
      } else {
        orphanedTransactionalMessageBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public Builder mergeOrphanedTransactionalMessage(apache.rocketmq.v1.Message value) {
      if (orphanedTransactionalMessageBuilder_ == null) {
        if (orphanedTransactionalMessage_ != null) {
          orphanedTransactionalMessage_ =
            apache.rocketmq.v1.Message.newBuilder(orphanedTransactionalMessage_).mergeFrom(value).buildPartial();
        } else {
          orphanedTransactionalMessage_ = value;
        }
        onChanged();
      } else {
        orphanedTransactionalMessageBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public Builder clearOrphanedTransactionalMessage() {
      if (orphanedTransactionalMessageBuilder_ == null) {
        orphanedTransactionalMessage_ = null;
        onChanged();
      } else {
        orphanedTransactionalMessage_ = null;
        orphanedTransactionalMessageBuilder_ = null;
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public apache.rocketmq.v1.Message.Builder getOrphanedTransactionalMessageBuilder() {
      
      onChanged();
      return getOrphanedTransactionalMessageFieldBuilder().getBuilder();
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    public apache.rocketmq.v1.MessageOrBuilder getOrphanedTransactionalMessageOrBuilder() {
      if (orphanedTransactionalMessageBuilder_ != null) {
        return orphanedTransactionalMessageBuilder_.getMessageOrBuilder();
      } else {
        return orphanedTransactionalMessage_ == null ?
            apache.rocketmq.v1.Message.getDefaultInstance() : orphanedTransactionalMessage_;
      }
    }
    /**
     * .apache.rocketmq.v1.Message orphaned_transactional_message = 1;
     */
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        apache.rocketmq.v1.Message, apache.rocketmq.v1.Message.Builder, apache.rocketmq.v1.MessageOrBuilder> 
        getOrphanedTransactionalMessageFieldBuilder() {
      if (orphanedTransactionalMessageBuilder_ == null) {
        orphanedTransactionalMessageBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
            apache.rocketmq.v1.Message, apache.rocketmq.v1.Message.Builder, apache.rocketmq.v1.MessageOrBuilder>(
                getOrphanedTransactionalMessage(),
                getParentForChildren(),
                isClean());
        orphanedTransactionalMessage_ = null;
      }
      return orphanedTransactionalMessageBuilder_;
    }

    private java.lang.Object transactionId_ = "";
    /**
     * string transaction_id = 2;
     * @return The transactionId.
     */
    public java.lang.String getTransactionId() {
      java.lang.Object ref = transactionId_;
      if (!(ref instanceof java.lang.String)) {
        com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString bs =
            (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        transactionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string transaction_id = 2;
     * @return The bytes for transactionId.
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString
        getTransactionIdBytes() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof String) {
        com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b = 
            com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        transactionId_ = b;
        return b;
      } else {
        return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string transaction_id = 2;
     * @param value The transactionId to set.
     * @return This builder for chaining.
     */
    public Builder setTransactionId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      transactionId_ = value;
      onChanged();
      return this;
    }
    /**
     * string transaction_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearTransactionId() {
      
      transactionId_ = getDefaultInstance().getTransactionId();
      onChanged();
      return this;
    }
    /**
     * string transaction_id = 2;
     * @param value The bytes for transactionId to set.
     * @return This builder for chaining.
     */
    public Builder setTransactionIdBytes(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      transactionId_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:apache.rocketmq.v1.RecoverOrphanedTransactionCommand)
  }

  // @@protoc_insertion_point(class_scope:apache.rocketmq.v1.RecoverOrphanedTransactionCommand)
  private static final apache.rocketmq.v1.RecoverOrphanedTransactionCommand DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new apache.rocketmq.v1.RecoverOrphanedTransactionCommand();
  }

  public static apache.rocketmq.v1.RecoverOrphanedTransactionCommand getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser
      PARSER = new com.aliyun.openservices.ons.shaded.com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public RecoverOrphanedTransactionCommand parsePartialFrom(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
        com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
      return new RecoverOrphanedTransactionCommand(input, extensionRegistry);
    }
  };

  public static com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public apache.rocketmq.v1.RecoverOrphanedTransactionCommand getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy