com.exactpro.th2.read.db.grpc.QueryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-read-db Show documentation
Show all versions of grpc-read-db Show documentation
gRPC API for executing requests in read-db application
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: th2_grpc_read_db/read_db.proto
package com.exactpro.th2.read.db.grpc;
/**
* Protobuf type {@code th2.read_db.QueryRequest}
*/
public final class QueryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:th2.read_db.QueryRequest)
QueryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRequest.newBuilder() to construct.
private QueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.exactpro.th2.read.db.grpc.ReadDbOuterClass.internal_static_th2_read_db_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.exactpro.th2.read.db.grpc.ReadDbOuterClass.internal_static_th2_read_db_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.exactpro.th2.read.db.grpc.QueryRequest.class, com.exactpro.th2.read.db.grpc.QueryRequest.Builder.class);
}
private int bitField0_;
public static final int SOURCE_ID_FIELD_NUMBER = 1;
private com.exactpro.th2.read.db.grpc.SourceId sourceId_;
/**
* .th2.read_db.SourceId source_id = 1;
* @return Whether the sourceId field is set.
*/
@java.lang.Override
public boolean hasSourceId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .th2.read_db.SourceId source_id = 1;
* @return The sourceId.
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.SourceId getSourceId() {
return sourceId_ == null ? com.exactpro.th2.read.db.grpc.SourceId.getDefaultInstance() : sourceId_;
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.SourceIdOrBuilder getSourceIdOrBuilder() {
return sourceId_ == null ? com.exactpro.th2.read.db.grpc.SourceId.getDefaultInstance() : sourceId_;
}
public static final int QUERY_ID_FIELD_NUMBER = 2;
private com.exactpro.th2.read.db.grpc.QueryId queryId_;
/**
* .th2.read_db.QueryId query_id = 2;
* @return Whether the queryId field is set.
*/
@java.lang.Override
public boolean hasQueryId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .th2.read_db.QueryId query_id = 2;
* @return The queryId.
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryId getQueryId() {
return queryId_ == null ? com.exactpro.th2.read.db.grpc.QueryId.getDefaultInstance() : queryId_;
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryIdOrBuilder getQueryIdOrBuilder() {
return queryId_ == null ? com.exactpro.th2.read.db.grpc.QueryId.getDefaultInstance() : queryId_;
}
public static final int PARAMETERS_FIELD_NUMBER = 3;
private com.exactpro.th2.read.db.grpc.QueryParameters parameters_;
/**
* .th2.read_db.QueryParameters parameters = 3;
* @return Whether the parameters field is set.
*/
@java.lang.Override
public boolean hasParameters() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .th2.read_db.QueryParameters parameters = 3;
* @return The parameters.
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryParameters getParameters() {
return parameters_ == null ? com.exactpro.th2.read.db.grpc.QueryParameters.getDefaultInstance() : parameters_;
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryParametersOrBuilder getParametersOrBuilder() {
return parameters_ == null ? com.exactpro.th2.read.db.grpc.QueryParameters.getDefaultInstance() : parameters_;
}
public static final int ASSOCIATED_MESSAGE_TYPE_FIELD_NUMBER = 4;
private com.exactpro.th2.read.db.grpc.AssociatedMessageType associatedMessageType_;
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
* @return Whether the associatedMessageType field is set.
*/
@java.lang.Override
public boolean hasAssociatedMessageType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
* @return The associatedMessageType.
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.AssociatedMessageType getAssociatedMessageType() {
return associatedMessageType_ == null ? com.exactpro.th2.read.db.grpc.AssociatedMessageType.getDefaultInstance() : associatedMessageType_;
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
@java.lang.Override
public com.exactpro.th2.read.db.grpc.AssociatedMessageTypeOrBuilder getAssociatedMessageTypeOrBuilder() {
return associatedMessageType_ == null ? com.exactpro.th2.read.db.grpc.AssociatedMessageType.getDefaultInstance() : associatedMessageType_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSourceId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getQueryId());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getParameters());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getAssociatedMessageType());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSourceId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQueryId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getParameters());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAssociatedMessageType());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.exactpro.th2.read.db.grpc.QueryRequest)) {
return super.equals(obj);
}
com.exactpro.th2.read.db.grpc.QueryRequest other = (com.exactpro.th2.read.db.grpc.QueryRequest) obj;
if (hasSourceId() != other.hasSourceId()) return false;
if (hasSourceId()) {
if (!getSourceId()
.equals(other.getSourceId())) return false;
}
if (hasQueryId() != other.hasQueryId()) return false;
if (hasQueryId()) {
if (!getQueryId()
.equals(other.getQueryId())) return false;
}
if (hasParameters() != other.hasParameters()) return false;
if (hasParameters()) {
if (!getParameters()
.equals(other.getParameters())) return false;
}
if (hasAssociatedMessageType() != other.hasAssociatedMessageType()) return false;
if (hasAssociatedMessageType()) {
if (!getAssociatedMessageType()
.equals(other.getAssociatedMessageType())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSourceId()) {
hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceId().hashCode();
}
if (hasQueryId()) {
hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getQueryId().hashCode();
}
if (hasParameters()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParameters().hashCode();
}
if (hasAssociatedMessageType()) {
hash = (37 * hash) + ASSOCIATED_MESSAGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getAssociatedMessageType().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest 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 com.exactpro.th2.read.db.grpc.QueryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest 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 com.exactpro.th2.read.db.grpc.QueryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.exactpro.th2.read.db.grpc.QueryRequest 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(com.exactpro.th2.read.db.grpc.QueryRequest 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;
}
/**
* Protobuf type {@code th2.read_db.QueryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:th2.read_db.QueryRequest)
com.exactpro.th2.read.db.grpc.QueryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.exactpro.th2.read.db.grpc.ReadDbOuterClass.internal_static_th2_read_db_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.exactpro.th2.read.db.grpc.ReadDbOuterClass.internal_static_th2_read_db_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.exactpro.th2.read.db.grpc.QueryRequest.class, com.exactpro.th2.read.db.grpc.QueryRequest.Builder.class);
}
// Construct using com.exactpro.th2.read.db.grpc.QueryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSourceIdFieldBuilder();
getQueryIdFieldBuilder();
getParametersFieldBuilder();
getAssociatedMessageTypeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sourceId_ = null;
if (sourceIdBuilder_ != null) {
sourceIdBuilder_.dispose();
sourceIdBuilder_ = null;
}
queryId_ = null;
if (queryIdBuilder_ != null) {
queryIdBuilder_.dispose();
queryIdBuilder_ = null;
}
parameters_ = null;
if (parametersBuilder_ != null) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
}
associatedMessageType_ = null;
if (associatedMessageTypeBuilder_ != null) {
associatedMessageTypeBuilder_.dispose();
associatedMessageTypeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.exactpro.th2.read.db.grpc.ReadDbOuterClass.internal_static_th2_read_db_QueryRequest_descriptor;
}
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryRequest getDefaultInstanceForType() {
return com.exactpro.th2.read.db.grpc.QueryRequest.getDefaultInstance();
}
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryRequest build() {
com.exactpro.th2.read.db.grpc.QueryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryRequest buildPartial() {
com.exactpro.th2.read.db.grpc.QueryRequest result = new com.exactpro.th2.read.db.grpc.QueryRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.exactpro.th2.read.db.grpc.QueryRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sourceId_ = sourceIdBuilder_ == null
? sourceId_
: sourceIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.queryId_ = queryIdBuilder_ == null
? queryId_
: queryIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.parameters_ = parametersBuilder_ == null
? parameters_
: parametersBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.associatedMessageType_ = associatedMessageTypeBuilder_ == null
? associatedMessageType_
: associatedMessageTypeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.exactpro.th2.read.db.grpc.QueryRequest) {
return mergeFrom((com.exactpro.th2.read.db.grpc.QueryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.exactpro.th2.read.db.grpc.QueryRequest other) {
if (other == com.exactpro.th2.read.db.grpc.QueryRequest.getDefaultInstance()) return this;
if (other.hasSourceId()) {
mergeSourceId(other.getSourceId());
}
if (other.hasQueryId()) {
mergeQueryId(other.getQueryId());
}
if (other.hasParameters()) {
mergeParameters(other.getParameters());
}
if (other.hasAssociatedMessageType()) {
mergeAssociatedMessageType(other.getAssociatedMessageType());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSourceIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getQueryIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getAssociatedMessageTypeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.exactpro.th2.read.db.grpc.SourceId sourceId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.SourceId, com.exactpro.th2.read.db.grpc.SourceId.Builder, com.exactpro.th2.read.db.grpc.SourceIdOrBuilder> sourceIdBuilder_;
/**
* .th2.read_db.SourceId source_id = 1;
* @return Whether the sourceId field is set.
*/
public boolean hasSourceId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .th2.read_db.SourceId source_id = 1;
* @return The sourceId.
*/
public com.exactpro.th2.read.db.grpc.SourceId getSourceId() {
if (sourceIdBuilder_ == null) {
return sourceId_ == null ? com.exactpro.th2.read.db.grpc.SourceId.getDefaultInstance() : sourceId_;
} else {
return sourceIdBuilder_.getMessage();
}
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public Builder setSourceId(com.exactpro.th2.read.db.grpc.SourceId value) {
if (sourceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sourceId_ = value;
} else {
sourceIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public Builder setSourceId(
com.exactpro.th2.read.db.grpc.SourceId.Builder builderForValue) {
if (sourceIdBuilder_ == null) {
sourceId_ = builderForValue.build();
} else {
sourceIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public Builder mergeSourceId(com.exactpro.th2.read.db.grpc.SourceId value) {
if (sourceIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
sourceId_ != null &&
sourceId_ != com.exactpro.th2.read.db.grpc.SourceId.getDefaultInstance()) {
getSourceIdBuilder().mergeFrom(value);
} else {
sourceId_ = value;
}
} else {
sourceIdBuilder_.mergeFrom(value);
}
if (sourceId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public Builder clearSourceId() {
bitField0_ = (bitField0_ & ~0x00000001);
sourceId_ = null;
if (sourceIdBuilder_ != null) {
sourceIdBuilder_.dispose();
sourceIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public com.exactpro.th2.read.db.grpc.SourceId.Builder getSourceIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSourceIdFieldBuilder().getBuilder();
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
public com.exactpro.th2.read.db.grpc.SourceIdOrBuilder getSourceIdOrBuilder() {
if (sourceIdBuilder_ != null) {
return sourceIdBuilder_.getMessageOrBuilder();
} else {
return sourceId_ == null ?
com.exactpro.th2.read.db.grpc.SourceId.getDefaultInstance() : sourceId_;
}
}
/**
* .th2.read_db.SourceId source_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.SourceId, com.exactpro.th2.read.db.grpc.SourceId.Builder, com.exactpro.th2.read.db.grpc.SourceIdOrBuilder>
getSourceIdFieldBuilder() {
if (sourceIdBuilder_ == null) {
sourceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.SourceId, com.exactpro.th2.read.db.grpc.SourceId.Builder, com.exactpro.th2.read.db.grpc.SourceIdOrBuilder>(
getSourceId(),
getParentForChildren(),
isClean());
sourceId_ = null;
}
return sourceIdBuilder_;
}
private com.exactpro.th2.read.db.grpc.QueryId queryId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryId, com.exactpro.th2.read.db.grpc.QueryId.Builder, com.exactpro.th2.read.db.grpc.QueryIdOrBuilder> queryIdBuilder_;
/**
* .th2.read_db.QueryId query_id = 2;
* @return Whether the queryId field is set.
*/
public boolean hasQueryId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .th2.read_db.QueryId query_id = 2;
* @return The queryId.
*/
public com.exactpro.th2.read.db.grpc.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
return queryId_ == null ? com.exactpro.th2.read.db.grpc.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public Builder setQueryId(com.exactpro.th2.read.db.grpc.QueryId value) {
if (queryIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryId_ = value;
} else {
queryIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public Builder setQueryId(
com.exactpro.th2.read.db.grpc.QueryId.Builder builderForValue) {
if (queryIdBuilder_ == null) {
queryId_ = builderForValue.build();
} else {
queryIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public Builder mergeQueryId(com.exactpro.th2.read.db.grpc.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
queryId_ != null &&
queryId_ != com.exactpro.th2.read.db.grpc.QueryId.getDefaultInstance()) {
getQueryIdBuilder().mergeFrom(value);
} else {
queryId_ = value;
}
} else {
queryIdBuilder_.mergeFrom(value);
}
if (queryId_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public Builder clearQueryId() {
bitField0_ = (bitField0_ & ~0x00000002);
queryId_ = null;
if (queryIdBuilder_ != null) {
queryIdBuilder_.dispose();
queryIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public com.exactpro.th2.read.db.grpc.QueryId.Builder getQueryIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getQueryIdFieldBuilder().getBuilder();
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
public com.exactpro.th2.read.db.grpc.QueryIdOrBuilder getQueryIdOrBuilder() {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
return queryId_ == null ?
com.exactpro.th2.read.db.grpc.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* .th2.read_db.QueryId query_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryId, com.exactpro.th2.read.db.grpc.QueryId.Builder, com.exactpro.th2.read.db.grpc.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryId, com.exactpro.th2.read.db.grpc.QueryId.Builder, com.exactpro.th2.read.db.grpc.QueryIdOrBuilder>(
getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
}
return queryIdBuilder_;
}
private com.exactpro.th2.read.db.grpc.QueryParameters parameters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryParameters, com.exactpro.th2.read.db.grpc.QueryParameters.Builder, com.exactpro.th2.read.db.grpc.QueryParametersOrBuilder> parametersBuilder_;
/**
* .th2.read_db.QueryParameters parameters = 3;
* @return Whether the parameters field is set.
*/
public boolean hasParameters() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .th2.read_db.QueryParameters parameters = 3;
* @return The parameters.
*/
public com.exactpro.th2.read.db.grpc.QueryParameters getParameters() {
if (parametersBuilder_ == null) {
return parameters_ == null ? com.exactpro.th2.read.db.grpc.QueryParameters.getDefaultInstance() : parameters_;
} else {
return parametersBuilder_.getMessage();
}
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public Builder setParameters(com.exactpro.th2.read.db.grpc.QueryParameters value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameters_ = value;
} else {
parametersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public Builder setParameters(
com.exactpro.th2.read.db.grpc.QueryParameters.Builder builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public Builder mergeParameters(com.exactpro.th2.read.db.grpc.QueryParameters value) {
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
parameters_ != null &&
parameters_ != com.exactpro.th2.read.db.grpc.QueryParameters.getDefaultInstance()) {
getParametersBuilder().mergeFrom(value);
} else {
parameters_ = value;
}
} else {
parametersBuilder_.mergeFrom(value);
}
if (parameters_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public Builder clearParameters() {
bitField0_ = (bitField0_ & ~0x00000004);
parameters_ = null;
if (parametersBuilder_ != null) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
}
onChanged();
return this;
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public com.exactpro.th2.read.db.grpc.QueryParameters.Builder getParametersBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getParametersFieldBuilder().getBuilder();
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
public com.exactpro.th2.read.db.grpc.QueryParametersOrBuilder getParametersOrBuilder() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilder();
} else {
return parameters_ == null ?
com.exactpro.th2.read.db.grpc.QueryParameters.getDefaultInstance() : parameters_;
}
}
/**
* .th2.read_db.QueryParameters parameters = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryParameters, com.exactpro.th2.read.db.grpc.QueryParameters.Builder, com.exactpro.th2.read.db.grpc.QueryParametersOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.QueryParameters, com.exactpro.th2.read.db.grpc.QueryParameters.Builder, com.exactpro.th2.read.db.grpc.QueryParametersOrBuilder>(
getParameters(),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
private com.exactpro.th2.read.db.grpc.AssociatedMessageType associatedMessageType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.AssociatedMessageType, com.exactpro.th2.read.db.grpc.AssociatedMessageType.Builder, com.exactpro.th2.read.db.grpc.AssociatedMessageTypeOrBuilder> associatedMessageTypeBuilder_;
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
* @return Whether the associatedMessageType field is set.
*/
public boolean hasAssociatedMessageType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
* @return The associatedMessageType.
*/
public com.exactpro.th2.read.db.grpc.AssociatedMessageType getAssociatedMessageType() {
if (associatedMessageTypeBuilder_ == null) {
return associatedMessageType_ == null ? com.exactpro.th2.read.db.grpc.AssociatedMessageType.getDefaultInstance() : associatedMessageType_;
} else {
return associatedMessageTypeBuilder_.getMessage();
}
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public Builder setAssociatedMessageType(com.exactpro.th2.read.db.grpc.AssociatedMessageType value) {
if (associatedMessageTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
associatedMessageType_ = value;
} else {
associatedMessageTypeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public Builder setAssociatedMessageType(
com.exactpro.th2.read.db.grpc.AssociatedMessageType.Builder builderForValue) {
if (associatedMessageTypeBuilder_ == null) {
associatedMessageType_ = builderForValue.build();
} else {
associatedMessageTypeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public Builder mergeAssociatedMessageType(com.exactpro.th2.read.db.grpc.AssociatedMessageType value) {
if (associatedMessageTypeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
associatedMessageType_ != null &&
associatedMessageType_ != com.exactpro.th2.read.db.grpc.AssociatedMessageType.getDefaultInstance()) {
getAssociatedMessageTypeBuilder().mergeFrom(value);
} else {
associatedMessageType_ = value;
}
} else {
associatedMessageTypeBuilder_.mergeFrom(value);
}
if (associatedMessageType_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public Builder clearAssociatedMessageType() {
bitField0_ = (bitField0_ & ~0x00000008);
associatedMessageType_ = null;
if (associatedMessageTypeBuilder_ != null) {
associatedMessageTypeBuilder_.dispose();
associatedMessageTypeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public com.exactpro.th2.read.db.grpc.AssociatedMessageType.Builder getAssociatedMessageTypeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAssociatedMessageTypeFieldBuilder().getBuilder();
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
public com.exactpro.th2.read.db.grpc.AssociatedMessageTypeOrBuilder getAssociatedMessageTypeOrBuilder() {
if (associatedMessageTypeBuilder_ != null) {
return associatedMessageTypeBuilder_.getMessageOrBuilder();
} else {
return associatedMessageType_ == null ?
com.exactpro.th2.read.db.grpc.AssociatedMessageType.getDefaultInstance() : associatedMessageType_;
}
}
/**
* .th2.read_db.AssociatedMessageType associated_message_type = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.AssociatedMessageType, com.exactpro.th2.read.db.grpc.AssociatedMessageType.Builder, com.exactpro.th2.read.db.grpc.AssociatedMessageTypeOrBuilder>
getAssociatedMessageTypeFieldBuilder() {
if (associatedMessageTypeBuilder_ == null) {
associatedMessageTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.exactpro.th2.read.db.grpc.AssociatedMessageType, com.exactpro.th2.read.db.grpc.AssociatedMessageType.Builder, com.exactpro.th2.read.db.grpc.AssociatedMessageTypeOrBuilder>(
getAssociatedMessageType(),
getParentForChildren(),
isClean());
associatedMessageType_ = null;
}
return associatedMessageTypeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:th2.read_db.QueryRequest)
}
// @@protoc_insertion_point(class_scope:th2.read_db.QueryRequest)
private static final com.exactpro.th2.read.db.grpc.QueryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.exactpro.th2.read.db.grpc.QueryRequest();
}
public static com.exactpro.th2.read.db.grpc.QueryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.exactpro.th2.read.db.grpc.QueryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}