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

apache.rocketmq.v1.PollCommandResponse 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.PollCommandResponse}
 */
public final class PollCommandResponse extends
    com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:apache.rocketmq.v1.PollCommandResponse)
    PollCommandResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PollCommandResponse.newBuilder() to construct.
  private PollCommandResponse(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PollCommandResponse() {
  }

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

  @java.lang.Override
  public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PollCommandResponse(
      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.NoopCommand.Builder subBuilder = null;
            if (typeCase_ == 1) {
              subBuilder = ((apache.rocketmq.v1.NoopCommand) type_).toBuilder();
            }
            type_ =
                input.readMessage(apache.rocketmq.v1.NoopCommand.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((apache.rocketmq.v1.NoopCommand) type_);
              type_ = subBuilder.buildPartial();
            }
            typeCase_ = 1;
            break;
          }
          case 18: {
            apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder subBuilder = null;
            if (typeCase_ == 2) {
              subBuilder = ((apache.rocketmq.v1.PrintThreadStackTraceCommand) type_).toBuilder();
            }
            type_ =
                input.readMessage(apache.rocketmq.v1.PrintThreadStackTraceCommand.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((apache.rocketmq.v1.PrintThreadStackTraceCommand) type_);
              type_ = subBuilder.buildPartial();
            }
            typeCase_ = 2;
            break;
          }
          case 26: {
            apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder subBuilder = null;
            if (typeCase_ == 3) {
              subBuilder = ((apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_).toBuilder();
            }
            type_ =
                input.readMessage(apache.rocketmq.v1.VerifyMessageConsumptionCommand.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_);
              type_ = subBuilder.buildPartial();
            }
            typeCase_ = 3;
            break;
          }
          case 34: {
            apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder subBuilder = null;
            if (typeCase_ == 4) {
              subBuilder = ((apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_).toBuilder();
            }
            type_ =
                input.readMessage(apache.rocketmq.v1.RecoverOrphanedTransactionCommand.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_);
              type_ = subBuilder.buildPartial();
            }
            typeCase_ = 4;
            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_PollCommandResponse_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_PollCommandResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            apache.rocketmq.v1.PollCommandResponse.class, apache.rocketmq.v1.PollCommandResponse.Builder.class);
  }

  private int typeCase_ = 0;
  private java.lang.Object type_;
  public enum TypeCase
      implements com.aliyun.openservices.ons.shaded.com.google.protobuf.Internal.EnumLite,
          com.aliyun.openservices.ons.shaded.com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    NOOP_COMMAND(1),
    PRINT_THREAD_STACK_TRACE_COMMAND(2),
    VERIFY_MESSAGE_CONSUMPTION_COMMAND(3),
    RECOVER_ORPHANED_TRANSACTION_COMMAND(4),
    TYPE_NOT_SET(0);
    private final int value;
    private TypeCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static TypeCase forNumber(int value) {
      switch (value) {
        case 1: return NOOP_COMMAND;
        case 2: return PRINT_THREAD_STACK_TRACE_COMMAND;
        case 3: return VERIFY_MESSAGE_CONSUMPTION_COMMAND;
        case 4: return RECOVER_ORPHANED_TRANSACTION_COMMAND;
        case 0: return TYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public TypeCase
  getTypeCase() {
    return TypeCase.forNumber(
        typeCase_);
  }

  public static final int NOOP_COMMAND_FIELD_NUMBER = 1;
  /**
   * 
   * Default command when no new command need to be delivered.
   * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; * @return Whether the noopCommand field is set. */ @java.lang.Override public boolean hasNoopCommand() { return typeCase_ == 1; } /** *
   * Default command when no new command need to be delivered.
   * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; * @return The noopCommand. */ @java.lang.Override public apache.rocketmq.v1.NoopCommand getNoopCommand() { if (typeCase_ == 1) { return (apache.rocketmq.v1.NoopCommand) type_; } return apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } /** *
   * Default command when no new command need to be delivered.
   * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ @java.lang.Override public apache.rocketmq.v1.NoopCommandOrBuilder getNoopCommandOrBuilder() { if (typeCase_ == 1) { return (apache.rocketmq.v1.NoopCommand) type_; } return apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } public static final int PRINT_THREAD_STACK_TRACE_COMMAND_FIELD_NUMBER = 2; /** *
   * Request client to print thread stack trace.
   * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; * @return Whether the printThreadStackTraceCommand field is set. */ @java.lang.Override public boolean hasPrintThreadStackTraceCommand() { return typeCase_ == 2; } /** *
   * Request client to print thread stack trace.
   * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; * @return The printThreadStackTraceCommand. */ @java.lang.Override public apache.rocketmq.v1.PrintThreadStackTraceCommand getPrintThreadStackTraceCommand() { if (typeCase_ == 2) { return (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_; } return apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } /** *
   * Request client to print thread stack trace.
   * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ @java.lang.Override public apache.rocketmq.v1.PrintThreadStackTraceCommandOrBuilder getPrintThreadStackTraceCommandOrBuilder() { if (typeCase_ == 2) { return (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_; } return apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } public static final int VERIFY_MESSAGE_CONSUMPTION_COMMAND_FIELD_NUMBER = 3; /** *
   * Request client to verify the consumption of the appointed message.
   * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; * @return Whether the verifyMessageConsumptionCommand field is set. */ @java.lang.Override public boolean hasVerifyMessageConsumptionCommand() { return typeCase_ == 3; } /** *
   * Request client to verify the consumption of the appointed message.
   * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; * @return The verifyMessageConsumptionCommand. */ @java.lang.Override public apache.rocketmq.v1.VerifyMessageConsumptionCommand getVerifyMessageConsumptionCommand() { if (typeCase_ == 3) { return (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_; } return apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } /** *
   * Request client to verify the consumption of the appointed message.
   * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ @java.lang.Override public apache.rocketmq.v1.VerifyMessageConsumptionCommandOrBuilder getVerifyMessageConsumptionCommandOrBuilder() { if (typeCase_ == 3) { return (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_; } return apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } public static final int RECOVER_ORPHANED_TRANSACTION_COMMAND_FIELD_NUMBER = 4; /** *
   * Request client to recover the orphaned transaction message.
   * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; * @return Whether the recoverOrphanedTransactionCommand field is set. */ @java.lang.Override public boolean hasRecoverOrphanedTransactionCommand() { return typeCase_ == 4; } /** *
   * Request client to recover the orphaned transaction message.
   * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; * @return The recoverOrphanedTransactionCommand. */ @java.lang.Override public apache.rocketmq.v1.RecoverOrphanedTransactionCommand getRecoverOrphanedTransactionCommand() { if (typeCase_ == 4) { return (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_; } return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } /** *
   * Request client to recover the orphaned transaction message.
   * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ @java.lang.Override public apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder getRecoverOrphanedTransactionCommandOrBuilder() { if (typeCase_ == 4) { return (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_; } return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } 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 (typeCase_ == 1) { output.writeMessage(1, (apache.rocketmq.v1.NoopCommand) type_); } if (typeCase_ == 2) { output.writeMessage(2, (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_); } if (typeCase_ == 3) { output.writeMessage(3, (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_); } if (typeCase_ == 4) { output.writeMessage(4, (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(1, (apache.rocketmq.v1.NoopCommand) type_); } if (typeCase_ == 2) { size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(2, (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_); } if (typeCase_ == 3) { size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(3, (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_); } if (typeCase_ == 4) { size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(4, (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_); } 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.PollCommandResponse)) { return super.equals(obj); } apache.rocketmq.v1.PollCommandResponse other = (apache.rocketmq.v1.PollCommandResponse) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getNoopCommand() .equals(other.getNoopCommand())) return false; break; case 2: if (!getPrintThreadStackTraceCommand() .equals(other.getPrintThreadStackTraceCommand())) return false; break; case 3: if (!getVerifyMessageConsumptionCommand() .equals(other.getVerifyMessageConsumptionCommand())) return false; break; case 4: if (!getRecoverOrphanedTransactionCommand() .equals(other.getRecoverOrphanedTransactionCommand())) return false; break; case 0: default: } 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(); switch (typeCase_) { case 1: hash = (37 * hash) + NOOP_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getNoopCommand().hashCode(); break; case 2: hash = (37 * hash) + PRINT_THREAD_STACK_TRACE_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getPrintThreadStackTraceCommand().hashCode(); break; case 3: hash = (37 * hash) + VERIFY_MESSAGE_CONSUMPTION_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getVerifyMessageConsumptionCommand().hashCode(); break; case 4: hash = (37 * hash) + RECOVER_ORPHANED_TRANSACTION_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getRecoverOrphanedTransactionCommand().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static apache.rocketmq.v1.PollCommandResponse parseFrom( java.nio.ByteBuffer data) throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apache.rocketmq.v1.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse parseFrom(byte[] data) throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apache.rocketmq.v1.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse 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.PollCommandResponse} */ 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.PollCommandResponse) apache.rocketmq.v1.PollCommandResponseOrBuilder { public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PollCommandResponse_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_PollCommandResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( apache.rocketmq.v1.PollCommandResponse.class, apache.rocketmq.v1.PollCommandResponse.Builder.class); } // Construct using apache.rocketmq.v1.PollCommandResponse.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(); typeCase_ = 0; type_ = null; 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_PollCommandResponse_descriptor; } @java.lang.Override public apache.rocketmq.v1.PollCommandResponse getDefaultInstanceForType() { return apache.rocketmq.v1.PollCommandResponse.getDefaultInstance(); } @java.lang.Override public apache.rocketmq.v1.PollCommandResponse build() { apache.rocketmq.v1.PollCommandResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public apache.rocketmq.v1.PollCommandResponse buildPartial() { apache.rocketmq.v1.PollCommandResponse result = new apache.rocketmq.v1.PollCommandResponse(this); if (typeCase_ == 1) { if (noopCommandBuilder_ == null) { result.type_ = type_; } else { result.type_ = noopCommandBuilder_.build(); } } if (typeCase_ == 2) { if (printThreadStackTraceCommandBuilder_ == null) { result.type_ = type_; } else { result.type_ = printThreadStackTraceCommandBuilder_.build(); } } if (typeCase_ == 3) { if (verifyMessageConsumptionCommandBuilder_ == null) { result.type_ = type_; } else { result.type_ = verifyMessageConsumptionCommandBuilder_.build(); } } if (typeCase_ == 4) { if (recoverOrphanedTransactionCommandBuilder_ == null) { result.type_ = type_; } else { result.type_ = recoverOrphanedTransactionCommandBuilder_.build(); } } result.typeCase_ = typeCase_; 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.PollCommandResponse) { return mergeFrom((apache.rocketmq.v1.PollCommandResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apache.rocketmq.v1.PollCommandResponse other) { if (other == apache.rocketmq.v1.PollCommandResponse.getDefaultInstance()) return this; switch (other.getTypeCase()) { case NOOP_COMMAND: { mergeNoopCommand(other.getNoopCommand()); break; } case PRINT_THREAD_STACK_TRACE_COMMAND: { mergePrintThreadStackTraceCommand(other.getPrintThreadStackTraceCommand()); break; } case VERIFY_MESSAGE_CONSUMPTION_COMMAND: { mergeVerifyMessageConsumptionCommand(other.getVerifyMessageConsumptionCommand()); break; } case RECOVER_ORPHANED_TRANSACTION_COMMAND: { mergeRecoverOrphanedTransactionCommand(other.getRecoverOrphanedTransactionCommand()); break; } case TYPE_NOT_SET: { break; } } 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.PollCommandResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apache.rocketmq.v1.PollCommandResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.NoopCommand, apache.rocketmq.v1.NoopCommand.Builder, apache.rocketmq.v1.NoopCommandOrBuilder> noopCommandBuilder_; /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; * @return Whether the noopCommand field is set. */ @java.lang.Override public boolean hasNoopCommand() { return typeCase_ == 1; } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; * @return The noopCommand. */ @java.lang.Override public apache.rocketmq.v1.NoopCommand getNoopCommand() { if (noopCommandBuilder_ == null) { if (typeCase_ == 1) { return (apache.rocketmq.v1.NoopCommand) type_; } return apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } else { if (typeCase_ == 1) { return noopCommandBuilder_.getMessage(); } return apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ public Builder setNoopCommand(apache.rocketmq.v1.NoopCommand value) { if (noopCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { noopCommandBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ public Builder setNoopCommand( apache.rocketmq.v1.NoopCommand.Builder builderForValue) { if (noopCommandBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { noopCommandBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ public Builder mergeNoopCommand(apache.rocketmq.v1.NoopCommand value) { if (noopCommandBuilder_ == null) { if (typeCase_ == 1 && type_ != apache.rocketmq.v1.NoopCommand.getDefaultInstance()) { type_ = apache.rocketmq.v1.NoopCommand.newBuilder((apache.rocketmq.v1.NoopCommand) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { noopCommandBuilder_.mergeFrom(value); } noopCommandBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ public Builder clearNoopCommand() { if (noopCommandBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } noopCommandBuilder_.clear(); } return this; } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ public apache.rocketmq.v1.NoopCommand.Builder getNoopCommandBuilder() { return getNoopCommandFieldBuilder().getBuilder(); } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ @java.lang.Override public apache.rocketmq.v1.NoopCommandOrBuilder getNoopCommandOrBuilder() { if ((typeCase_ == 1) && (noopCommandBuilder_ != null)) { return noopCommandBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (apache.rocketmq.v1.NoopCommand) type_; } return apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } } /** *
     * Default command when no new command need to be delivered.
     * 
* * .apache.rocketmq.v1.NoopCommand noop_command = 1; */ private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.NoopCommand, apache.rocketmq.v1.NoopCommand.Builder, apache.rocketmq.v1.NoopCommandOrBuilder> getNoopCommandFieldBuilder() { if (noopCommandBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = apache.rocketmq.v1.NoopCommand.getDefaultInstance(); } noopCommandBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.NoopCommand, apache.rocketmq.v1.NoopCommand.Builder, apache.rocketmq.v1.NoopCommandOrBuilder>( (apache.rocketmq.v1.NoopCommand) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged();; return noopCommandBuilder_; } private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.PrintThreadStackTraceCommand, apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder, apache.rocketmq.v1.PrintThreadStackTraceCommandOrBuilder> printThreadStackTraceCommandBuilder_; /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; * @return Whether the printThreadStackTraceCommand field is set. */ @java.lang.Override public boolean hasPrintThreadStackTraceCommand() { return typeCase_ == 2; } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; * @return The printThreadStackTraceCommand. */ @java.lang.Override public apache.rocketmq.v1.PrintThreadStackTraceCommand getPrintThreadStackTraceCommand() { if (printThreadStackTraceCommandBuilder_ == null) { if (typeCase_ == 2) { return (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_; } return apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } else { if (typeCase_ == 2) { return printThreadStackTraceCommandBuilder_.getMessage(); } return apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ public Builder setPrintThreadStackTraceCommand(apache.rocketmq.v1.PrintThreadStackTraceCommand value) { if (printThreadStackTraceCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { printThreadStackTraceCommandBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ public Builder setPrintThreadStackTraceCommand( apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder builderForValue) { if (printThreadStackTraceCommandBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { printThreadStackTraceCommandBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ public Builder mergePrintThreadStackTraceCommand(apache.rocketmq.v1.PrintThreadStackTraceCommand value) { if (printThreadStackTraceCommandBuilder_ == null) { if (typeCase_ == 2 && type_ != apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance()) { type_ = apache.rocketmq.v1.PrintThreadStackTraceCommand.newBuilder((apache.rocketmq.v1.PrintThreadStackTraceCommand) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { printThreadStackTraceCommandBuilder_.mergeFrom(value); } printThreadStackTraceCommandBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ public Builder clearPrintThreadStackTraceCommand() { if (printThreadStackTraceCommandBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } printThreadStackTraceCommandBuilder_.clear(); } return this; } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ public apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder getPrintThreadStackTraceCommandBuilder() { return getPrintThreadStackTraceCommandFieldBuilder().getBuilder(); } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ @java.lang.Override public apache.rocketmq.v1.PrintThreadStackTraceCommandOrBuilder getPrintThreadStackTraceCommandOrBuilder() { if ((typeCase_ == 2) && (printThreadStackTraceCommandBuilder_ != null)) { return printThreadStackTraceCommandBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_; } return apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } } /** *
     * Request client to print thread stack trace.
     * 
* * .apache.rocketmq.v1.PrintThreadStackTraceCommand print_thread_stack_trace_command = 2; */ private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.PrintThreadStackTraceCommand, apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder, apache.rocketmq.v1.PrintThreadStackTraceCommandOrBuilder> getPrintThreadStackTraceCommandFieldBuilder() { if (printThreadStackTraceCommandBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = apache.rocketmq.v1.PrintThreadStackTraceCommand.getDefaultInstance(); } printThreadStackTraceCommandBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.PrintThreadStackTraceCommand, apache.rocketmq.v1.PrintThreadStackTraceCommand.Builder, apache.rocketmq.v1.PrintThreadStackTraceCommandOrBuilder>( (apache.rocketmq.v1.PrintThreadStackTraceCommand) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return printThreadStackTraceCommandBuilder_; } private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.VerifyMessageConsumptionCommand, apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder, apache.rocketmq.v1.VerifyMessageConsumptionCommandOrBuilder> verifyMessageConsumptionCommandBuilder_; /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; * @return Whether the verifyMessageConsumptionCommand field is set. */ @java.lang.Override public boolean hasVerifyMessageConsumptionCommand() { return typeCase_ == 3; } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; * @return The verifyMessageConsumptionCommand. */ @java.lang.Override public apache.rocketmq.v1.VerifyMessageConsumptionCommand getVerifyMessageConsumptionCommand() { if (verifyMessageConsumptionCommandBuilder_ == null) { if (typeCase_ == 3) { return (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_; } return apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } else { if (typeCase_ == 3) { return verifyMessageConsumptionCommandBuilder_.getMessage(); } return apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ public Builder setVerifyMessageConsumptionCommand(apache.rocketmq.v1.VerifyMessageConsumptionCommand value) { if (verifyMessageConsumptionCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { verifyMessageConsumptionCommandBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ public Builder setVerifyMessageConsumptionCommand( apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder builderForValue) { if (verifyMessageConsumptionCommandBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { verifyMessageConsumptionCommandBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ public Builder mergeVerifyMessageConsumptionCommand(apache.rocketmq.v1.VerifyMessageConsumptionCommand value) { if (verifyMessageConsumptionCommandBuilder_ == null) { if (typeCase_ == 3 && type_ != apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance()) { type_ = apache.rocketmq.v1.VerifyMessageConsumptionCommand.newBuilder((apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { verifyMessageConsumptionCommandBuilder_.mergeFrom(value); } verifyMessageConsumptionCommandBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ public Builder clearVerifyMessageConsumptionCommand() { if (verifyMessageConsumptionCommandBuilder_ == null) { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; } verifyMessageConsumptionCommandBuilder_.clear(); } return this; } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ public apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder getVerifyMessageConsumptionCommandBuilder() { return getVerifyMessageConsumptionCommandFieldBuilder().getBuilder(); } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ @java.lang.Override public apache.rocketmq.v1.VerifyMessageConsumptionCommandOrBuilder getVerifyMessageConsumptionCommandOrBuilder() { if ((typeCase_ == 3) && (verifyMessageConsumptionCommandBuilder_ != null)) { return verifyMessageConsumptionCommandBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_; } return apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } } /** *
     * Request client to verify the consumption of the appointed message.
     * 
* * .apache.rocketmq.v1.VerifyMessageConsumptionCommand verify_message_consumption_command = 3; */ private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.VerifyMessageConsumptionCommand, apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder, apache.rocketmq.v1.VerifyMessageConsumptionCommandOrBuilder> getVerifyMessageConsumptionCommandFieldBuilder() { if (verifyMessageConsumptionCommandBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = apache.rocketmq.v1.VerifyMessageConsumptionCommand.getDefaultInstance(); } verifyMessageConsumptionCommandBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.VerifyMessageConsumptionCommand, apache.rocketmq.v1.VerifyMessageConsumptionCommand.Builder, apache.rocketmq.v1.VerifyMessageConsumptionCommandOrBuilder>( (apache.rocketmq.v1.VerifyMessageConsumptionCommand) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; onChanged();; return verifyMessageConsumptionCommandBuilder_; } private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.RecoverOrphanedTransactionCommand, apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder, apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder> recoverOrphanedTransactionCommandBuilder_; /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; * @return Whether the recoverOrphanedTransactionCommand field is set. */ @java.lang.Override public boolean hasRecoverOrphanedTransactionCommand() { return typeCase_ == 4; } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; * @return The recoverOrphanedTransactionCommand. */ @java.lang.Override public apache.rocketmq.v1.RecoverOrphanedTransactionCommand getRecoverOrphanedTransactionCommand() { if (recoverOrphanedTransactionCommandBuilder_ == null) { if (typeCase_ == 4) { return (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_; } return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } else { if (typeCase_ == 4) { return recoverOrphanedTransactionCommandBuilder_.getMessage(); } return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ public Builder setRecoverOrphanedTransactionCommand(apache.rocketmq.v1.RecoverOrphanedTransactionCommand value) { if (recoverOrphanedTransactionCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { recoverOrphanedTransactionCommandBuilder_.setMessage(value); } typeCase_ = 4; return this; } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ public Builder setRecoverOrphanedTransactionCommand( apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder builderForValue) { if (recoverOrphanedTransactionCommandBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { recoverOrphanedTransactionCommandBuilder_.setMessage(builderForValue.build()); } typeCase_ = 4; return this; } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ public Builder mergeRecoverOrphanedTransactionCommand(apache.rocketmq.v1.RecoverOrphanedTransactionCommand value) { if (recoverOrphanedTransactionCommandBuilder_ == null) { if (typeCase_ == 4 && type_ != apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance()) { type_ = apache.rocketmq.v1.RecoverOrphanedTransactionCommand.newBuilder((apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 4) { recoverOrphanedTransactionCommandBuilder_.mergeFrom(value); } recoverOrphanedTransactionCommandBuilder_.setMessage(value); } typeCase_ = 4; return this; } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ public Builder clearRecoverOrphanedTransactionCommand() { if (recoverOrphanedTransactionCommandBuilder_ == null) { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; } recoverOrphanedTransactionCommandBuilder_.clear(); } return this; } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ public apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder getRecoverOrphanedTransactionCommandBuilder() { return getRecoverOrphanedTransactionCommandFieldBuilder().getBuilder(); } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ @java.lang.Override public apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder getRecoverOrphanedTransactionCommandOrBuilder() { if ((typeCase_ == 4) && (recoverOrphanedTransactionCommandBuilder_ != null)) { return recoverOrphanedTransactionCommandBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 4) { return (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_; } return apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } } /** *
     * Request client to recover the orphaned transaction message.
     * 
* * .apache.rocketmq.v1.RecoverOrphanedTransactionCommand recover_orphaned_transaction_command = 4; */ private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.RecoverOrphanedTransactionCommand, apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder, apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder> getRecoverOrphanedTransactionCommandFieldBuilder() { if (recoverOrphanedTransactionCommandBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = apache.rocketmq.v1.RecoverOrphanedTransactionCommand.getDefaultInstance(); } recoverOrphanedTransactionCommandBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3< apache.rocketmq.v1.RecoverOrphanedTransactionCommand, apache.rocketmq.v1.RecoverOrphanedTransactionCommand.Builder, apache.rocketmq.v1.RecoverOrphanedTransactionCommandOrBuilder>( (apache.rocketmq.v1.RecoverOrphanedTransactionCommand) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; onChanged();; return recoverOrphanedTransactionCommandBuilder_; } @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.PollCommandResponse) } // @@protoc_insertion_point(class_scope:apache.rocketmq.v1.PollCommandResponse) private static final apache.rocketmq.v1.PollCommandResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new apache.rocketmq.v1.PollCommandResponse(); } public static apache.rocketmq.v1.PollCommandResponse 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 PollCommandResponse 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 PollCommandResponse(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.PollCommandResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy