main.java.com.streamlayer.analytics.query.v1.QueryExecRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/analytics/v1/query/query.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.query.v1;
/**
* Protobuf type {@code streamlayer.analytics.v1.query.QueryExecRequest}
*/
public final class QueryExecRequest extends
com.google.protobuf.GeneratedMessageLite<
QueryExecRequest, QueryExecRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.analytics.v1.query.QueryExecRequest)
QueryExecRequestOrBuilder {
private QueryExecRequest() {
queryName_ = "";
query_ = "";
}
private int bitField0_;
public static final int QUERY_NAME_FIELD_NUMBER = 1;
private java.lang.String queryName_;
/**
* string query_name = 1 [json_name = "queryName"];
* @return The queryName.
*/
@java.lang.Override
public java.lang.String getQueryName() {
return queryName_;
}
/**
* string query_name = 1 [json_name = "queryName"];
* @return The bytes for queryName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(queryName_);
}
/**
* string query_name = 1 [json_name = "queryName"];
* @param value The queryName to set.
*/
private void setQueryName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
queryName_ = value;
}
/**
* string query_name = 1 [json_name = "queryName"];
*/
private void clearQueryName() {
queryName_ = getDefaultInstance().getQueryName();
}
/**
* string query_name = 1 [json_name = "queryName"];
* @param value The bytes for queryName to set.
*/
private void setQueryNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
queryName_ = value.toStringUtf8();
}
public static final int PARAMS_FIELD_NUMBER = 2;
private com.streamlayer.analytics.query.v1.QueryExecParams params_;
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
@java.lang.Override
public boolean hasParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
@java.lang.Override
public com.streamlayer.analytics.query.v1.QueryExecParams getParams() {
return params_ == null ? com.streamlayer.analytics.query.v1.QueryExecParams.getDefaultInstance() : params_;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
private void setParams(com.streamlayer.analytics.query.v1.QueryExecParams value) {
value.getClass();
params_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeParams(com.streamlayer.analytics.query.v1.QueryExecParams value) {
value.getClass();
if (params_ != null &&
params_ != com.streamlayer.analytics.query.v1.QueryExecParams.getDefaultInstance()) {
params_ =
com.streamlayer.analytics.query.v1.QueryExecParams.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
private void clearParams() { params_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int QUERY_FIELD_NUMBER = 3;
private java.lang.String query_;
/**
* string query = 3 [json_name = "query"];
* @return The query.
*/
@java.lang.Override
public java.lang.String getQuery() {
return query_;
}
/**
* string query = 3 [json_name = "query"];
* @return The bytes for query.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(query_);
}
/**
* string query = 3 [json_name = "query"];
* @param value The query to set.
*/
private void setQuery(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
query_ = value;
}
/**
* string query = 3 [json_name = "query"];
*/
private void clearQuery() {
query_ = getDefaultInstance().getQuery();
}
/**
* string query = 3 [json_name = "query"];
* @param value The bytes for query to set.
*/
private void setQueryBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
query_ = value.toStringUtf8();
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.analytics.query.v1.QueryExecRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.analytics.v1.query.QueryExecRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.analytics.query.v1.QueryExecRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.analytics.v1.query.QueryExecRequest)
com.streamlayer.analytics.query.v1.QueryExecRequestOrBuilder {
// Construct using com.streamlayer.analytics.query.v1.QueryExecRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string query_name = 1 [json_name = "queryName"];
* @return The queryName.
*/
@java.lang.Override
public java.lang.String getQueryName() {
return instance.getQueryName();
}
/**
* string query_name = 1 [json_name = "queryName"];
* @return The bytes for queryName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryNameBytes() {
return instance.getQueryNameBytes();
}
/**
* string query_name = 1 [json_name = "queryName"];
* @param value The queryName to set.
* @return This builder for chaining.
*/
public Builder setQueryName(
java.lang.String value) {
copyOnWrite();
instance.setQueryName(value);
return this;
}
/**
* string query_name = 1 [json_name = "queryName"];
* @return This builder for chaining.
*/
public Builder clearQueryName() {
copyOnWrite();
instance.clearQueryName();
return this;
}
/**
* string query_name = 1 [json_name = "queryName"];
* @param value The bytes for queryName to set.
* @return This builder for chaining.
*/
public Builder setQueryNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setQueryNameBytes(value);
return this;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
@java.lang.Override
public boolean hasParams() {
return instance.hasParams();
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
@java.lang.Override
public com.streamlayer.analytics.query.v1.QueryExecParams getParams() {
return instance.getParams();
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
public Builder setParams(com.streamlayer.analytics.query.v1.QueryExecParams value) {
copyOnWrite();
instance.setParams(value);
return this;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
public Builder setParams(
com.streamlayer.analytics.query.v1.QueryExecParams.Builder builderForValue) {
copyOnWrite();
instance.setParams(builderForValue.build());
return this;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
public Builder mergeParams(com.streamlayer.analytics.query.v1.QueryExecParams value) {
copyOnWrite();
instance.mergeParams(value);
return this;
}
/**
* .streamlayer.analytics.v1.query.QueryExecParams params = 2 [json_name = "params"];
*/
public Builder clearParams() { copyOnWrite();
instance.clearParams();
return this;
}
/**
* string query = 3 [json_name = "query"];
* @return The query.
*/
@java.lang.Override
public java.lang.String getQuery() {
return instance.getQuery();
}
/**
* string query = 3 [json_name = "query"];
* @return The bytes for query.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryBytes() {
return instance.getQueryBytes();
}
/**
* string query = 3 [json_name = "query"];
* @param value The query to set.
* @return This builder for chaining.
*/
public Builder setQuery(
java.lang.String value) {
copyOnWrite();
instance.setQuery(value);
return this;
}
/**
* string query = 3 [json_name = "query"];
* @return This builder for chaining.
*/
public Builder clearQuery() {
copyOnWrite();
instance.clearQuery();
return this;
}
/**
* string query = 3 [json_name = "query"];
* @param value The bytes for query to set.
* @return This builder for chaining.
*/
public Builder setQueryBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setQueryBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.analytics.v1.query.QueryExecRequest)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.analytics.query.v1.QueryExecRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"queryName_",
"params_",
"query_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u1009" +
"\u0000\u0003\u0208";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.analytics.query.v1.QueryExecRequest.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.analytics.v1.query.QueryExecRequest)
private static final com.streamlayer.analytics.query.v1.QueryExecRequest DEFAULT_INSTANCE;
static {
QueryExecRequest defaultInstance = new QueryExecRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
QueryExecRequest.class, defaultInstance);
}
public static com.streamlayer.analytics.query.v1.QueryExecRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}