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

io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse Maven / Gradle / Ivy

There is a newer version: 2024.1.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: query.proto

package io.axoniq.axonserver.grpc.query;

/**
 * 
 * Represents a Response Message for a Subscription Query 
 * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse} */ public final class SubscriptionQueryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) SubscriptionQueryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SubscriptionQueryResponse.newBuilder() to construct. private SubscriptionQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscriptionQueryResponse() { messageIdentifier_ = ""; subscriptionIdentifier_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SubscriptionQueryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); messageIdentifier_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subscriptionIdentifier_ = s; break; } case 26: { io.axoniq.axonserver.grpc.query.QueryResponse.Builder subBuilder = null; if (responseCase_ == 3) { subBuilder = ((io.axoniq.axonserver.grpc.query.QueryResponse) response_).toBuilder(); } response_ = input.readMessage(io.axoniq.axonserver.grpc.query.QueryResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryResponse) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 3; break; } case 34: { io.axoniq.axonserver.grpc.query.QueryUpdate.Builder subBuilder = null; if (responseCase_ == 4) { subBuilder = ((io.axoniq.axonserver.grpc.query.QueryUpdate) response_).toBuilder(); } response_ = input.readMessage(io.axoniq.axonserver.grpc.query.QueryUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryUpdate) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 4; break; } case 42: { io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder subBuilder = null; if (responseCase_ == 5) { subBuilder = ((io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_).toBuilder(); } response_ = input.readMessage(io.axoniq.axonserver.grpc.query.QueryUpdateComplete.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 5; break; } case 50: { io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder subBuilder = null; if (responseCase_ == 6) { subBuilder = ((io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_).toBuilder(); } response_ = input.readMessage(io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 6; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.class, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite { INITIAL_RESULT(3), UPDATE(4), COMPLETE(5), COMPLETE_EXCEPTIONALLY(6), RESPONSE_NOT_SET(0); private final int value; private ResponseCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResponseCase valueOf(int value) { return forNumber(value); } public static ResponseCase forNumber(int value) { switch (value) { case 3: return INITIAL_RESULT; case 4: return UPDATE; case 5: return COMPLETE; case 6: return COMPLETE_EXCEPTIONALLY; case 0: return RESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER = 1; private volatile java.lang.Object messageIdentifier_; /** *
   * The unique identifier for this message 
   * 
* * string message_identifier = 1; */ public java.lang.String getMessageIdentifier() { java.lang.Object ref = messageIdentifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageIdentifier_ = s; return s; } } /** *
   * The unique identifier for this message 
   * 
* * string message_identifier = 1; */ public com.google.protobuf.ByteString getMessageIdentifierBytes() { java.lang.Object ref = messageIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER = 2; private volatile java.lang.Object subscriptionIdentifier_; /** *
   * The identifier of the subscription query this is a response for 
   * 
* * string subscription_identifier = 2; */ public java.lang.String getSubscriptionIdentifier() { java.lang.Object ref = subscriptionIdentifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionIdentifier_ = s; return s; } } /** *
   * The identifier of the subscription query this is a response for 
   * 
* * string subscription_identifier = 2; */ public com.google.protobuf.ByteString getSubscriptionIdentifierBytes() { java.lang.Object ref = subscriptionIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INITIAL_RESULT_FIELD_NUMBER = 3; /** *
   * Provides an Initial Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public boolean hasInitialResult() { return responseCase_ == 3; } /** *
   * Provides an Initial Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public io.axoniq.axonserver.grpc.query.QueryResponse getInitialResult() { if (responseCase_ == 3) { return (io.axoniq.axonserver.grpc.query.QueryResponse) response_; } return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } /** *
   * Provides an Initial Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder getInitialResultOrBuilder() { if (responseCase_ == 3) { return (io.axoniq.axonserver.grpc.query.QueryResponse) response_; } return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 4; /** *
   * Provides an Update Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public boolean hasUpdate() { return responseCase_ == 4; } /** *
   * Provides an Update Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public io.axoniq.axonserver.grpc.query.QueryUpdate getUpdate() { if (responseCase_ == 4) { return (io.axoniq.axonserver.grpc.query.QueryUpdate) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } /** *
   * Provides an Update Response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public io.axoniq.axonserver.grpc.query.QueryUpdateOrBuilder getUpdateOrBuilder() { if (responseCase_ == 4) { return (io.axoniq.axonserver.grpc.query.QueryUpdate) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } public static final int COMPLETE_FIELD_NUMBER = 5; /** *
   * Indicates the Query is complete, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public boolean hasComplete() { return responseCase_ == 5; } /** *
   * Indicates the Query is complete, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public io.axoniq.axonserver.grpc.query.QueryUpdateComplete getComplete() { if (responseCase_ == 5) { return (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } /** *
   * Indicates the Query is complete, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteOrBuilder getCompleteOrBuilder() { if (responseCase_ == 5) { return (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } public static final int COMPLETE_EXCEPTIONALLY_FIELD_NUMBER = 6; /** *
   * Indicates the Query failed exceptionally, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public boolean hasCompleteExceptionally() { return responseCase_ == 6; } /** *
   * Indicates the Query failed exceptionally, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally getCompleteExceptionally() { if (responseCase_ == 6) { return (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance(); } /** *
   * Indicates the Query failed exceptionally, and no more Updates will be sent 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionallyOrBuilder getCompleteExceptionallyOrBuilder() { if (responseCase_ == 6) { return (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.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.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMessageIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIdentifier_); } if (!getSubscriptionIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscriptionIdentifier_); } if (responseCase_ == 3) { output.writeMessage(3, (io.axoniq.axonserver.grpc.query.QueryResponse) response_); } if (responseCase_ == 4) { output.writeMessage(4, (io.axoniq.axonserver.grpc.query.QueryUpdate) response_); } if (responseCase_ == 5) { output.writeMessage(5, (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_); } if (responseCase_ == 6) { output.writeMessage(6, (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMessageIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, messageIdentifier_); } if (!getSubscriptionIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscriptionIdentifier_); } if (responseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.axoniq.axonserver.grpc.query.QueryResponse) response_); } if (responseCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.axoniq.axonserver.grpc.query.QueryUpdate) response_); } if (responseCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_); } if (responseCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse)) { return super.equals(obj); } io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse other = (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) obj; boolean result = true; result = result && getMessageIdentifier() .equals(other.getMessageIdentifier()); result = result && getSubscriptionIdentifier() .equals(other.getSubscriptionIdentifier()); result = result && getResponseCase().equals( other.getResponseCase()); if (!result) return false; switch (responseCase_) { case 3: result = result && getInitialResult() .equals(other.getInitialResult()); break; case 4: result = result && getUpdate() .equals(other.getUpdate()); break; case 5: result = result && getComplete() .equals(other.getComplete()); break; case 6: result = result && getCompleteExceptionally() .equals(other.getCompleteExceptionally()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getMessageIdentifier().hashCode(); hash = (37 * hash) + SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionIdentifier().hashCode(); switch (responseCase_) { case 3: hash = (37 * hash) + INITIAL_RESULT_FIELD_NUMBER; hash = (53 * hash) + getInitialResult().hashCode(); break; case 4: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 5: hash = (37 * hash) + COMPLETE_FIELD_NUMBER; hash = (53 * hash) + getComplete().hashCode(); break; case 6: hash = (37 * hash) + COMPLETE_EXCEPTIONALLY_FIELD_NUMBER; hash = (53 * hash) + getCompleteExceptionally().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents a Response Message for a Subscription Query 
   * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.class, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder.class); } // Construct using io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); messageIdentifier_ = ""; subscriptionIdentifier_ = ""; responseCase_ = 0; response_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryResponse_descriptor; } @java.lang.Override public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse getDefaultInstanceForType() { return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance(); } @java.lang.Override public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse build() { io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse buildPartial() { io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse result = new io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse(this); result.messageIdentifier_ = messageIdentifier_; result.subscriptionIdentifier_ = subscriptionIdentifier_; if (responseCase_ == 3) { if (initialResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = initialResultBuilder_.build(); } } if (responseCase_ == 4) { if (updateBuilder_ == null) { result.response_ = response_; } else { result.response_ = updateBuilder_.build(); } } if (responseCase_ == 5) { if (completeBuilder_ == null) { result.response_ = response_; } else { result.response_ = completeBuilder_.build(); } } if (responseCase_ == 6) { if (completeExceptionallyBuilder_ == null) { result.response_ = response_; } else { result.response_ = completeExceptionallyBuilder_.build(); } } result.responseCase_ = responseCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) { return mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse other) { if (other == io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance()) return this; if (!other.getMessageIdentifier().isEmpty()) { messageIdentifier_ = other.messageIdentifier_; onChanged(); } if (!other.getSubscriptionIdentifier().isEmpty()) { subscriptionIdentifier_ = other.subscriptionIdentifier_; onChanged(); } switch (other.getResponseCase()) { case INITIAL_RESULT: { mergeInitialResult(other.getInitialResult()); break; } case UPDATE: { mergeUpdate(other.getUpdate()); break; } case COMPLETE: { mergeComplete(other.getComplete()); break; } case COMPLETE_EXCEPTIONALLY: { mergeCompleteExceptionally(other.getCompleteExceptionally()); break; } case RESPONSE_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.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int responseCase_ = 0; private java.lang.Object response_; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public Builder clearResponse() { responseCase_ = 0; response_ = null; onChanged(); return this; } private java.lang.Object messageIdentifier_ = ""; /** *
     * The unique identifier for this message 
     * 
* * string message_identifier = 1; */ public java.lang.String getMessageIdentifier() { java.lang.Object ref = messageIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The unique identifier for this message 
     * 
* * string message_identifier = 1; */ public com.google.protobuf.ByteString getMessageIdentifierBytes() { java.lang.Object ref = messageIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The unique identifier for this message 
     * 
* * string message_identifier = 1; */ public Builder setMessageIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } messageIdentifier_ = value; onChanged(); return this; } /** *
     * The unique identifier for this message 
     * 
* * string message_identifier = 1; */ public Builder clearMessageIdentifier() { messageIdentifier_ = getDefaultInstance().getMessageIdentifier(); onChanged(); return this; } /** *
     * The unique identifier for this message 
     * 
* * string message_identifier = 1; */ public Builder setMessageIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); messageIdentifier_ = value; onChanged(); return this; } private java.lang.Object subscriptionIdentifier_ = ""; /** *
     * The identifier of the subscription query this is a response for 
     * 
* * string subscription_identifier = 2; */ public java.lang.String getSubscriptionIdentifier() { java.lang.Object ref = subscriptionIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The identifier of the subscription query this is a response for 
     * 
* * string subscription_identifier = 2; */ public com.google.protobuf.ByteString getSubscriptionIdentifierBytes() { java.lang.Object ref = subscriptionIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The identifier of the subscription query this is a response for 
     * 
* * string subscription_identifier = 2; */ public Builder setSubscriptionIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscriptionIdentifier_ = value; onChanged(); return this; } /** *
     * The identifier of the subscription query this is a response for 
     * 
* * string subscription_identifier = 2; */ public Builder clearSubscriptionIdentifier() { subscriptionIdentifier_ = getDefaultInstance().getSubscriptionIdentifier(); onChanged(); return this; } /** *
     * The identifier of the subscription query this is a response for 
     * 
* * string subscription_identifier = 2; */ public Builder setSubscriptionIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionIdentifier_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder> initialResultBuilder_; /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public boolean hasInitialResult() { return responseCase_ == 3; } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public io.axoniq.axonserver.grpc.query.QueryResponse getInitialResult() { if (initialResultBuilder_ == null) { if (responseCase_ == 3) { return (io.axoniq.axonserver.grpc.query.QueryResponse) response_; } return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } else { if (responseCase_ == 3) { return initialResultBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public Builder setInitialResult(io.axoniq.axonserver.grpc.query.QueryResponse value) { if (initialResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { initialResultBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public Builder setInitialResult( io.axoniq.axonserver.grpc.query.QueryResponse.Builder builderForValue) { if (initialResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { initialResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 3; return this; } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public Builder mergeInitialResult(io.axoniq.axonserver.grpc.query.QueryResponse value) { if (initialResultBuilder_ == null) { if (responseCase_ == 3 && response_ != io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance()) { response_ = io.axoniq.axonserver.grpc.query.QueryResponse.newBuilder((io.axoniq.axonserver.grpc.query.QueryResponse) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 3) { initialResultBuilder_.mergeFrom(value); } initialResultBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public Builder clearInitialResult() { if (initialResultBuilder_ == null) { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; } initialResultBuilder_.clear(); } return this; } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public io.axoniq.axonserver.grpc.query.QueryResponse.Builder getInitialResultBuilder() { return getInitialResultFieldBuilder().getBuilder(); } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ public io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder getInitialResultOrBuilder() { if ((responseCase_ == 3) && (initialResultBuilder_ != null)) { return initialResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 3) { return (io.axoniq.axonserver.grpc.query.QueryResponse) response_; } return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } } /** *
     * Provides an Initial Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder> getInitialResultFieldBuilder() { if (initialResultBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance(); } initialResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder>( (io.axoniq.axonserver.grpc.query.QueryResponse) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 3; onChanged();; return initialResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdate, io.axoniq.axonserver.grpc.query.QueryUpdate.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateOrBuilder> updateBuilder_; /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public boolean hasUpdate() { return responseCase_ == 4; } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public io.axoniq.axonserver.grpc.query.QueryUpdate getUpdate() { if (updateBuilder_ == null) { if (responseCase_ == 4) { return (io.axoniq.axonserver.grpc.query.QueryUpdate) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } else { if (responseCase_ == 4) { return updateBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public Builder setUpdate(io.axoniq.axonserver.grpc.query.QueryUpdate value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public Builder setUpdate( io.axoniq.axonserver.grpc.query.QueryUpdate.Builder builderForValue) { if (updateBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } responseCase_ = 4; return this; } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public Builder mergeUpdate(io.axoniq.axonserver.grpc.query.QueryUpdate value) { if (updateBuilder_ == null) { if (responseCase_ == 4 && response_ != io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance()) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdate.newBuilder((io.axoniq.axonserver.grpc.query.QueryUpdate) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 4) { updateBuilder_.mergeFrom(value); } updateBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public Builder clearUpdate() { if (updateBuilder_ == null) { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; } updateBuilder_.clear(); } return this; } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public io.axoniq.axonserver.grpc.query.QueryUpdate.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ public io.axoniq.axonserver.grpc.query.QueryUpdateOrBuilder getUpdateOrBuilder() { if ((responseCase_ == 4) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 4) { return (io.axoniq.axonserver.grpc.query.QueryUpdate) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } } /** *
     * Provides an Update Response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdate, io.axoniq.axonserver.grpc.query.QueryUpdate.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdate.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdate, io.axoniq.axonserver.grpc.query.QueryUpdate.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateOrBuilder>( (io.axoniq.axonserver.grpc.query.QueryUpdate) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; onChanged();; return updateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateComplete, io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteOrBuilder> completeBuilder_; /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public boolean hasComplete() { return responseCase_ == 5; } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public io.axoniq.axonserver.grpc.query.QueryUpdateComplete getComplete() { if (completeBuilder_ == null) { if (responseCase_ == 5) { return (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } else { if (responseCase_ == 5) { return completeBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public Builder setComplete(io.axoniq.axonserver.grpc.query.QueryUpdateComplete value) { if (completeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { completeBuilder_.setMessage(value); } responseCase_ = 5; return this; } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public Builder setComplete( io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder builderForValue) { if (completeBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { completeBuilder_.setMessage(builderForValue.build()); } responseCase_ = 5; return this; } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public Builder mergeComplete(io.axoniq.axonserver.grpc.query.QueryUpdateComplete value) { if (completeBuilder_ == null) { if (responseCase_ == 5 && response_ != io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance()) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdateComplete.newBuilder((io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 5) { completeBuilder_.mergeFrom(value); } completeBuilder_.setMessage(value); } responseCase_ = 5; return this; } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public Builder clearComplete() { if (completeBuilder_ == null) { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; } completeBuilder_.clear(); } return this; } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder getCompleteBuilder() { return getCompleteFieldBuilder().getBuilder(); } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteOrBuilder getCompleteOrBuilder() { if ((responseCase_ == 5) && (completeBuilder_ != null)) { return completeBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 5) { return (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } } /** *
     * Indicates the Query is complete, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateComplete, io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteOrBuilder> getCompleteFieldBuilder() { if (completeBuilder_ == null) { if (!(responseCase_ == 5)) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdateComplete.getDefaultInstance(); } completeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateComplete, io.axoniq.axonserver.grpc.query.QueryUpdateComplete.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteOrBuilder>( (io.axoniq.axonserver.grpc.query.QueryUpdateComplete) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 5; onChanged();; return completeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionallyOrBuilder> completeExceptionallyBuilder_; /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public boolean hasCompleteExceptionally() { return responseCase_ == 6; } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally getCompleteExceptionally() { if (completeExceptionallyBuilder_ == null) { if (responseCase_ == 6) { return (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance(); } else { if (responseCase_ == 6) { return completeExceptionallyBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance(); } } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public Builder setCompleteExceptionally(io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally value) { if (completeExceptionallyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { completeExceptionallyBuilder_.setMessage(value); } responseCase_ = 6; return this; } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public Builder setCompleteExceptionally( io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder builderForValue) { if (completeExceptionallyBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { completeExceptionallyBuilder_.setMessage(builderForValue.build()); } responseCase_ = 6; return this; } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public Builder mergeCompleteExceptionally(io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally value) { if (completeExceptionallyBuilder_ == null) { if (responseCase_ == 6 && response_ != io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance()) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.newBuilder((io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 6) { completeExceptionallyBuilder_.mergeFrom(value); } completeExceptionallyBuilder_.setMessage(value); } responseCase_ = 6; return this; } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public Builder clearCompleteExceptionally() { if (completeExceptionallyBuilder_ == null) { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; } completeExceptionallyBuilder_.clear(); } return this; } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder getCompleteExceptionallyBuilder() { return getCompleteExceptionallyFieldBuilder().getBuilder(); } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ public io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionallyOrBuilder getCompleteExceptionallyOrBuilder() { if ((responseCase_ == 6) && (completeExceptionallyBuilder_ != null)) { return completeExceptionallyBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 6) { return (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_; } return io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance(); } } /** *
     * Indicates the Query failed exceptionally, and no more Updates will be sent 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionallyOrBuilder> getCompleteExceptionallyFieldBuilder() { if (completeExceptionallyBuilder_ == null) { if (!(responseCase_ == 6)) { response_ = io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.getDefaultInstance(); } completeExceptionallyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally.Builder, io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionallyOrBuilder>( (io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 6; onChanged();; return completeExceptionallyBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) } // @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) private static final io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse(); } public static io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubscriptionQueryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscriptionQueryResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy