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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: query.proto

package io.axoniq.axonserver.grpc.query;

/**
 * 
 * Queries or Query related instructions from AxonServer for the connected application 
 * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.query.QueryProviderInbound} */ public final class QueryProviderInbound extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.query.QueryProviderInbound) QueryProviderInboundOrBuilder { private static final long serialVersionUID = 0L; // Use QueryProviderInbound.newBuilder() to construct. private QueryProviderInbound(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryProviderInbound() { instructionId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryProviderInbound( 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: { io.axoniq.axonserver.grpc.InstructionAck.Builder subBuilder = null; if (requestCase_ == 1) { subBuilder = ((io.axoniq.axonserver.grpc.InstructionAck) request_).toBuilder(); } request_ = input.readMessage(io.axoniq.axonserver.grpc.InstructionAck.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.InstructionAck) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 1; break; } case 18: { io.axoniq.axonserver.grpc.query.QueryRequest.Builder subBuilder = null; if (requestCase_ == 2) { subBuilder = ((io.axoniq.axonserver.grpc.query.QueryRequest) request_).toBuilder(); } request_ = input.readMessage(io.axoniq.axonserver.grpc.query.QueryRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 2; break; } case 26: { io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder subBuilder = null; if (requestCase_ == 3) { subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_).toBuilder(); } request_ = input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 3; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); instructionId_ = s; 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_QueryProviderInbound_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_QueryProviderInbound_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.query.QueryProviderInbound.class, io.axoniq.axonserver.grpc.query.QueryProviderInbound.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite { ACK(1), QUERY(2), SUBSCRIPTION_QUERY_REQUEST(3), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return ACK; case 2: return QUERY; case 3: return SUBSCRIPTION_QUERY_REQUEST; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int ACK_FIELD_NUMBER = 1; /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public boolean hasAck() { return requestCase_ == 1; } /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck getAck() { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } public static final int QUERY_FIELD_NUMBER = 2; /** *
   * Represents an incoming Query, for which this component is expected to provide a response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public boolean hasQuery() { return requestCase_ == 2; } /** *
   * Represents an incoming Query, for which this component is expected to provide a response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public io.axoniq.axonserver.grpc.query.QueryRequest getQuery() { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.query.QueryRequest) request_; } return io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } /** *
   * Represents an incoming Query, for which this component is expected to provide a response 
   * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public io.axoniq.axonserver.grpc.query.QueryRequestOrBuilder getQueryOrBuilder() { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.query.QueryRequest) request_; } return io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } public static final int SUBSCRIPTION_QUERY_REQUEST_FIELD_NUMBER = 3; /** *
   * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
   * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public boolean hasSubscriptionQueryRequest() { return requestCase_ == 3; } /** *
   * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
   * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest getSubscriptionQueryRequest() { if (requestCase_ == 3) { return (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_; } return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } /** *
   * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
   * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder getSubscriptionQueryRequestOrBuilder() { if (requestCase_ == 3) { return (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_; } return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } public static final int INSTRUCTION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object instructionId_; /** *
   * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
   * 
* * string instruction_id = 4; */ public java.lang.String getInstructionId() { java.lang.Object ref = instructionId_; 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(); instructionId_ = s; return s; } } /** *
   * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
   * 
* * string instruction_id = 4; */ public com.google.protobuf.ByteString getInstructionIdBytes() { java.lang.Object ref = instructionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestCase_ == 1) { output.writeMessage(1, (io.axoniq.axonserver.grpc.InstructionAck) request_); } if (requestCase_ == 2) { output.writeMessage(2, (io.axoniq.axonserver.grpc.query.QueryRequest) request_); } if (requestCase_ == 3) { output.writeMessage(3, (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_); } if (!getInstructionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instructionId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.axoniq.axonserver.grpc.InstructionAck) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.axoniq.axonserver.grpc.query.QueryRequest) request_); } if (requestCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_); } if (!getInstructionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instructionId_); } 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.QueryProviderInbound)) { return super.equals(obj); } io.axoniq.axonserver.grpc.query.QueryProviderInbound other = (io.axoniq.axonserver.grpc.query.QueryProviderInbound) obj; boolean result = true; result = result && getInstructionId() .equals(other.getInstructionId()); result = result && getRequestCase().equals( other.getRequestCase()); if (!result) return false; switch (requestCase_) { case 1: result = result && getAck() .equals(other.getAck()); break; case 2: result = result && getQuery() .equals(other.getQuery()); break; case 3: result = result && getSubscriptionQueryRequest() .equals(other.getSubscriptionQueryRequest()); 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) + INSTRUCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getInstructionId().hashCode(); switch (requestCase_) { case 1: hash = (37 * hash) + ACK_FIELD_NUMBER; hash = (53 * hash) + getAck().hashCode(); break; case 2: hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); break; case 3: hash = (37 * hash) + SUBSCRIPTION_QUERY_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionQueryRequest().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound 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.QueryProviderInbound parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound 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.QueryProviderInbound parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound 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.QueryProviderInbound parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound 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.QueryProviderInbound parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound 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.QueryProviderInbound 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.QueryProviderInbound 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.QueryProviderInbound 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; } /** *
   * Queries or Query related instructions from AxonServer for the connected application 
   * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.query.QueryProviderInbound} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.query.QueryProviderInbound) io.axoniq.axonserver.grpc.query.QueryProviderInboundOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_QueryProviderInbound_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_QueryProviderInbound_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.query.QueryProviderInbound.class, io.axoniq.axonserver.grpc.query.QueryProviderInbound.Builder.class); } // Construct using io.axoniq.axonserver.grpc.query.QueryProviderInbound.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(); instructionId_ = ""; requestCase_ = 0; request_ = 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_QueryProviderInbound_descriptor; } @java.lang.Override public io.axoniq.axonserver.grpc.query.QueryProviderInbound getDefaultInstanceForType() { return io.axoniq.axonserver.grpc.query.QueryProviderInbound.getDefaultInstance(); } @java.lang.Override public io.axoniq.axonserver.grpc.query.QueryProviderInbound build() { io.axoniq.axonserver.grpc.query.QueryProviderInbound result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.axoniq.axonserver.grpc.query.QueryProviderInbound buildPartial() { io.axoniq.axonserver.grpc.query.QueryProviderInbound result = new io.axoniq.axonserver.grpc.query.QueryProviderInbound(this); if (requestCase_ == 1) { if (ackBuilder_ == null) { result.request_ = request_; } else { result.request_ = ackBuilder_.build(); } } if (requestCase_ == 2) { if (queryBuilder_ == null) { result.request_ = request_; } else { result.request_ = queryBuilder_.build(); } } if (requestCase_ == 3) { if (subscriptionQueryRequestBuilder_ == null) { result.request_ = request_; } else { result.request_ = subscriptionQueryRequestBuilder_.build(); } } result.instructionId_ = instructionId_; result.requestCase_ = requestCase_; 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.QueryProviderInbound) { return mergeFrom((io.axoniq.axonserver.grpc.query.QueryProviderInbound)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.axoniq.axonserver.grpc.query.QueryProviderInbound other) { if (other == io.axoniq.axonserver.grpc.query.QueryProviderInbound.getDefaultInstance()) return this; if (!other.getInstructionId().isEmpty()) { instructionId_ = other.instructionId_; onChanged(); } switch (other.getRequestCase()) { case ACK: { mergeAck(other.getAck()); break; } case QUERY: { mergeQuery(other.getQuery()); break; } case SUBSCRIPTION_QUERY_REQUEST: { mergeSubscriptionQueryRequest(other.getSubscriptionQueryRequest()); break; } case REQUEST_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.QueryProviderInbound parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.axoniq.axonserver.grpc.query.QueryProviderInbound) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder> ackBuilder_; /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public boolean hasAck() { return requestCase_ == 1; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck getAck() { if (ackBuilder_ == null) { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } else { if (requestCase_ == 1) { return ackBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder setAck(io.axoniq.axonserver.grpc.InstructionAck value) { if (ackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { ackBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder setAck( io.axoniq.axonserver.grpc.InstructionAck.Builder builderForValue) { if (ackBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { ackBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder mergeAck(io.axoniq.axonserver.grpc.InstructionAck value) { if (ackBuilder_ == null) { if (requestCase_ == 1 && request_ != io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance()) { request_ = io.axoniq.axonserver.grpc.InstructionAck.newBuilder((io.axoniq.axonserver.grpc.InstructionAck) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { ackBuilder_.mergeFrom(value); } ackBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder clearAck() { if (ackBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } ackBuilder_.clear(); } return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck.Builder getAckBuilder() { return getAckFieldBuilder().getBuilder(); } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() { if ((requestCase_ == 1) && (ackBuilder_ != null)) { return ackBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder>( (io.axoniq.axonserver.grpc.InstructionAck) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return ackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryRequest, io.axoniq.axonserver.grpc.query.QueryRequest.Builder, io.axoniq.axonserver.grpc.query.QueryRequestOrBuilder> queryBuilder_; /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public boolean hasQuery() { return requestCase_ == 2; } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public io.axoniq.axonserver.grpc.query.QueryRequest getQuery() { if (queryBuilder_ == null) { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.query.QueryRequest) request_; } return io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } else { if (requestCase_ == 2) { return queryBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public Builder setQuery(io.axoniq.axonserver.grpc.query.QueryRequest value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { queryBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public Builder setQuery( io.axoniq.axonserver.grpc.query.QueryRequest.Builder builderForValue) { if (queryBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { queryBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public Builder mergeQuery(io.axoniq.axonserver.grpc.query.QueryRequest value) { if (queryBuilder_ == null) { if (requestCase_ == 2 && request_ != io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance()) { request_ = io.axoniq.axonserver.grpc.query.QueryRequest.newBuilder((io.axoniq.axonserver.grpc.query.QueryRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { queryBuilder_.mergeFrom(value); } queryBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public Builder clearQuery() { if (queryBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } queryBuilder_.clear(); } return this; } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public io.axoniq.axonserver.grpc.query.QueryRequest.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ public io.axoniq.axonserver.grpc.query.QueryRequestOrBuilder getQueryOrBuilder() { if ((requestCase_ == 2) && (queryBuilder_ != null)) { return queryBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.query.QueryRequest) request_; } return io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } } /** *
     * Represents an incoming Query, for which this component is expected to provide a response 
     * 
* * .io.axoniq.axonserver.grpc.query.QueryRequest query = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryRequest, io.axoniq.axonserver.grpc.query.QueryRequest.Builder, io.axoniq.axonserver.grpc.query.QueryRequestOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = io.axoniq.axonserver.grpc.query.QueryRequest.getDefaultInstance(); } queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.QueryRequest, io.axoniq.axonserver.grpc.query.QueryRequest.Builder, io.axoniq.axonserver.grpc.query.QueryRequestOrBuilder>( (io.axoniq.axonserver.grpc.query.QueryRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return queryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder> subscriptionQueryRequestBuilder_; /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public boolean hasSubscriptionQueryRequest() { return requestCase_ == 3; } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest getSubscriptionQueryRequest() { if (subscriptionQueryRequestBuilder_ == null) { if (requestCase_ == 3) { return (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_; } return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } else { if (requestCase_ == 3) { return subscriptionQueryRequestBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public Builder setSubscriptionQueryRequest(io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest value) { if (subscriptionQueryRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { subscriptionQueryRequestBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public Builder setSubscriptionQueryRequest( io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder builderForValue) { if (subscriptionQueryRequestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { subscriptionQueryRequestBuilder_.setMessage(builderForValue.build()); } requestCase_ = 3; return this; } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public Builder mergeSubscriptionQueryRequest(io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest value) { if (subscriptionQueryRequestBuilder_ == null) { if (requestCase_ == 3 && request_ != io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance()) { request_ = io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 3) { subscriptionQueryRequestBuilder_.mergeFrom(value); } subscriptionQueryRequestBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public Builder clearSubscriptionQueryRequest() { if (subscriptionQueryRequestBuilder_ == null) { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; } subscriptionQueryRequestBuilder_.clear(); } return this; } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder getSubscriptionQueryRequestBuilder() { return getSubscriptionQueryRequestFieldBuilder().getBuilder(); } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder getSubscriptionQueryRequestOrBuilder() { if ((requestCase_ == 3) && (subscriptionQueryRequestBuilder_ != null)) { return subscriptionQueryRequestBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 3) { return (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_; } return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } } /** *
     * Represents an incoming Subscription Query, for which this component is expected to provide a response and updates 
     * 
* * .io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest subscription_query_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder> getSubscriptionQueryRequestFieldBuilder() { if (subscriptionQueryRequestBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance(); } subscriptionQueryRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder>( (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 3; onChanged();; return subscriptionQueryRequestBuilder_; } private java.lang.Object instructionId_ = ""; /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 4; */ public java.lang.String getInstructionId() { java.lang.Object ref = instructionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 4; */ public com.google.protobuf.ByteString getInstructionIdBytes() { java.lang.Object ref = instructionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 4; */ public Builder setInstructionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instructionId_ = value; onChanged(); return this; } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 4; */ public Builder clearInstructionId() { instructionId_ = getDefaultInstance().getInstructionId(); onChanged(); return this; } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 4; */ public Builder setInstructionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instructionId_ = value; onChanged(); return this; } @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.QueryProviderInbound) } // @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.query.QueryProviderInbound) private static final io.axoniq.axonserver.grpc.query.QueryProviderInbound DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.query.QueryProviderInbound(); } public static io.axoniq.axonserver.grpc.query.QueryProviderInbound getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryProviderInbound parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryProviderInbound(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.QueryProviderInbound getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy