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;
}
}