Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: draft/protos/ydb_federated_query.proto
package tech.ydb.proto.draft.federated.query;
public final class YdbFederatedQuery {
private YdbFederatedQuery() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code FederatedQuery.ExecuteMode}
*/
public enum ExecuteMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXECUTE_MODE_UNSPECIFIED = 0;
*/
EXECUTE_MODE_UNSPECIFIED(0),
/**
*
* Save a query without changing its state
*
*
* SAVE = 1;
*/
SAVE(1),
/**
*
* Parse the query
*
*
* PARSE = 2;
*/
PARSE(2),
/**
*
* Parse and compile the query
*
*
* COMPILE = 3;
*/
COMPILE(3),
/**
*
* Parse, compile and validate the query
*
*
* VALIDATE = 4;
*/
VALIDATE(4),
/**
*
* High-level query plan that specifies only physical operations and non-temporary table names
*
*
* EXPLAIN = 5;
*/
EXPLAIN(5),
/**
*
* Do all the previous + execution of the query
*
*
* RUN = 6;
*/
RUN(6),
UNRECOGNIZED(-1),
;
/**
* EXECUTE_MODE_UNSPECIFIED = 0;
*/
public static final int EXECUTE_MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Save a query without changing its state
*
*
* SAVE = 1;
*/
public static final int SAVE_VALUE = 1;
/**
*
* Parse the query
*
*
* PARSE = 2;
*/
public static final int PARSE_VALUE = 2;
/**
*
* Parse and compile the query
*
*
* COMPILE = 3;
*/
public static final int COMPILE_VALUE = 3;
/**
*
* Parse, compile and validate the query
*
*
* VALIDATE = 4;
*/
public static final int VALIDATE_VALUE = 4;
/**
*
* High-level query plan that specifies only physical operations and non-temporary table names
*
*
* EXPLAIN = 5;
*/
public static final int EXPLAIN_VALUE = 5;
/**
*
* Do all the previous + execution of the query
*
*
* RUN = 6;
*/
public static final int RUN_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecuteMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ExecuteMode forNumber(int value) {
switch (value) {
case 0: return EXECUTE_MODE_UNSPECIFIED;
case 1: return SAVE;
case 2: return PARSE;
case 3: return COMPILE;
case 4: return VALIDATE;
case 5: return EXPLAIN;
case 6: return RUN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecuteMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecuteMode findValueByNumber(int number) {
return ExecuteMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.getDescriptor().getEnumTypes().get(0);
}
private static final ExecuteMode[] VALUES = values();
public static ExecuteMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ExecuteMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.ExecuteMode)
}
/**
* Protobuf enum {@code FederatedQuery.QueryAction}
*/
public enum QueryAction
implements com.google.protobuf.ProtocolMessageEnum {
/**
* QUERY_ACTION_UNSPECIFIED = 0;
*/
QUERY_ACTION_UNSPECIFIED(0),
/**
*
* Pause the query, with the possibility of its quick resumption
*
*
* PAUSE = 1;
*/
PAUSE(1),
/**
*
* Similar to PAUSE, only suspends the query allowing it to pause in checkpoint. Can work for a long time
*
* Resumes the execution of the query. Works only for PAUSE queries
*
*
* RESUME = 5;
*/
RESUME(5),
UNRECOGNIZED(-1),
;
/**
* QUERY_ACTION_UNSPECIFIED = 0;
*/
public static final int QUERY_ACTION_UNSPECIFIED_VALUE = 0;
/**
*
* Pause the query, with the possibility of its quick resumption
*
*
* PAUSE = 1;
*/
public static final int PAUSE_VALUE = 1;
/**
*
* Similar to PAUSE, only suspends the query allowing it to pause in checkpoint. Can work for a long time
*
*
* PAUSE_GRACEFULLY = 2;
*/
public static final int PAUSE_GRACEFULLY_VALUE = 2;
/**
*
* Stop the query
*
*
* ABORT = 3;
*/
public static final int ABORT_VALUE = 3;
/**
*
* Similar to ABORT, only stops the query in checkpoint
*
*
* ABORT_GRACEFULLY = 4;
*/
public static final int ABORT_GRACEFULLY_VALUE = 4;
/**
*
* Resumes the execution of the query. Works only for PAUSE queries
*
*
* RESUME = 5;
*/
public static final int RESUME_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueryAction valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static QueryAction forNumber(int value) {
switch (value) {
case 0: return QUERY_ACTION_UNSPECIFIED;
case 1: return PAUSE;
case 2: return PAUSE_GRACEFULLY;
case 3: return ABORT;
case 4: return ABORT_GRACEFULLY;
case 5: return RESUME;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
QueryAction> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public QueryAction findValueByNumber(int number) {
return QueryAction.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.getDescriptor().getEnumTypes().get(1);
}
private static final QueryAction[] VALUES = values();
public static QueryAction valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private QueryAction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.QueryAction)
}
/**
* Protobuf enum {@code FederatedQuery.StateLoadMode}
*/
public enum StateLoadMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_LOAD_MODE_UNSPECIFIED = 0;
*/
STATE_LOAD_MODE_UNSPECIFIED(0),
/**
*
* Start the query with an empty state
*
*
* EMPTY = 1;
*/
EMPTY(1),
/**
*
* Start the query with the state that is saved in the last checkpoint
*
*
* FROM_LAST_CHECKPOINT = 2;
*/
FROM_LAST_CHECKPOINT(2),
UNRECOGNIZED(-1),
;
/**
* STATE_LOAD_MODE_UNSPECIFIED = 0;
*/
public static final int STATE_LOAD_MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Start the query with an empty state
*
*
* EMPTY = 1;
*/
public static final int EMPTY_VALUE = 1;
/**
*
* Start the query with the state that is saved in the last checkpoint
*
*
* FROM_LAST_CHECKPOINT = 2;
*/
public static final int FROM_LAST_CHECKPOINT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StateLoadMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static StateLoadMode forNumber(int value) {
switch (value) {
case 0: return STATE_LOAD_MODE_UNSPECIFIED;
case 1: return EMPTY;
case 2: return FROM_LAST_CHECKPOINT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StateLoadMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StateLoadMode findValueByNumber(int number) {
return StateLoadMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.getDescriptor().getEnumTypes().get(2);
}
private static final StateLoadMode[] VALUES = values();
public static StateLoadMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StateLoadMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.StateLoadMode)
}
/**
* Protobuf enum {@code FederatedQuery.AutomaticType}
*/
public enum AutomaticType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* AUTOMATIC_TYPE_UNSPECIFIED = 0;
*/
AUTOMATIC_TYPE_UNSPECIFIED(0),
/**
* AUTOMATIC = 1;
*/
AUTOMATIC(1),
/**
* NOT_AUTOMATIC = 2;
*/
NOT_AUTOMATIC(2),
UNRECOGNIZED(-1),
;
/**
* AUTOMATIC_TYPE_UNSPECIFIED = 0;
*/
public static final int AUTOMATIC_TYPE_UNSPECIFIED_VALUE = 0;
/**
* AUTOMATIC = 1;
*/
public static final int AUTOMATIC_VALUE = 1;
/**
* NOT_AUTOMATIC = 2;
*/
public static final int NOT_AUTOMATIC_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AutomaticType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AutomaticType forNumber(int value) {
switch (value) {
case 0: return AUTOMATIC_TYPE_UNSPECIFIED;
case 1: return AUTOMATIC;
case 2: return NOT_AUTOMATIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AutomaticType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AutomaticType findValueByNumber(int number) {
return AutomaticType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.getDescriptor().getEnumTypes().get(3);
}
private static final AutomaticType[] VALUES = values();
public static AutomaticType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AutomaticType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.AutomaticType)
}
public interface AclOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.Acl)
com.google.protobuf.MessageOrBuilder {
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The enum numeric value on the wire for visibility.
*/
int getVisibilityValue();
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The visibility.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility();
}
/**
* Protobuf type {@code FederatedQuery.Acl}
*/
public static final class Acl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.Acl)
AclOrBuilder {
private static final long serialVersionUID = 0L;
// Use Acl.newBuilder() to construct.
private Acl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Acl() {
visibility_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Acl();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Acl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Acl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Builder.class);
}
/**
* Protobuf enum {@code FederatedQuery.Acl.Visibility}
*/
public enum Visibility
implements com.google.protobuf.ProtocolMessageEnum {
/**
* VISIBILITY_UNSPECIFIED = 0;
*/
VISIBILITY_UNSPECIFIED(0),
/**
*
* Visibility only for the creator of the entity
*
*
* PRIVATE = 1;
*/
PRIVATE(1),
/**
*
* Visibility for subjects within scope
*
*
* SCOPE = 2;
*/
SCOPE(2),
UNRECOGNIZED(-1),
;
/**
* VISIBILITY_UNSPECIFIED = 0;
*/
public static final int VISIBILITY_UNSPECIFIED_VALUE = 0;
/**
*
* Visibility only for the creator of the entity
*
*
* PRIVATE = 1;
*/
public static final int PRIVATE_VALUE = 1;
/**
*
* Visibility for subjects within scope
*
*
* SCOPE = 2;
*/
public static final int SCOPE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Visibility valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Visibility forNumber(int value) {
switch (value) {
case 0: return VISIBILITY_UNSPECIFIED;
case 1: return PRIVATE;
case 2: return SCOPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Visibility> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Visibility findValueByNumber(int number) {
return Visibility.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.getDescriptor().getEnumTypes().get(0);
}
private static final Visibility[] VALUES = values();
public static Visibility valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Visibility(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.Acl.Visibility)
}
public static final int VISIBILITY_FIELD_NUMBER = 1;
private int visibility_ = 0;
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The enum numeric value on the wire for visibility.
*/
@java.lang.Override public int getVisibilityValue() {
return visibility_;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The visibility.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.forNumber(visibility_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.UNRECOGNIZED : result;
}
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 (visibility_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) {
output.writeEnum(1, visibility_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (visibility_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, visibility_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl) obj;
if (visibility_ != other.visibility_) 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();
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + visibility_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl 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 FederatedQuery.Acl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.Acl)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.AclOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Acl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Acl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
visibility_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Acl_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.visibility_ = visibility_;
}
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.getDefaultInstance()) return this;
if (other.visibility_ != 0) {
setVisibilityValue(other.getVisibilityValue());
}
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 8: {
visibility_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
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 int visibility_ = 0;
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The enum numeric value on the wire for visibility.
*/
@java.lang.Override public int getVisibilityValue() {
return visibility_;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @param value The enum numeric value on the wire for visibility to set.
* @return This builder for chaining.
*/
public Builder setVisibilityValue(int value) {
visibility_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return The visibility.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.forNumber(visibility_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.UNRECOGNIZED : result;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @param value The visibility to set.
* @return This builder for chaining.
*/
public Builder setVisibility(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
visibility_ = value.getNumber();
onChanged();
return this;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 1;
* @return This builder for chaining.
*/
public Builder clearVisibility() {
bitField0_ = (bitField0_ & ~0x00000001);
visibility_ = 0;
onChanged();
return this;
}
@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:FederatedQuery.Acl)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.Acl)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Acl 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitsOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.Limits)
com.google.protobuf.MessageOrBuilder {
/**
*
* 0.01 vcpu per second
*
*
* int64 vcpu_rate_limit = 1 [(.Ydb.value) = ">= 0"];
* @return The vcpuRateLimit.
*/
long getVcpuRateLimit();
/**
*
* Bytes per second
*
*
* int64 flow_rate_limit = 2 [(.Ydb.value) = ">= 0"];
* @return The flowRateLimit.
*/
long getFlowRateLimit();
/**
*
* Milliseconds per second
*
*
* int64 vcpu_time_limit = 3 [(.Ydb.value) = ">= 0"];
* @return The vcpuTimeLimit.
*/
long getVcpuTimeLimit();
/**
*
* Used only for analytics queries
*
*
* int64 max_result_size = 4 [(.Ydb.value) = ">= 0"];
* @return The maxResultSize.
*/
long getMaxResultSize();
/**
*
* Count
*
*
* int64 max_result_rows = 5 [(.Ydb.value) = ">= 0"];
* @return The maxResultRows.
*/
long getMaxResultRows();
/**
*
* Common limits
*
*
* int64 memory_limit = 6 [(.Ydb.value) = ">= 0"];
* @return The memoryLimit.
*/
long getMemoryLimit();
/**
* .google.protobuf.Duration result_ttl = 7;
* @return Whether the resultTtl field is set.
*/
boolean hasResultTtl();
/**
* .google.protobuf.Duration result_ttl = 7;
* @return The resultTtl.
*/
com.google.protobuf.Duration getResultTtl();
/**
* .google.protobuf.Duration result_ttl = 7;
*/
com.google.protobuf.DurationOrBuilder getResultTtlOrBuilder();
/**
* .google.protobuf.Duration execution_timeout = 8;
* @return Whether the executionTimeout field is set.
*/
boolean hasExecutionTimeout();
/**
* .google.protobuf.Duration execution_timeout = 8;
* @return The executionTimeout.
*/
com.google.protobuf.Duration getExecutionTimeout();
/**
* .google.protobuf.Duration execution_timeout = 8;
*/
com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder();
/**
* .google.protobuf.Timestamp execution_deadline = 9;
* @return Whether the executionDeadline field is set.
*/
boolean hasExecutionDeadline();
/**
* .google.protobuf.Timestamp execution_deadline = 9;
* @return The executionDeadline.
*/
com.google.protobuf.Timestamp getExecutionDeadline();
/**
* .google.protobuf.Timestamp execution_deadline = 9;
*/
com.google.protobuf.TimestampOrBuilder getExecutionDeadlineOrBuilder();
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.TimeoutCase getTimeoutCase();
}
/**
* Protobuf type {@code FederatedQuery.Limits}
*/
public static final class Limits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.Limits)
LimitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Limits.newBuilder() to construct.
private Limits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Limits() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Limits();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Limits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Limits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.Builder.class);
}
private int bitField0_;
private int timeoutCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object timeout_;
public enum TimeoutCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
EXECUTION_TIMEOUT(8),
EXECUTION_DEADLINE(9),
TIMEOUT_NOT_SET(0);
private final int value;
private TimeoutCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TimeoutCase valueOf(int value) {
return forNumber(value);
}
public static TimeoutCase forNumber(int value) {
switch (value) {
case 8: return EXECUTION_TIMEOUT;
case 9: return EXECUTION_DEADLINE;
case 0: return TIMEOUT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TimeoutCase
getTimeoutCase() {
return TimeoutCase.forNumber(
timeoutCase_);
}
public static final int VCPU_RATE_LIMIT_FIELD_NUMBER = 1;
private long vcpuRateLimit_ = 0L;
/**
*
* 0.01 vcpu per second
*
*
* int64 vcpu_rate_limit = 1 [(.Ydb.value) = ">= 0"];
* @return The vcpuRateLimit.
*/
@java.lang.Override
public long getVcpuRateLimit() {
return vcpuRateLimit_;
}
public static final int FLOW_RATE_LIMIT_FIELD_NUMBER = 2;
private long flowRateLimit_ = 0L;
/**
*
* Bytes per second
*
*
* int64 flow_rate_limit = 2 [(.Ydb.value) = ">= 0"];
* @return The flowRateLimit.
*/
@java.lang.Override
public long getFlowRateLimit() {
return flowRateLimit_;
}
public static final int VCPU_TIME_LIMIT_FIELD_NUMBER = 3;
private long vcpuTimeLimit_ = 0L;
/**
*
* Milliseconds per second
*
*
* int64 vcpu_time_limit = 3 [(.Ydb.value) = ">= 0"];
* @return The vcpuTimeLimit.
*/
@java.lang.Override
public long getVcpuTimeLimit() {
return vcpuTimeLimit_;
}
public static final int MAX_RESULT_SIZE_FIELD_NUMBER = 4;
private long maxResultSize_ = 0L;
/**
*
* Used only for analytics queries
*
*
* int64 max_result_size = 4 [(.Ydb.value) = ">= 0"];
* @return The maxResultSize.
*/
@java.lang.Override
public long getMaxResultSize() {
return maxResultSize_;
}
public static final int MAX_RESULT_ROWS_FIELD_NUMBER = 5;
private long maxResultRows_ = 0L;
/**
*
* Count
*
*
* int64 max_result_rows = 5 [(.Ydb.value) = ">= 0"];
* @return The maxResultRows.
*/
@java.lang.Override
public long getMaxResultRows() {
return maxResultRows_;
}
public static final int MEMORY_LIMIT_FIELD_NUMBER = 6;
private long memoryLimit_ = 0L;
/**
*
* Common limits
*
*
* int64 memory_limit = 6 [(.Ydb.value) = ">= 0"];
* @return The memoryLimit.
*/
@java.lang.Override
public long getMemoryLimit() {
return memoryLimit_;
}
public static final int RESULT_TTL_FIELD_NUMBER = 7;
private com.google.protobuf.Duration resultTtl_;
/**
* .google.protobuf.Duration result_ttl = 7;
* @return Whether the resultTtl field is set.
*/
@java.lang.Override
public boolean hasResultTtl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Duration result_ttl = 7;
* @return The resultTtl.
*/
@java.lang.Override
public com.google.protobuf.Duration getResultTtl() {
return resultTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultTtl_;
}
/**
* .google.protobuf.Duration result_ttl = 7;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getResultTtlOrBuilder() {
return resultTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultTtl_;
}
public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 8;
/**
* .google.protobuf.Duration execution_timeout = 8;
* @return Whether the executionTimeout field is set.
*/
@java.lang.Override
public boolean hasExecutionTimeout() {
return timeoutCase_ == 8;
}
/**
* .google.protobuf.Duration execution_timeout = 8;
* @return The executionTimeout.
*/
@java.lang.Override
public com.google.protobuf.Duration getExecutionTimeout() {
if (timeoutCase_ == 8) {
return (com.google.protobuf.Duration) timeout_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
/**
* .google.protobuf.Duration execution_timeout = 8;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
if (timeoutCase_ == 8) {
return (com.google.protobuf.Duration) timeout_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
public static final int EXECUTION_DEADLINE_FIELD_NUMBER = 9;
/**
* .google.protobuf.Timestamp execution_deadline = 9;
* @return Whether the executionDeadline field is set.
*/
@java.lang.Override
public boolean hasExecutionDeadline() {
return timeoutCase_ == 9;
}
/**
* .google.protobuf.Timestamp execution_deadline = 9;
* @return The executionDeadline.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getExecutionDeadline() {
if (timeoutCase_ == 9) {
return (com.google.protobuf.Timestamp) timeout_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
/**
* .google.protobuf.Timestamp execution_deadline = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExecutionDeadlineOrBuilder() {
if (timeoutCase_ == 9) {
return (com.google.protobuf.Timestamp) timeout_;
}
return com.google.protobuf.Timestamp.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 (vcpuRateLimit_ != 0L) {
output.writeInt64(1, vcpuRateLimit_);
}
if (flowRateLimit_ != 0L) {
output.writeInt64(2, flowRateLimit_);
}
if (vcpuTimeLimit_ != 0L) {
output.writeInt64(3, vcpuTimeLimit_);
}
if (maxResultSize_ != 0L) {
output.writeInt64(4, maxResultSize_);
}
if (maxResultRows_ != 0L) {
output.writeInt64(5, maxResultRows_);
}
if (memoryLimit_ != 0L) {
output.writeInt64(6, memoryLimit_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getResultTtl());
}
if (timeoutCase_ == 8) {
output.writeMessage(8, (com.google.protobuf.Duration) timeout_);
}
if (timeoutCase_ == 9) {
output.writeMessage(9, (com.google.protobuf.Timestamp) timeout_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (vcpuRateLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, vcpuRateLimit_);
}
if (flowRateLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, flowRateLimit_);
}
if (vcpuTimeLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, vcpuTimeLimit_);
}
if (maxResultSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, maxResultSize_);
}
if (maxResultRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, maxResultRows_);
}
if (memoryLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, memoryLimit_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getResultTtl());
}
if (timeoutCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.protobuf.Duration) timeout_);
}
if (timeoutCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.protobuf.Timestamp) timeout_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits) obj;
if (getVcpuRateLimit()
!= other.getVcpuRateLimit()) return false;
if (getFlowRateLimit()
!= other.getFlowRateLimit()) return false;
if (getVcpuTimeLimit()
!= other.getVcpuTimeLimit()) return false;
if (getMaxResultSize()
!= other.getMaxResultSize()) return false;
if (getMaxResultRows()
!= other.getMaxResultRows()) return false;
if (getMemoryLimit()
!= other.getMemoryLimit()) return false;
if (hasResultTtl() != other.hasResultTtl()) return false;
if (hasResultTtl()) {
if (!getResultTtl()
.equals(other.getResultTtl())) return false;
}
if (!getTimeoutCase().equals(other.getTimeoutCase())) return false;
switch (timeoutCase_) {
case 8:
if (!getExecutionTimeout()
.equals(other.getExecutionTimeout())) return false;
break;
case 9:
if (!getExecutionDeadline()
.equals(other.getExecutionDeadline())) return false;
break;
case 0:
default:
}
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();
hash = (37 * hash) + VCPU_RATE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVcpuRateLimit());
hash = (37 * hash) + FLOW_RATE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFlowRateLimit());
hash = (37 * hash) + VCPU_TIME_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVcpuTimeLimit());
hash = (37 * hash) + MAX_RESULT_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxResultSize());
hash = (37 * hash) + MAX_RESULT_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxResultRows());
hash = (37 * hash) + MEMORY_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemoryLimit());
if (hasResultTtl()) {
hash = (37 * hash) + RESULT_TTL_FIELD_NUMBER;
hash = (53 * hash) + getResultTtl().hashCode();
}
switch (timeoutCase_) {
case 8:
hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getExecutionTimeout().hashCode();
break;
case 9:
hash = (37 * hash) + EXECUTION_DEADLINE_FIELD_NUMBER;
hash = (53 * hash) + getExecutionDeadline().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits 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 FederatedQuery.Limits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.Limits)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.LimitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Limits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Limits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultTtlFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
vcpuRateLimit_ = 0L;
flowRateLimit_ = 0L;
vcpuTimeLimit_ = 0L;
maxResultSize_ = 0L;
maxResultRows_ = 0L;
memoryLimit_ = 0L;
resultTtl_ = null;
if (resultTtlBuilder_ != null) {
resultTtlBuilder_.dispose();
resultTtlBuilder_ = null;
}
if (executionTimeoutBuilder_ != null) {
executionTimeoutBuilder_.clear();
}
if (executionDeadlineBuilder_ != null) {
executionDeadlineBuilder_.clear();
}
timeoutCase_ = 0;
timeout_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_Limits_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.vcpuRateLimit_ = vcpuRateLimit_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.flowRateLimit_ = flowRateLimit_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.vcpuTimeLimit_ = vcpuTimeLimit_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxResultSize_ = maxResultSize_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxResultRows_ = maxResultRows_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.memoryLimit_ = memoryLimit_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.resultTtl_ = resultTtlBuilder_ == null
? resultTtl_
: resultTtlBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits result) {
result.timeoutCase_ = timeoutCase_;
result.timeout_ = this.timeout_;
if (timeoutCase_ == 8 &&
executionTimeoutBuilder_ != null) {
result.timeout_ = executionTimeoutBuilder_.build();
}
if (timeoutCase_ == 9 &&
executionDeadlineBuilder_ != null) {
result.timeout_ = executionDeadlineBuilder_.build();
}
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.getDefaultInstance()) return this;
if (other.getVcpuRateLimit() != 0L) {
setVcpuRateLimit(other.getVcpuRateLimit());
}
if (other.getFlowRateLimit() != 0L) {
setFlowRateLimit(other.getFlowRateLimit());
}
if (other.getVcpuTimeLimit() != 0L) {
setVcpuTimeLimit(other.getVcpuTimeLimit());
}
if (other.getMaxResultSize() != 0L) {
setMaxResultSize(other.getMaxResultSize());
}
if (other.getMaxResultRows() != 0L) {
setMaxResultRows(other.getMaxResultRows());
}
if (other.getMemoryLimit() != 0L) {
setMemoryLimit(other.getMemoryLimit());
}
if (other.hasResultTtl()) {
mergeResultTtl(other.getResultTtl());
}
switch (other.getTimeoutCase()) {
case EXECUTION_TIMEOUT: {
mergeExecutionTimeout(other.getExecutionTimeout());
break;
}
case EXECUTION_DEADLINE: {
mergeExecutionDeadline(other.getExecutionDeadline());
break;
}
case TIMEOUT_NOT_SET: {
break;
}
}
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 8: {
vcpuRateLimit_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
flowRateLimit_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
vcpuTimeLimit_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
maxResultSize_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
maxResultRows_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
memoryLimit_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getResultTtlFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getExecutionTimeoutFieldBuilder().getBuilder(),
extensionRegistry);
timeoutCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getExecutionDeadlineFieldBuilder().getBuilder(),
extensionRegistry);
timeoutCase_ = 9;
break;
} // case 74
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 timeoutCase_ = 0;
private java.lang.Object timeout_;
public TimeoutCase
getTimeoutCase() {
return TimeoutCase.forNumber(
timeoutCase_);
}
public Builder clearTimeout() {
timeoutCase_ = 0;
timeout_ = null;
onChanged();
return this;
}
private int bitField0_;
private long vcpuRateLimit_ ;
/**
*
* 0.01 vcpu per second
*
*
* int64 vcpu_rate_limit = 1 [(.Ydb.value) = ">= 0"];
* @return The vcpuRateLimit.
*/
@java.lang.Override
public long getVcpuRateLimit() {
return vcpuRateLimit_;
}
/**
*
* 0.01 vcpu per second
*
*
* int64 vcpu_rate_limit = 1 [(.Ydb.value) = ">= 0"];
* @param value The vcpuRateLimit to set.
* @return This builder for chaining.
*/
public Builder setVcpuRateLimit(long value) {
vcpuRateLimit_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 0.01 vcpu per second
*
*
* int64 vcpu_rate_limit = 1 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearVcpuRateLimit() {
bitField0_ = (bitField0_ & ~0x00000001);
vcpuRateLimit_ = 0L;
onChanged();
return this;
}
private long flowRateLimit_ ;
/**
*
* Bytes per second
*
*
* int64 flow_rate_limit = 2 [(.Ydb.value) = ">= 0"];
* @return The flowRateLimit.
*/
@java.lang.Override
public long getFlowRateLimit() {
return flowRateLimit_;
}
/**
*
* Bytes per second
*
*
* int64 flow_rate_limit = 2 [(.Ydb.value) = ">= 0"];
* @param value The flowRateLimit to set.
* @return This builder for chaining.
*/
public Builder setFlowRateLimit(long value) {
flowRateLimit_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Bytes per second
*
*
* int64 flow_rate_limit = 2 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearFlowRateLimit() {
bitField0_ = (bitField0_ & ~0x00000002);
flowRateLimit_ = 0L;
onChanged();
return this;
}
private long vcpuTimeLimit_ ;
/**
*
* Milliseconds per second
*
*
* int64 vcpu_time_limit = 3 [(.Ydb.value) = ">= 0"];
* @return The vcpuTimeLimit.
*/
@java.lang.Override
public long getVcpuTimeLimit() {
return vcpuTimeLimit_;
}
/**
*
* Milliseconds per second
*
*
* int64 vcpu_time_limit = 3 [(.Ydb.value) = ">= 0"];
* @param value The vcpuTimeLimit to set.
* @return This builder for chaining.
*/
public Builder setVcpuTimeLimit(long value) {
vcpuTimeLimit_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Milliseconds per second
*
*
* int64 vcpu_time_limit = 3 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearVcpuTimeLimit() {
bitField0_ = (bitField0_ & ~0x00000004);
vcpuTimeLimit_ = 0L;
onChanged();
return this;
}
private long maxResultSize_ ;
/**
*
* Used only for analytics queries
*
*
* int64 max_result_size = 4 [(.Ydb.value) = ">= 0"];
* @return The maxResultSize.
*/
@java.lang.Override
public long getMaxResultSize() {
return maxResultSize_;
}
/**
*
* Used only for analytics queries
*
*
* int64 max_result_size = 4 [(.Ydb.value) = ">= 0"];
* @param value The maxResultSize to set.
* @return This builder for chaining.
*/
public Builder setMaxResultSize(long value) {
maxResultSize_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Used only for analytics queries
*
*
* int64 max_result_size = 4 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearMaxResultSize() {
bitField0_ = (bitField0_ & ~0x00000008);
maxResultSize_ = 0L;
onChanged();
return this;
}
private long maxResultRows_ ;
/**
*
* Count
*
*
* int64 max_result_rows = 5 [(.Ydb.value) = ">= 0"];
* @return The maxResultRows.
*/
@java.lang.Override
public long getMaxResultRows() {
return maxResultRows_;
}
/**
*
* Count
*
*
* int64 max_result_rows = 5 [(.Ydb.value) = ">= 0"];
* @param value The maxResultRows to set.
* @return This builder for chaining.
*/
public Builder setMaxResultRows(long value) {
maxResultRows_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Count
*
*
* int64 max_result_rows = 5 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearMaxResultRows() {
bitField0_ = (bitField0_ & ~0x00000010);
maxResultRows_ = 0L;
onChanged();
return this;
}
private long memoryLimit_ ;
/**
*
* Common limits
*
*
* int64 memory_limit = 6 [(.Ydb.value) = ">= 0"];
* @return The memoryLimit.
*/
@java.lang.Override
public long getMemoryLimit() {
return memoryLimit_;
}
/**
*
* Common limits
*
*
* int64 memory_limit = 6 [(.Ydb.value) = ">= 0"];
* @param value The memoryLimit to set.
* @return This builder for chaining.
*/
public Builder setMemoryLimit(long value) {
memoryLimit_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
* Protobuf type {@code FederatedQuery.StreamingDisposition}
*/
public static final class StreamingDisposition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.StreamingDisposition)
StreamingDispositionOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamingDisposition.newBuilder() to construct.
private StreamingDisposition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamingDisposition() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamingDisposition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.Builder.class);
}
public interface FromTimeOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.StreamingDisposition.FromTime)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
}
/**
* Protobuf type {@code FederatedQuery.StreamingDisposition.FromTime}
*/
public static final class FromTime extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.StreamingDisposition.FromTime)
FromTimeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FromTime.newBuilder() to construct.
private FromTime(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FromTime() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FromTime();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromTime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromTime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.Builder.class);
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timestamp_;
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
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, getTimestamp());
}
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, getTimestamp());
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) 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 (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime 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 FederatedQuery.StreamingDisposition.FromTime}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.StreamingDisposition.FromTime)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTimeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromTime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromTime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromTime_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
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(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
* .google.protobuf.Timestamp timestamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
@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:FederatedQuery.StreamingDisposition.FromTime)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.StreamingDisposition.FromTime)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FromTime 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimeAgoOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.StreamingDisposition.TimeAgo)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Duration duration = 1;
* @return Whether the duration field is set.
*/
boolean hasDuration();
/**
* .google.protobuf.Duration duration = 1;
* @return The duration.
*/
com.google.protobuf.Duration getDuration();
/**
* .google.protobuf.Duration duration = 1;
*/
com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
}
/**
* Protobuf type {@code FederatedQuery.StreamingDisposition.TimeAgo}
*/
public static final class TimeAgo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.StreamingDisposition.TimeAgo)
TimeAgoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimeAgo.newBuilder() to construct.
private TimeAgo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TimeAgo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TimeAgo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_TimeAgo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_TimeAgo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.Builder.class);
}
private int bitField0_;
public static final int DURATION_FIELD_NUMBER = 1;
private com.google.protobuf.Duration duration_;
/**
* .google.protobuf.Duration duration = 1;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Duration duration = 1;
* @return The duration.
*/
@java.lang.Override
public com.google.protobuf.Duration getDuration() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
/**
* .google.protobuf.Duration duration = 1;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
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, getDuration());
}
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, getDuration());
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) obj;
if (hasDuration() != other.hasDuration()) return false;
if (hasDuration()) {
if (!getDuration()
.equals(other.getDuration())) 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 (hasDuration()) {
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo 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 FederatedQuery.StreamingDisposition.TimeAgo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.StreamingDisposition.TimeAgo)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_TimeAgo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_TimeAgo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDurationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
duration_ = null;
if (durationBuilder_ != null) {
durationBuilder_.dispose();
durationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_TimeAgo_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.duration_ = durationBuilder_ == null
? duration_
: durationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.getDefaultInstance()) return this;
if (other.hasDuration()) {
mergeDuration(other.getDuration());
}
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(
getDurationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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.google.protobuf.Duration duration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
/**
* .google.protobuf.Duration duration = 1;
* @return Whether the duration field is set.
*/
public boolean hasDuration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Duration duration = 1;
* @return The duration.
*/
public com.google.protobuf.Duration getDuration() {
if (durationBuilder_ == null) {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
} else {
return durationBuilder_.getMessage();
}
}
/**
* .google.protobuf.Duration duration = 1;
*/
public Builder setDuration(com.google.protobuf.Duration value) {
if (durationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
duration_ = value;
} else {
durationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Duration duration = 1;
*/
public Builder setDuration(
com.google.protobuf.Duration.Builder builderForValue) {
if (durationBuilder_ == null) {
duration_ = builderForValue.build();
} else {
durationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Duration duration = 1;
*/
public Builder mergeDuration(com.google.protobuf.Duration value) {
if (durationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
duration_ != null &&
duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getDurationBuilder().mergeFrom(value);
} else {
duration_ = value;
}
} else {
durationBuilder_.mergeFrom(value);
}
if (duration_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .google.protobuf.Duration duration = 1;
*/
public Builder clearDuration() {
bitField0_ = (bitField0_ & ~0x00000001);
duration_ = null;
if (durationBuilder_ != null) {
durationBuilder_.dispose();
durationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Duration duration = 1;
*/
public com.google.protobuf.Duration.Builder getDurationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDurationFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Duration duration = 1;
*/
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
if (durationBuilder_ != null) {
return durationBuilder_.getMessageOrBuilder();
} else {
return duration_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
}
/**
* .google.protobuf.Duration duration = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getDurationFieldBuilder() {
if (durationBuilder_ == null) {
durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getDuration(),
getParentForChildren(),
isClean());
duration_ = null;
}
return durationBuilder_;
}
@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:FederatedQuery.StreamingDisposition.TimeAgo)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.StreamingDisposition.TimeAgo)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TimeAgo 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FromLastCheckpointOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.StreamingDisposition.FromLastCheckpoint)
com.google.protobuf.MessageOrBuilder {
/**
*
* By default if new query streams set doesn't equal to old query streams set,
* error will occur and query won't be allowed to load offsets for streams for the last checkpoint.
* If this flag is set all offsets that can be matched with previous query checkpoint will be matched.
* Others will use "fresh" streaming disposition.
*
*
* bool force = 1;
* @return The force.
*/
boolean getForce();
}
/**
* Protobuf type {@code FederatedQuery.StreamingDisposition.FromLastCheckpoint}
*/
public static final class FromLastCheckpoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.StreamingDisposition.FromLastCheckpoint)
FromLastCheckpointOrBuilder {
private static final long serialVersionUID = 0L;
// Use FromLastCheckpoint.newBuilder() to construct.
private FromLastCheckpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FromLastCheckpoint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FromLastCheckpoint();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromLastCheckpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromLastCheckpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.Builder.class);
}
public static final int FORCE_FIELD_NUMBER = 1;
private boolean force_ = false;
/**
*
* By default if new query streams set doesn't equal to old query streams set,
* error will occur and query won't be allowed to load offsets for streams for the last checkpoint.
* If this flag is set all offsets that can be matched with previous query checkpoint will be matched.
* Others will use "fresh" streaming disposition.
*
*
* bool force = 1;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
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 (force_ != false) {
output.writeBool(1, force_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (force_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, force_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) obj;
if (getForce()
!= other.getForce()) 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();
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForce());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint 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 FederatedQuery.StreamingDisposition.FromLastCheckpoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.StreamingDisposition.FromLastCheckpoint)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromLastCheckpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromLastCheckpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
force_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_FromLastCheckpoint_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.force_ = force_;
}
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.getDefaultInstance()) return this;
if (other.getForce() != false) {
setForce(other.getForce());
}
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 8: {
force_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
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 boolean force_ ;
/**
*
* By default if new query streams set doesn't equal to old query streams set,
* error will occur and query won't be allowed to load offsets for streams for the last checkpoint.
* If this flag is set all offsets that can be matched with previous query checkpoint will be matched.
* Others will use "fresh" streaming disposition.
*
*
* bool force = 1;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
/**
*
* By default if new query streams set doesn't equal to old query streams set,
* error will occur and query won't be allowed to load offsets for streams for the last checkpoint.
* If this flag is set all offsets that can be matched with previous query checkpoint will be matched.
* Others will use "fresh" streaming disposition.
*
*
* bool force = 1;
* @param value The force to set.
* @return This builder for chaining.
*/
public Builder setForce(boolean value) {
force_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* By default if new query streams set doesn't equal to old query streams set,
* error will occur and query won't be allowed to load offsets for streams for the last checkpoint.
* If this flag is set all offsets that can be matched with previous query checkpoint will be matched.
* Others will use "fresh" streaming disposition.
*
*
* bool force = 1;
* @return This builder for chaining.
*/
public Builder clearForce() {
bitField0_ = (bitField0_ & ~0x00000001);
force_ = false;
onChanged();
return this;
}
@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:FederatedQuery.StreamingDisposition.FromLastCheckpoint)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.StreamingDisposition.FromLastCheckpoint)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FromLastCheckpoint 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int dispositionCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object disposition_;
public enum DispositionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OLDEST(1),
FRESH(2),
FROM_TIME(3),
TIME_AGO(4),
FROM_LAST_CHECKPOINT(5),
DISPOSITION_NOT_SET(0);
private final int value;
private DispositionCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DispositionCase valueOf(int value) {
return forNumber(value);
}
public static DispositionCase forNumber(int value) {
switch (value) {
case 1: return OLDEST;
case 2: return FRESH;
case 3: return FROM_TIME;
case 4: return TIME_AGO;
case 5: return FROM_LAST_CHECKPOINT;
case 0: return DISPOSITION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DispositionCase
getDispositionCase() {
return DispositionCase.forNumber(
dispositionCase_);
}
public static final int OLDEST_FIELD_NUMBER = 1;
/**
*
* Start processing with the oldest offset
*
*
* .google.protobuf.Empty oldest = 1;
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return dispositionCase_ == 1;
}
/**
*
* Start processing with the oldest offset
*
*
* .google.protobuf.Empty oldest = 1;
* @return The oldest.
*/
@java.lang.Override
public com.google.protobuf.Empty getOldest() {
if (dispositionCase_ == 1) {
return (com.google.protobuf.Empty) disposition_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
/**
*
* Start processing with the oldest offset
*
*
* .google.protobuf.Empty oldest = 1;
*/
@java.lang.Override
public com.google.protobuf.EmptyOrBuilder getOldestOrBuilder() {
if (dispositionCase_ == 1) {
return (com.google.protobuf.Empty) disposition_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
public static final int FRESH_FIELD_NUMBER = 2;
/**
*
* Start processing with the fresh offset
*
*
* .google.protobuf.Empty fresh = 2;
* @return Whether the fresh field is set.
*/
@java.lang.Override
public boolean hasFresh() {
return dispositionCase_ == 2;
}
/**
*
* Start processing with the fresh offset
*
*
* .google.protobuf.Empty fresh = 2;
* @return The fresh.
*/
@java.lang.Override
public com.google.protobuf.Empty getFresh() {
if (dispositionCase_ == 2) {
return (com.google.protobuf.Empty) disposition_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
/**
*
* Start processing with the fresh offset
*
*
* .google.protobuf.Empty fresh = 2;
*/
@java.lang.Override
public com.google.protobuf.EmptyOrBuilder getFreshOrBuilder() {
if (dispositionCase_ == 2) {
return (com.google.protobuf.Empty) disposition_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
public static final int FROM_TIME_FIELD_NUMBER = 3;
/**
*
* Start processing with offset from the specified time
*
*
* .FederatedQuery.StreamingDisposition.FromTime from_time = 3;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return dispositionCase_ == 3;
}
/**
*
* Start processing with offset from the specified time
*
*
* .FederatedQuery.StreamingDisposition.FromTime from_time = 3;
* @return The fromTime.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime getFromTime() {
if (dispositionCase_ == 3) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.getDefaultInstance();
}
/**
*
* Start processing with offset from the specified time
*
*
* .FederatedQuery.StreamingDisposition.FromTime from_time = 3;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTimeOrBuilder getFromTimeOrBuilder() {
if (dispositionCase_ == 3) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime.getDefaultInstance();
}
public static final int TIME_AGO_FIELD_NUMBER = 4;
/**
*
* Start processing with offset some time ago
*
*
* .FederatedQuery.StreamingDisposition.TimeAgo time_ago = 4;
* @return Whether the timeAgo field is set.
*/
@java.lang.Override
public boolean hasTimeAgo() {
return dispositionCase_ == 4;
}
/**
*
* Start processing with offset some time ago
*
*
* .FederatedQuery.StreamingDisposition.TimeAgo time_ago = 4;
* @return The timeAgo.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo getTimeAgo() {
if (dispositionCase_ == 4) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.getDefaultInstance();
}
/**
*
* Start processing with offset some time ago
*
*
* .FederatedQuery.StreamingDisposition.TimeAgo time_ago = 4;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgoOrBuilder getTimeAgoOrBuilder() {
if (dispositionCase_ == 4) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo.getDefaultInstance();
}
public static final int FROM_LAST_CHECKPOINT_FIELD_NUMBER = 5;
/**
*
* Start processing with offset which corresponds to the last checkpoint
*
*
* .FederatedQuery.StreamingDisposition.FromLastCheckpoint from_last_checkpoint = 5;
* @return Whether the fromLastCheckpoint field is set.
*/
@java.lang.Override
public boolean hasFromLastCheckpoint() {
return dispositionCase_ == 5;
}
/**
*
* Start processing with offset which corresponds to the last checkpoint
*
*
* .FederatedQuery.StreamingDisposition.FromLastCheckpoint from_last_checkpoint = 5;
* @return The fromLastCheckpoint.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint getFromLastCheckpoint() {
if (dispositionCase_ == 5) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.getDefaultInstance();
}
/**
*
* Start processing with offset which corresponds to the last checkpoint
*
*
* .FederatedQuery.StreamingDisposition.FromLastCheckpoint from_last_checkpoint = 5;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpointOrBuilder getFromLastCheckpointOrBuilder() {
if (dispositionCase_ == 5) {
return (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) disposition_;
}
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint.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 (dispositionCase_ == 1) {
output.writeMessage(1, (com.google.protobuf.Empty) disposition_);
}
if (dispositionCase_ == 2) {
output.writeMessage(2, (com.google.protobuf.Empty) disposition_);
}
if (dispositionCase_ == 3) {
output.writeMessage(3, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) disposition_);
}
if (dispositionCase_ == 4) {
output.writeMessage(4, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) disposition_);
}
if (dispositionCase_ == 5) {
output.writeMessage(5, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) disposition_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dispositionCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.protobuf.Empty) disposition_);
}
if (dispositionCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.protobuf.Empty) disposition_);
}
if (dispositionCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromTime) disposition_);
}
if (dispositionCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.TimeAgo) disposition_);
}
if (dispositionCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.FromLastCheckpoint) disposition_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition) obj;
if (!getDispositionCase().equals(other.getDispositionCase())) return false;
switch (dispositionCase_) {
case 1:
if (!getOldest()
.equals(other.getOldest())) return false;
break;
case 2:
if (!getFresh()
.equals(other.getFresh())) return false;
break;
case 3:
if (!getFromTime()
.equals(other.getFromTime())) return false;
break;
case 4:
if (!getTimeAgo()
.equals(other.getTimeAgo())) return false;
break;
case 5:
if (!getFromLastCheckpoint()
.equals(other.getFromLastCheckpoint())) return false;
break;
case 0:
default:
}
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();
switch (dispositionCase_) {
case 1:
hash = (37 * hash) + OLDEST_FIELD_NUMBER;
hash = (53 * hash) + getOldest().hashCode();
break;
case 2:
hash = (37 * hash) + FRESH_FIELD_NUMBER;
hash = (53 * hash) + getFresh().hashCode();
break;
case 3:
hash = (37 * hash) + FROM_TIME_FIELD_NUMBER;
hash = (53 * hash) + getFromTime().hashCode();
break;
case 4:
hash = (37 * hash) + TIME_AGO_FIELD_NUMBER;
hash = (53 * hash) + getTimeAgo().hashCode();
break;
case 5:
hash = (37 * hash) + FROM_LAST_CHECKPOINT_FIELD_NUMBER;
hash = (53 * hash) + getFromLastCheckpoint().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition 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;
}
/**
*
* For streaming queries only
*
*
* Protobuf type {@code FederatedQuery.StreamingDisposition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.StreamingDisposition)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDispositionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (oldestBuilder_ != null) {
oldestBuilder_.clear();
}
if (freshBuilder_ != null) {
freshBuilder_.clear();
}
if (fromTimeBuilder_ != null) {
fromTimeBuilder_.clear();
}
if (timeAgoBuilder_ != null) {
timeAgoBuilder_.clear();
}
if (fromLastCheckpointBuilder_ != null) {
fromLastCheckpointBuilder_.clear();
}
dispositionCase_ = 0;
disposition_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_StreamingDisposition_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition result) {
result.dispositionCase_ = dispositionCase_;
result.disposition_ = this.disposition_;
if (dispositionCase_ == 1 &&
oldestBuilder_ != null) {
result.disposition_ = oldestBuilder_.build();
}
if (dispositionCase_ == 2 &&
freshBuilder_ != null) {
result.disposition_ = freshBuilder_.build();
}
if (dispositionCase_ == 3 &&
fromTimeBuilder_ != null) {
result.disposition_ = fromTimeBuilder_.build();
}
if (dispositionCase_ == 4 &&
timeAgoBuilder_ != null) {
result.disposition_ = timeAgoBuilder_.build();
}
if (dispositionCase_ == 5 &&
fromLastCheckpointBuilder_ != null) {
result.disposition_ = fromLastCheckpointBuilder_.build();
}
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.StreamingDisposition.getDefaultInstance()) return this;
switch (other.getDispositionCase()) {
case OLDEST: {
mergeOldest(other.getOldest());
break;
}
case FRESH: {
mergeFresh(other.getFresh());
break;
}
case FROM_TIME: {
mergeFromTime(other.getFromTime());
break;
}
case TIME_AGO: {
mergeTimeAgo(other.getTimeAgo());
break;
}
case FROM_LAST_CHECKPOINT: {
mergeFromLastCheckpoint(other.getFromLastCheckpoint());
break;
}
case DISPOSITION_NOT_SET: {
break;
}
}
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(
getOldestFieldBuilder().getBuilder(),
extensionRegistry);
dispositionCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getFreshFieldBuilder().getBuilder(),
extensionRegistry);
dispositionCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getFromTimeFieldBuilder().getBuilder(),
extensionRegistry);
dispositionCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getTimeAgoFieldBuilder().getBuilder(),
extensionRegistry);
dispositionCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getFromLastCheckpointFieldBuilder().getBuilder(),
extensionRegistry);
dispositionCase_ = 5;
break;
} // case 42
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 dispositionCase_ = 0;
private java.lang.Object disposition_;
public DispositionCase
getDispositionCase() {
return DispositionCase.forNumber(
dispositionCase_);
}
public Builder clearDisposition() {
dispositionCase_ = 0;
disposition_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> oldestBuilder_;
/**
*
* Start processing with the oldest offset
*
*
* .google.protobuf.Empty oldest = 1;
* @return Whether the oldest field is set.
*/
@java.lang.Override
public boolean hasOldest() {
return dispositionCase_ == 1;
}
/**
*
* Start processing with the oldest offset
*
*
* .google.protobuf.Empty oldest = 1;
* @return The oldest.
*/
@java.lang.Override
public com.google.protobuf.Empty getOldest() {
if (oldestBuilder_ == null) {
if (dispositionCase_ == 1) {
return (com.google.protobuf.Empty) disposition_;
}
return com.google.protobuf.Empty.getDefaultInstance();
} else {
if (dispositionCase_ == 1) {
return oldestBuilder_.getMessage();
}
return com.google.protobuf.Empty.getDefaultInstance();
}
}
/**
*
*
* Protobuf type {@code FederatedQuery.QueryContent}
*/
public static final class QueryContent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.QueryContent)
QueryContentOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContent.newBuilder() to construct.
private QueryContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContent() {
type_ = 0;
name_ = "";
text_ = "";
description_ = "";
syntax_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContent();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryContent_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetExecutionSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryContent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.Builder.class);
}
/**
* Protobuf enum {@code FederatedQuery.QueryContent.QueryType}
*/
public enum QueryType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* QUERY_TYPE_UNSPECIFIED = 0;
*/
QUERY_TYPE_UNSPECIFIED(0),
/**
*
* Analytical query (used for analytical data processing for example to work with YDB, ClickHouse, ...)
*
*
* ANALYTICS = 1;
*/
ANALYTICS(1),
/**
*
* Streaming query (used for streaming data processing, such as working with YDS)
*
*
* STREAMING = 2;
*/
STREAMING(2),
UNRECOGNIZED(-1),
;
/**
* QUERY_TYPE_UNSPECIFIED = 0;
*/
public static final int QUERY_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Analytical query (used for analytical data processing for example to work with YDB, ClickHouse, ...)
*
*
* ANALYTICS = 1;
*/
public static final int ANALYTICS_VALUE = 1;
/**
*
* Streaming query (used for streaming data processing, such as working with YDS)
*
*
* STREAMING = 2;
*/
public static final int STREAMING_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueryType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static QueryType forNumber(int value) {
switch (value) {
case 0: return QUERY_TYPE_UNSPECIFIED;
case 1: return ANALYTICS;
case 2: return STREAMING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
QueryType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public QueryType findValueByNumber(int number) {
return QueryType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.getDescriptor().getEnumTypes().get(0);
}
private static final QueryType[] VALUES = values();
public static QueryType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private QueryType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.QueryContent.QueryType)
}
/**
* Protobuf enum {@code FederatedQuery.QueryContent.QuerySyntax}
*/
public enum QuerySyntax
implements com.google.protobuf.ProtocolMessageEnum {
/**
* QUERY_SYNTAX_UNSPECIFIED = 0;
*/
QUERY_SYNTAX_UNSPECIFIED(0),
/**
*
* YQL version 1
*
*
* YQL_V1 = 1;
*/
YQL_V1(1),
/**
*
* PostgresQL
*
*
* PG = 2;
*/
PG(2),
UNRECOGNIZED(-1),
;
/**
* QUERY_SYNTAX_UNSPECIFIED = 0;
*/
public static final int QUERY_SYNTAX_UNSPECIFIED_VALUE = 0;
/**
*
* YQL version 1
*
*
* YQL_V1 = 1;
*/
public static final int YQL_V1_VALUE = 1;
/**
*
* PostgresQL
*
*
* PG = 2;
*/
public static final int PG_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QuerySyntax valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static QuerySyntax forNumber(int value) {
switch (value) {
case 0: return QUERY_SYNTAX_UNSPECIFIED;
case 1: return YQL_V1;
case 2: return PG;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
QuerySyntax> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public QuerySyntax findValueByNumber(int number) {
return QuerySyntax.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.getDescriptor().getEnumTypes().get(1);
}
private static final QuerySyntax[] VALUES = values();
public static QuerySyntax valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private QuerySyntax(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.QueryContent.QuerySyntax)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_ = 0;
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The type.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getType() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.forNumber(type_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.UNRECOGNIZED : result;
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACL_FIELD_NUMBER = 3;
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl acl_;
/**
* .FederatedQuery.Acl acl = 3;
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .FederatedQuery.Acl acl = 3;
* @return The acl.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl getAcl() {
return acl_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.getDefaultInstance() : acl_;
}
/**
* .FederatedQuery.Acl acl = 3;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.AclOrBuilder getAclOrBuilder() {
return acl_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.getDefaultInstance() : acl_;
}
public static final int LIMITS_FIELD_NUMBER = 4;
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits limits_;
/**
* .FederatedQuery.Limits limits = 4;
* @return Whether the limits field is set.
*/
@java.lang.Override
public boolean hasLimits() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .FederatedQuery.Limits limits = 4;
* @return The limits.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits getLimits() {
return limits_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.getDefaultInstance() : limits_;
}
/**
* .FederatedQuery.Limits limits = 4;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.LimitsOrBuilder getLimitsOrBuilder() {
return limits_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Limits.getDefaultInstance() : limits_;
}
public static final int TEXT_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
*
* Specified settings for query's executor
* Well known settings are:
* "executor" - type of executor for this query
*
*
* map<string, string> execution_settings = 10 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public java.lang.String getExecutionSettingsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExecutionSettings().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SYNTAX_FIELD_NUMBER = 11;
private int syntax_ = 0;
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @param value The enum numeric value on the wire for syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntaxValue(int value) {
syntax_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @return The syntax.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QuerySyntax getSyntax() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QuerySyntax result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QuerySyntax.forNumber(syntax_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QuerySyntax.UNRECOGNIZED : result;
}
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @param value The syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntax(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QuerySyntax value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
syntax_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Syntax of the text
* By default it is "yql", but additional syntax "pg" (PostreSQL SQL frontend) is supported as well
*
*
* .FederatedQuery.QueryContent.QuerySyntax syntax = 11;
* @return This builder for chaining.
*/
public Builder clearSyntax() {
bitField0_ = (bitField0_ & ~0x00000100);
syntax_ = 0;
onChanged();
return this;
}
@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:FederatedQuery.QueryContent)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.QueryContent)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContent 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommonMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.CommonMeta)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The createdBy.
*/
java.lang.String getCreatedBy();
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The bytes for createdBy.
*/
com.google.protobuf.ByteString
getCreatedByBytes();
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The modifiedBy.
*/
java.lang.String getModifiedBy();
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The bytes for modifiedBy.
*/
com.google.protobuf.ByteString
getModifiedByBytes();
/**
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 4;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return Whether the modifiedAt field is set.
*/
boolean hasModifiedAt();
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return The modifiedAt.
*/
com.google.protobuf.Timestamp getModifiedAt();
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder();
/**
*
* Entity version, increases with each change
*
*
* int64 revision = 6 [(.Ydb.value) = ">= 0"];
* @return The revision.
*/
long getRevision();
}
/**
* Protobuf type {@code FederatedQuery.CommonMeta}
*/
public static final class CommonMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.CommonMeta)
CommonMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommonMeta.newBuilder() to construct.
private CommonMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommonMeta() {
id_ = "";
createdBy_ = "";
modifiedBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommonMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CommonMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CommonMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_BY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object createdBy_ = "";
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The createdBy.
*/
@java.lang.Override
public java.lang.String getCreatedBy() {
java.lang.Object ref = createdBy_;
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();
createdBy_ = s;
return s;
}
}
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The bytes for createdBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODIFIED_BY_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object modifiedBy_ = "";
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The modifiedBy.
*/
@java.lang.Override
public java.lang.String getModifiedBy() {
java.lang.Object ref = modifiedBy_;
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();
modifiedBy_ = s;
return s;
}
}
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The bytes for modifiedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModifiedByBytes() {
java.lang.Object ref = modifiedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modifiedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp createdAt_;
/**
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
public static final int MODIFIED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp modifiedAt_;
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return The modifiedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModifiedAt() {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
public static final int REVISION_FIELD_NUMBER = 6;
private long revision_ = 0L;
/**
*
* Entity version, increases with each change
*
*
* int64 revision = 6 [(.Ydb.value) = ">= 0"];
* @return The revision.
*/
@java.lang.Override
public long getRevision() {
return revision_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, createdBy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modifiedBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modifiedBy_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getCreatedAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getModifiedAt());
}
if (revision_ != 0L) {
output.writeInt64(6, revision_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, createdBy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modifiedBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modifiedBy_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCreatedAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getModifiedAt());
}
if (revision_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, revision_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getCreatedBy()
.equals(other.getCreatedBy())) return false;
if (!getModifiedBy()
.equals(other.getModifiedBy())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasModifiedAt() != other.hasModifiedAt()) return false;
if (hasModifiedAt()) {
if (!getModifiedAt()
.equals(other.getModifiedAt())) return false;
}
if (getRevision()
!= other.getRevision()) 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();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + CREATED_BY_FIELD_NUMBER;
hash = (53 * hash) + getCreatedBy().hashCode();
hash = (37 * hash) + MODIFIED_BY_FIELD_NUMBER;
hash = (53 * hash) + getModifiedBy().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasModifiedAt()) {
hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + getModifiedAt().hashCode();
}
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRevision());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta 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 FederatedQuery.CommonMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.CommonMeta)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CommonMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CommonMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCreatedAtFieldBuilder();
getModifiedAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
createdBy_ = "";
modifiedBy_ = "";
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
modifiedAt_ = null;
if (modifiedAtBuilder_ != null) {
modifiedAtBuilder_.dispose();
modifiedAtBuilder_ = null;
}
revision_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CommonMeta_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createdBy_ = createdBy_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.modifiedBy_ = modifiedBy_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createdAt_ = createdAtBuilder_ == null
? createdAt_
: createdAtBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.modifiedAt_ = modifiedAtBuilder_ == null
? modifiedAt_
: modifiedAtBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.revision_ = revision_;
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getCreatedBy().isEmpty()) {
createdBy_ = other.createdBy_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getModifiedBy().isEmpty()) {
modifiedBy_ = other.modifiedBy_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (other.getRevision() != 0L) {
setRevision(other.getRevision());
}
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: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
createdBy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
modifiedBy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getModifiedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
revision_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
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 java.lang.Object id_ = "";
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1 [(.Ydb.length) = { ... }
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object createdBy_ = "";
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The createdBy.
*/
public java.lang.String getCreatedBy() {
java.lang.Object ref = createdBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
createdBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return The bytes for createdBy.
*/
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @param value The createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedBy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
createdBy_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearCreatedBy() {
createdBy_ = getDefaultInstance().getCreatedBy();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string created_by = 2 [(.Ydb.length) = { ... }
* @param value The bytes for createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
createdBy_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object modifiedBy_ = "";
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The modifiedBy.
*/
public java.lang.String getModifiedBy() {
java.lang.Object ref = modifiedBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modifiedBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return The bytes for modifiedBy.
*/
public com.google.protobuf.ByteString
getModifiedByBytes() {
java.lang.Object ref = modifiedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modifiedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @param value The modifiedBy to set.
* @return This builder for chaining.
*/
public Builder setModifiedBy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
modifiedBy_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearModifiedBy() {
modifiedBy_ = getDefaultInstance().getModifiedBy();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string modified_by = 3 [(.Ydb.length) = { ... }
* @param value The bytes for modifiedBy to set.
* @return This builder for chaining.
*/
public Builder setModifiedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
modifiedBy_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
} else {
createdAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
createdAt_ != null &&
createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreatedAtBuilder().mergeFrom(value);
} else {
createdAt_ = value;
}
} else {
createdAtBuilder_.mergeFrom(value);
}
if (createdAt_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder clearCreatedAt() {
bitField0_ = (bitField0_ & ~0x00000008);
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* .google.protobuf.Timestamp created_at = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .google.protobuf.Timestamp modified_at = 5;
* @return The modifiedAt.
*/
public com.google.protobuf.Timestamp getModifiedAt() {
if (modifiedAtBuilder_ == null) {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
} else {
return modifiedAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public Builder setModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifiedAt_ = value;
} else {
modifiedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
modifiedAt_ != null &&
modifiedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getModifiedAtBuilder().mergeFrom(value);
} else {
modifiedAt_ = value;
}
} else {
modifiedAtBuilder_.mergeFrom(value);
}
if (modifiedAt_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public Builder clearModifiedAt() {
bitField0_ = (bitField0_ & ~0x00000010);
modifiedAt_ = null;
if (modifiedAtBuilder_ != null) {
modifiedAtBuilder_.dispose();
modifiedAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
* .google.protobuf.Timestamp modified_at = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModifiedAtFieldBuilder() {
if (modifiedAtBuilder_ == null) {
modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModifiedAt(),
getParentForChildren(),
isClean());
modifiedAt_ = null;
}
return modifiedAtBuilder_;
}
private long revision_ ;
/**
*
* Entity version, increases with each change
*
*
* int64 revision = 6 [(.Ydb.value) = ">= 0"];
* @return The revision.
*/
@java.lang.Override
public long getRevision() {
return revision_;
}
/**
*
* Entity version, increases with each change
*
*
* int64 revision = 6 [(.Ydb.value) = ">= 0"];
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(long value) {
revision_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Entity version, increases with each change
*
*
* int64 revision = 6 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearRevision() {
bitField0_ = (bitField0_ & ~0x00000020);
revision_ = 0L;
onChanged();
return this;
}
@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:FederatedQuery.CommonMeta)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.CommonMeta)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommonMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.QueryMeta)
com.google.protobuf.MessageOrBuilder {
/**
* .FederatedQuery.CommonMeta common = 1;
* @return Whether the common field is set.
*/
boolean hasCommon();
/**
* .FederatedQuery.CommonMeta common = 1;
* @return The common.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getCommon();
/**
* .FederatedQuery.CommonMeta common = 1;
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder getCommonOrBuilder();
/**
*
*
* .google.protobuf.Timestamp finished_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getFinishedAtOrBuilder();
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The enum numeric value on the wire for executeMode.
*/
int getExecuteModeValue();
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The executeMode.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode getExecuteMode();
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The status.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus getStatus();
/**
* int64 last_job_query_revision = 6;
* @return The lastJobQueryRevision.
*/
long getLastJobQueryRevision();
/**
* string last_job_id = 7;
* @return The lastJobId.
*/
java.lang.String getLastJobId();
/**
* string last_job_id = 7;
* @return The bytes for lastJobId.
*/
com.google.protobuf.ByteString
getLastJobIdBytes();
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return Whether the expireAt field is set.
*/
boolean hasExpireAt();
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return The expireAt.
*/
com.google.protobuf.Timestamp getExpireAt();
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder();
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return Whether the resultExpireAt field is set.
*/
boolean hasResultExpireAt();
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return The resultExpireAt.
*/
com.google.protobuf.Timestamp getResultExpireAt();
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
com.google.protobuf.TimestampOrBuilder getResultExpireAtOrBuilder();
/**
* string started_by = 10;
* @return The startedBy.
*/
java.lang.String getStartedBy();
/**
* string started_by = 10;
* @return The bytes for startedBy.
*/
com.google.protobuf.ByteString
getStartedByBytes();
/**
* string aborted_by = 11;
* @return Whether the abortedBy field is set.
*/
boolean hasAbortedBy();
/**
* string aborted_by = 11;
* @return The abortedBy.
*/
java.lang.String getAbortedBy();
/**
* string aborted_by = 11;
* @return The bytes for abortedBy.
*/
com.google.protobuf.ByteString
getAbortedByBytes();
/**
* string paused_by = 12;
* @return Whether the pausedBy field is set.
*/
boolean hasPausedBy();
/**
* string paused_by = 12;
* @return The pausedBy.
*/
java.lang.String getPausedBy();
/**
* string paused_by = 12;
* @return The bytes for pausedBy.
*/
com.google.protobuf.ByteString
getPausedByBytes();
/**
*
* One of the versions of this query has fully saved checkpoint.
* If this flag is not set streaming disposition mode "from last checkpoint" can't be used.
*
*
* bool has_saved_checkpoints = 13;
* @return The hasSavedCheckpoints.
*/
boolean getHasSavedCheckpoints();
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ActionCase getActionCase();
}
/**
* Protobuf type {@code FederatedQuery.QueryMeta}
*/
public static final class QueryMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.QueryMeta)
QueryMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryMeta.newBuilder() to construct.
private QueryMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryMeta() {
executeMode_ = 0;
status_ = 0;
lastJobId_ = "";
startedBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder.class);
}
/**
* Protobuf enum {@code FederatedQuery.QueryMeta.ComputeStatus}
*/
public enum ComputeStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COMPUTE_STATUS_UNSPECIFIED = 0;
*/
COMPUTE_STATUS_UNSPECIFIED(0),
/**
*
*
* PAUSING = 10;
*/
PAUSING(10),
UNRECOGNIZED(-1),
;
/**
* COMPUTE_STATUS_UNSPECIFIED = 0;
*/
public static final int COMPUTE_STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Start execution of the action on query
*
*
* STARTING = 1;
*/
public static final int STARTING_VALUE = 1;
/**
*
* Query aborted by user
*
*
* ABORTED_BY_USER = 2;
*/
public static final int ABORTED_BY_USER_VALUE = 2;
/**
*
* Query aborted by system
*
*
* ABORTED_BY_SYSTEM = 3;
*/
public static final int ABORTED_BY_SYSTEM_VALUE = 3;
/**
*
* Query aborting by user
*
*
* ABORTING_BY_USER = 4;
*/
public static final int ABORTING_BY_USER_VALUE = 4;
/**
*
* Query aborting by system
*
*
* ABORTING_BY_SYSTEM = 5;
*/
public static final int ABORTING_BY_SYSTEM_VALUE = 5;
/**
*
* Resuming query execution from PAUSED status
*
*
* RESUMING = 6;
*/
public static final int RESUMING_VALUE = 6;
/**
*
* Query started for execution
*
*
* RUNNING = 7;
*/
public static final int RUNNING_VALUE = 7;
/**
*
* Query completed successfully
*
*
* COMPLETED = 8;
*/
public static final int COMPLETED_VALUE = 8;
/**
*
* Finalizing query before become COMPLETED
*
*
* COMPLETING = 12;
*/
public static final int COMPLETING_VALUE = 12;
/**
*
* Query completed with errors
*
*
* FAILED = 9;
*/
public static final int FAILED_VALUE = 9;
/**
*
* Finalizing query before become FAILED
*
*
* FAILING = 13;
*/
public static final int FAILING_VALUE = 13;
/**
*
* Query paused
*
*
* PAUSED = 11;
*/
public static final int PAUSED_VALUE = 11;
/**
*
* Query starts pausing
*
*
* PAUSING = 10;
*/
public static final int PAUSING_VALUE = 10;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ComputeStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ComputeStatus forNumber(int value) {
switch (value) {
case 0: return COMPUTE_STATUS_UNSPECIFIED;
case 1: return STARTING;
case 2: return ABORTED_BY_USER;
case 3: return ABORTED_BY_SYSTEM;
case 4: return ABORTING_BY_USER;
case 5: return ABORTING_BY_SYSTEM;
case 6: return RESUMING;
case 7: return RUNNING;
case 8: return COMPLETED;
case 12: return COMPLETING;
case 9: return FAILED;
case 13: return FAILING;
case 11: return PAUSED;
case 10: return PAUSING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ComputeStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ComputeStatus findValueByNumber(int number) {
return ComputeStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDescriptor().getEnumTypes().get(0);
}
private static final ComputeStatus[] VALUES = values();
public static ComputeStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ComputeStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FederatedQuery.QueryMeta.ComputeStatus)
}
private int bitField0_;
private int actionCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object action_;
public enum ActionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ABORTED_BY(11),
PAUSED_BY(12),
ACTION_NOT_SET(0);
private final int value;
private ActionCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ActionCase valueOf(int value) {
return forNumber(value);
}
public static ActionCase forNumber(int value) {
switch (value) {
case 11: return ABORTED_BY;
case 12: return PAUSED_BY;
case 0: return ACTION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ActionCase
getActionCase() {
return ActionCase.forNumber(
actionCase_);
}
public static final int COMMON_FIELD_NUMBER = 1;
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta common_;
/**
* .FederatedQuery.CommonMeta common = 1;
* @return Whether the common field is set.
*/
@java.lang.Override
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .FederatedQuery.CommonMeta common = 1;
* @return The common.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getCommon() {
return common_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance() : common_;
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder getCommonOrBuilder() {
return common_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance() : common_;
}
public static final int SUBMITTED_AT_FIELD_NUMBER = 14;
private com.google.protobuf.Timestamp submittedAt_;
/**
*
*
* .google.protobuf.Timestamp finished_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFinishedAtOrBuilder() {
return finishedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedAt_;
}
public static final int EXECUTE_MODE_FIELD_NUMBER = 4;
private int executeMode_ = 0;
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The enum numeric value on the wire for executeMode.
*/
@java.lang.Override public int getExecuteModeValue() {
return executeMode_;
}
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The executeMode.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode getExecuteMode() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.forNumber(executeMode_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 5;
private int status_ = 0;
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus getStatus() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.forNumber(status_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.UNRECOGNIZED : result;
}
public static final int LAST_JOB_QUERY_REVISION_FIELD_NUMBER = 6;
private long lastJobQueryRevision_ = 0L;
/**
* int64 last_job_query_revision = 6;
* @return The lastJobQueryRevision.
*/
@java.lang.Override
public long getLastJobQueryRevision() {
return lastJobQueryRevision_;
}
public static final int LAST_JOB_ID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object lastJobId_ = "";
/**
* string last_job_id = 7;
* @return The lastJobId.
*/
@java.lang.Override
public java.lang.String getLastJobId() {
java.lang.Object ref = lastJobId_;
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();
lastJobId_ = s;
return s;
}
}
/**
* string last_job_id = 7;
* @return The bytes for lastJobId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLastJobIdBytes() {
java.lang.Object ref = lastJobId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRE_AT_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp expireAt_;
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return Whether the expireAt field is set.
*/
@java.lang.Override
public boolean hasExpireAt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return The expireAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getExpireAt() {
return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_;
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder() {
return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_;
}
public static final int RESULT_EXPIRE_AT_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp resultExpireAt_;
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return Whether the resultExpireAt field is set.
*/
@java.lang.Override
public boolean hasResultExpireAt() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return The resultExpireAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getResultExpireAt() {
return resultExpireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : resultExpireAt_;
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getResultExpireAtOrBuilder() {
return resultExpireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : resultExpireAt_;
}
public static final int STARTED_BY_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object startedBy_ = "";
/**
* string started_by = 10;
* @return The startedBy.
*/
@java.lang.Override
public java.lang.String getStartedBy() {
java.lang.Object ref = startedBy_;
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();
startedBy_ = s;
return s;
}
}
/**
* string started_by = 10;
* @return The bytes for startedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartedByBytes() {
java.lang.Object ref = startedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ABORTED_BY_FIELD_NUMBER = 11;
/**
* string aborted_by = 11;
* @return Whether the abortedBy field is set.
*/
public boolean hasAbortedBy() {
return actionCase_ == 11;
}
/**
* string aborted_by = 11;
* @return The abortedBy.
*/
public java.lang.String getAbortedBy() {
java.lang.Object ref = "";
if (actionCase_ == 11) {
ref = action_;
}
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();
if (actionCase_ == 11) {
action_ = s;
}
return s;
}
}
/**
* string aborted_by = 11;
* @return The bytes for abortedBy.
*/
public com.google.protobuf.ByteString
getAbortedByBytes() {
java.lang.Object ref = "";
if (actionCase_ == 11) {
ref = action_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 11) {
action_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAUSED_BY_FIELD_NUMBER = 12;
/**
* string paused_by = 12;
* @return Whether the pausedBy field is set.
*/
public boolean hasPausedBy() {
return actionCase_ == 12;
}
/**
* string paused_by = 12;
* @return The pausedBy.
*/
public java.lang.String getPausedBy() {
java.lang.Object ref = "";
if (actionCase_ == 12) {
ref = action_;
}
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();
if (actionCase_ == 12) {
action_ = s;
}
return s;
}
}
/**
* string paused_by = 12;
* @return The bytes for pausedBy.
*/
public com.google.protobuf.ByteString
getPausedByBytes() {
java.lang.Object ref = "";
if (actionCase_ == 12) {
ref = action_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 12) {
action_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HAS_SAVED_CHECKPOINTS_FIELD_NUMBER = 13;
private boolean hasSavedCheckpoints_ = false;
/**
*
* One of the versions of this query has fully saved checkpoint.
* If this flag is not set streaming disposition mode "from last checkpoint" can't be used.
*
*
* bool has_saved_checkpoints = 13;
* @return The hasSavedCheckpoints.
*/
@java.lang.Override
public boolean getHasSavedCheckpoints() {
return hasSavedCheckpoints_;
}
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, getCommon());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(2, getStartedAt());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(3, getFinishedAt());
}
if (executeMode_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.EXECUTE_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, executeMode_);
}
if (status_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.COMPUTE_STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(5, status_);
}
if (lastJobQueryRevision_ != 0L) {
output.writeInt64(6, lastJobQueryRevision_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastJobId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, lastJobId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(8, getExpireAt());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(9, getResultExpireAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startedBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startedBy_);
}
if (actionCase_ == 11) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, action_);
}
if (actionCase_ == 12) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, action_);
}
if (hasSavedCheckpoints_ != false) {
output.writeBool(13, hasSavedCheckpoints_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(14, getSubmittedAt());
}
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, getCommon());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStartedAt());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFinishedAt());
}
if (executeMode_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.EXECUTE_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, executeMode_);
}
if (status_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.COMPUTE_STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
if (lastJobQueryRevision_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, lastJobQueryRevision_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastJobId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, lastJobId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getExpireAt());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getResultExpireAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startedBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startedBy_);
}
if (actionCase_ == 11) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, action_);
}
if (actionCase_ == 12) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, action_);
}
if (hasSavedCheckpoints_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, hasSavedCheckpoints_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getSubmittedAt());
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta) obj;
if (hasCommon() != other.hasCommon()) return false;
if (hasCommon()) {
if (!getCommon()
.equals(other.getCommon())) return false;
}
if (hasSubmittedAt() != other.hasSubmittedAt()) return false;
if (hasSubmittedAt()) {
if (!getSubmittedAt()
.equals(other.getSubmittedAt())) return false;
}
if (hasStartedAt() != other.hasStartedAt()) return false;
if (hasStartedAt()) {
if (!getStartedAt()
.equals(other.getStartedAt())) return false;
}
if (hasFinishedAt() != other.hasFinishedAt()) return false;
if (hasFinishedAt()) {
if (!getFinishedAt()
.equals(other.getFinishedAt())) return false;
}
if (executeMode_ != other.executeMode_) return false;
if (status_ != other.status_) return false;
if (getLastJobQueryRevision()
!= other.getLastJobQueryRevision()) return false;
if (!getLastJobId()
.equals(other.getLastJobId())) return false;
if (hasExpireAt() != other.hasExpireAt()) return false;
if (hasExpireAt()) {
if (!getExpireAt()
.equals(other.getExpireAt())) return false;
}
if (hasResultExpireAt() != other.hasResultExpireAt()) return false;
if (hasResultExpireAt()) {
if (!getResultExpireAt()
.equals(other.getResultExpireAt())) return false;
}
if (!getStartedBy()
.equals(other.getStartedBy())) return false;
if (getHasSavedCheckpoints()
!= other.getHasSavedCheckpoints()) return false;
if (!getActionCase().equals(other.getActionCase())) return false;
switch (actionCase_) {
case 11:
if (!getAbortedBy()
.equals(other.getAbortedBy())) return false;
break;
case 12:
if (!getPausedBy()
.equals(other.getPausedBy())) return false;
break;
case 0:
default:
}
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 (hasCommon()) {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
if (hasSubmittedAt()) {
hash = (37 * hash) + SUBMITTED_AT_FIELD_NUMBER;
hash = (53 * hash) + getSubmittedAt().hashCode();
}
if (hasStartedAt()) {
hash = (37 * hash) + STARTED_AT_FIELD_NUMBER;
hash = (53 * hash) + getStartedAt().hashCode();
}
if (hasFinishedAt()) {
hash = (37 * hash) + FINISHED_AT_FIELD_NUMBER;
hash = (53 * hash) + getFinishedAt().hashCode();
}
hash = (37 * hash) + EXECUTE_MODE_FIELD_NUMBER;
hash = (53 * hash) + executeMode_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + LAST_JOB_QUERY_REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastJobQueryRevision());
hash = (37 * hash) + LAST_JOB_ID_FIELD_NUMBER;
hash = (53 * hash) + getLastJobId().hashCode();
if (hasExpireAt()) {
hash = (37 * hash) + EXPIRE_AT_FIELD_NUMBER;
hash = (53 * hash) + getExpireAt().hashCode();
}
if (hasResultExpireAt()) {
hash = (37 * hash) + RESULT_EXPIRE_AT_FIELD_NUMBER;
hash = (53 * hash) + getResultExpireAt().hashCode();
}
hash = (37 * hash) + STARTED_BY_FIELD_NUMBER;
hash = (53 * hash) + getStartedBy().hashCode();
hash = (37 * hash) + HAS_SAVED_CHECKPOINTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasSavedCheckpoints());
switch (actionCase_) {
case 11:
hash = (37 * hash) + ABORTED_BY_FIELD_NUMBER;
hash = (53 * hash) + getAbortedBy().hashCode();
break;
case 12:
hash = (37 * hash) + PAUSED_BY_FIELD_NUMBER;
hash = (53 * hash) + getPausedBy().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta 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 FederatedQuery.QueryMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.QueryMeta)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCommonFieldBuilder();
getSubmittedAtFieldBuilder();
getStartedAtFieldBuilder();
getFinishedAtFieldBuilder();
getExpireAtFieldBuilder();
getResultExpireAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
submittedAt_ = null;
if (submittedAtBuilder_ != null) {
submittedAtBuilder_.dispose();
submittedAtBuilder_ = null;
}
startedAt_ = null;
if (startedAtBuilder_ != null) {
startedAtBuilder_.dispose();
startedAtBuilder_ = null;
}
finishedAt_ = null;
if (finishedAtBuilder_ != null) {
finishedAtBuilder_.dispose();
finishedAtBuilder_ = null;
}
executeMode_ = 0;
status_ = 0;
lastJobQueryRevision_ = 0L;
lastJobId_ = "";
expireAt_ = null;
if (expireAtBuilder_ != null) {
expireAtBuilder_.dispose();
expireAtBuilder_ = null;
}
resultExpireAt_ = null;
if (resultExpireAtBuilder_ != null) {
resultExpireAtBuilder_.dispose();
resultExpireAtBuilder_ = null;
}
startedBy_ = "";
hasSavedCheckpoints_ = false;
actionCase_ = 0;
action_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_QueryMeta_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.common_ = commonBuilder_ == null
? common_
: commonBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.submittedAt_ = submittedAtBuilder_ == null
? submittedAt_
: submittedAtBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.startedAt_ = startedAtBuilder_ == null
? startedAt_
: startedAtBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.finishedAt_ = finishedAtBuilder_ == null
? finishedAt_
: finishedAtBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.executeMode_ = executeMode_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.lastJobQueryRevision_ = lastJobQueryRevision_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.lastJobId_ = lastJobId_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.expireAt_ = expireAtBuilder_ == null
? expireAt_
: expireAtBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.resultExpireAt_ = resultExpireAtBuilder_ == null
? resultExpireAt_
: resultExpireAtBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.startedBy_ = startedBy_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.hasSavedCheckpoints_ = hasSavedCheckpoints_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta result) {
result.actionCase_ = actionCase_;
result.action_ = this.action_;
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasSubmittedAt()) {
mergeSubmittedAt(other.getSubmittedAt());
}
if (other.hasStartedAt()) {
mergeStartedAt(other.getStartedAt());
}
if (other.hasFinishedAt()) {
mergeFinishedAt(other.getFinishedAt());
}
if (other.executeMode_ != 0) {
setExecuteModeValue(other.getExecuteModeValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getLastJobQueryRevision() != 0L) {
setLastJobQueryRevision(other.getLastJobQueryRevision());
}
if (!other.getLastJobId().isEmpty()) {
lastJobId_ = other.lastJobId_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasExpireAt()) {
mergeExpireAt(other.getExpireAt());
}
if (other.hasResultExpireAt()) {
mergeResultExpireAt(other.getResultExpireAt());
}
if (!other.getStartedBy().isEmpty()) {
startedBy_ = other.startedBy_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.getHasSavedCheckpoints() != false) {
setHasSavedCheckpoints(other.getHasSavedCheckpoints());
}
switch (other.getActionCase()) {
case ABORTED_BY: {
actionCase_ = 11;
action_ = other.action_;
onChanged();
break;
}
case PAUSED_BY: {
actionCase_ = 12;
action_ = other.action_;
onChanged();
break;
}
case ACTION_NOT_SET: {
break;
}
}
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(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getStartedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
input.readMessage(
getFinishedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 32: {
executeMode_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 32
case 40: {
status_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 40
case 48: {
lastJobQueryRevision_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 48
case 58: {
lastJobId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 58
case 66: {
input.readMessage(
getExpireAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 66
case 74: {
input.readMessage(
getResultExpireAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 74
case 82: {
startedBy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
actionCase_ = 11;
action_ = s;
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
actionCase_ = 12;
action_ = s;
break;
} // case 98
case 104: {
hasSavedCheckpoints_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 104
case 114: {
input.readMessage(
getSubmittedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 114
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 actionCase_ = 0;
private java.lang.Object action_;
public ActionCase
getActionCase() {
return ActionCase.forNumber(
actionCase_);
}
public Builder clearAction() {
actionCase_ = 0;
action_ = null;
onChanged();
return this;
}
private int bitField0_;
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta common_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder> commonBuilder_;
/**
* .FederatedQuery.CommonMeta common = 1;
* @return Whether the common field is set.
*/
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .FederatedQuery.CommonMeta common = 1;
* @return The common.
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta getCommon() {
if (commonBuilder_ == null) {
return common_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance() : common_;
} else {
return commonBuilder_.getMessage();
}
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public Builder setCommon(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta value) {
if (commonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
common_ = value;
} else {
commonBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public Builder setCommon(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public Builder mergeCommon(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta value) {
if (commonBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
common_ != null &&
common_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance()) {
getCommonBuilder().mergeFrom(value);
} else {
common_ = value;
}
} else {
commonBuilder_.mergeFrom(value);
}
if (common_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public Builder clearCommon() {
bitField0_ = (bitField0_ & ~0x00000001);
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
onChanged();
return this;
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder getCommonBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCommonFieldBuilder().getBuilder();
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder getCommonOrBuilder() {
if (commonBuilder_ != null) {
return commonBuilder_.getMessageOrBuilder();
} else {
return common_ == null ?
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.getDefaultInstance() : common_;
}
}
/**
* .FederatedQuery.CommonMeta common = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder>
getCommonFieldBuilder() {
if (commonBuilder_ == null) {
commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CommonMetaOrBuilder>(
getCommon(),
getParentForChildren(),
isClean());
common_ = null;
}
return commonBuilder_;
}
private com.google.protobuf.Timestamp submittedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submittedAtBuilder_;
/**
*
*
* .google.protobuf.Timestamp finished_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFinishedAtFieldBuilder() {
if (finishedAtBuilder_ == null) {
finishedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getFinishedAt(),
getParentForChildren(),
isClean());
finishedAt_ = null;
}
return finishedAtBuilder_;
}
private int executeMode_ = 0;
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The enum numeric value on the wire for executeMode.
*/
@java.lang.Override public int getExecuteModeValue() {
return executeMode_;
}
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @param value The enum numeric value on the wire for executeMode to set.
* @return This builder for chaining.
*/
public Builder setExecuteModeValue(int value) {
executeMode_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return The executeMode.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode getExecuteMode() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.forNumber(executeMode_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.UNRECOGNIZED : result;
}
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @param value The executeMode to set.
* @return This builder for chaining.
*/
public Builder setExecuteMode(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
executeMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .FederatedQuery.ExecuteMode execute_mode = 4;
* @return This builder for chaining.
*/
public Builder clearExecuteMode() {
bitField0_ = (bitField0_ & ~0x00000010);
executeMode_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus getStatus() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.forNumber(status_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.UNRECOGNIZED : result;
}
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .FederatedQuery.QueryMeta.ComputeStatus status = 5;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 0;
onChanged();
return this;
}
private long lastJobQueryRevision_ ;
/**
* int64 last_job_query_revision = 6;
* @return The lastJobQueryRevision.
*/
@java.lang.Override
public long getLastJobQueryRevision() {
return lastJobQueryRevision_;
}
/**
* int64 last_job_query_revision = 6;
* @param value The lastJobQueryRevision to set.
* @return This builder for chaining.
*/
public Builder setLastJobQueryRevision(long value) {
lastJobQueryRevision_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int64 last_job_query_revision = 6;
* @return This builder for chaining.
*/
public Builder clearLastJobQueryRevision() {
bitField0_ = (bitField0_ & ~0x00000040);
lastJobQueryRevision_ = 0L;
onChanged();
return this;
}
private java.lang.Object lastJobId_ = "";
/**
* string last_job_id = 7;
* @return The lastJobId.
*/
public java.lang.String getLastJobId() {
java.lang.Object ref = lastJobId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastJobId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string last_job_id = 7;
* @return The bytes for lastJobId.
*/
public com.google.protobuf.ByteString
getLastJobIdBytes() {
java.lang.Object ref = lastJobId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string last_job_id = 7;
* @param value The lastJobId to set.
* @return This builder for chaining.
*/
public Builder setLastJobId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
lastJobId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* string last_job_id = 7;
* @return This builder for chaining.
*/
public Builder clearLastJobId() {
lastJobId_ = getDefaultInstance().getLastJobId();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* string last_job_id = 7;
* @param value The bytes for lastJobId to set.
* @return This builder for chaining.
*/
public Builder setLastJobIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
lastJobId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.Timestamp expireAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireAtBuilder_;
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return Whether the expireAt field is set.
*/
public boolean hasExpireAt() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* .google.protobuf.Timestamp expire_at = 8;
* @return The expireAt.
*/
public com.google.protobuf.Timestamp getExpireAt() {
if (expireAtBuilder_ == null) {
return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_;
} else {
return expireAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public Builder setExpireAt(com.google.protobuf.Timestamp value) {
if (expireAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expireAt_ = value;
} else {
expireAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public Builder setExpireAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (expireAtBuilder_ == null) {
expireAt_ = builderForValue.build();
} else {
expireAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public Builder mergeExpireAt(com.google.protobuf.Timestamp value) {
if (expireAtBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
expireAt_ != null &&
expireAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getExpireAtBuilder().mergeFrom(value);
} else {
expireAt_ = value;
}
} else {
expireAtBuilder_.mergeFrom(value);
}
if (expireAt_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public Builder clearExpireAt() {
bitField0_ = (bitField0_ & ~0x00000100);
expireAt_ = null;
if (expireAtBuilder_ != null) {
expireAtBuilder_.dispose();
expireAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public com.google.protobuf.Timestamp.Builder getExpireAtBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getExpireAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
public com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder() {
if (expireAtBuilder_ != null) {
return expireAtBuilder_.getMessageOrBuilder();
} else {
return expireAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_;
}
}
/**
* .google.protobuf.Timestamp expire_at = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getExpireAtFieldBuilder() {
if (expireAtBuilder_ == null) {
expireAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getExpireAt(),
getParentForChildren(),
isClean());
expireAt_ = null;
}
return expireAtBuilder_;
}
private com.google.protobuf.Timestamp resultExpireAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> resultExpireAtBuilder_;
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return Whether the resultExpireAt field is set.
*/
public boolean hasResultExpireAt() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
* @return The resultExpireAt.
*/
public com.google.protobuf.Timestamp getResultExpireAt() {
if (resultExpireAtBuilder_ == null) {
return resultExpireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : resultExpireAt_;
} else {
return resultExpireAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public Builder setResultExpireAt(com.google.protobuf.Timestamp value) {
if (resultExpireAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultExpireAt_ = value;
} else {
resultExpireAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public Builder setResultExpireAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (resultExpireAtBuilder_ == null) {
resultExpireAt_ = builderForValue.build();
} else {
resultExpireAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public Builder mergeResultExpireAt(com.google.protobuf.Timestamp value) {
if (resultExpireAtBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
resultExpireAt_ != null &&
resultExpireAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getResultExpireAtBuilder().mergeFrom(value);
} else {
resultExpireAt_ = value;
}
} else {
resultExpireAtBuilder_.mergeFrom(value);
}
if (resultExpireAt_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public Builder clearResultExpireAt() {
bitField0_ = (bitField0_ & ~0x00000200);
resultExpireAt_ = null;
if (resultExpireAtBuilder_ != null) {
resultExpireAtBuilder_.dispose();
resultExpireAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public com.google.protobuf.Timestamp.Builder getResultExpireAtBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getResultExpireAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
public com.google.protobuf.TimestampOrBuilder getResultExpireAtOrBuilder() {
if (resultExpireAtBuilder_ != null) {
return resultExpireAtBuilder_.getMessageOrBuilder();
} else {
return resultExpireAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : resultExpireAt_;
}
}
/**
* .google.protobuf.Timestamp result_expire_at = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getResultExpireAtFieldBuilder() {
if (resultExpireAtBuilder_ == null) {
resultExpireAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getResultExpireAt(),
getParentForChildren(),
isClean());
resultExpireAt_ = null;
}
return resultExpireAtBuilder_;
}
private java.lang.Object startedBy_ = "";
/**
* string started_by = 10;
* @return The startedBy.
*/
public java.lang.String getStartedBy() {
java.lang.Object ref = startedBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startedBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string started_by = 10;
* @return The bytes for startedBy.
*/
public com.google.protobuf.ByteString
getStartedByBytes() {
java.lang.Object ref = startedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string started_by = 10;
* @param value The startedBy to set.
* @return This builder for chaining.
*/
public Builder setStartedBy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startedBy_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* string started_by = 10;
* @return This builder for chaining.
*/
public Builder clearStartedBy() {
startedBy_ = getDefaultInstance().getStartedBy();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* string started_by = 10;
* @param value The bytes for startedBy to set.
* @return This builder for chaining.
*/
public Builder setStartedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
startedBy_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* string aborted_by = 11;
* @return Whether the abortedBy field is set.
*/
@java.lang.Override
public boolean hasAbortedBy() {
return actionCase_ == 11;
}
/**
* string aborted_by = 11;
* @return The abortedBy.
*/
@java.lang.Override
public java.lang.String getAbortedBy() {
java.lang.Object ref = "";
if (actionCase_ == 11) {
ref = action_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (actionCase_ == 11) {
action_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string aborted_by = 11;
* @return The bytes for abortedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAbortedByBytes() {
java.lang.Object ref = "";
if (actionCase_ == 11) {
ref = action_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 11) {
action_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string aborted_by = 11;
* @param value The abortedBy to set.
* @return This builder for chaining.
*/
public Builder setAbortedBy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
actionCase_ = 11;
action_ = value;
onChanged();
return this;
}
/**
* string aborted_by = 11;
* @return This builder for chaining.
*/
public Builder clearAbortedBy() {
if (actionCase_ == 11) {
actionCase_ = 0;
action_ = null;
onChanged();
}
return this;
}
/**
* string aborted_by = 11;
* @param value The bytes for abortedBy to set.
* @return This builder for chaining.
*/
public Builder setAbortedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
actionCase_ = 11;
action_ = value;
onChanged();
return this;
}
/**
* string paused_by = 12;
* @return Whether the pausedBy field is set.
*/
@java.lang.Override
public boolean hasPausedBy() {
return actionCase_ == 12;
}
/**
* string paused_by = 12;
* @return The pausedBy.
*/
@java.lang.Override
public java.lang.String getPausedBy() {
java.lang.Object ref = "";
if (actionCase_ == 12) {
ref = action_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (actionCase_ == 12) {
action_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string paused_by = 12;
* @return The bytes for pausedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPausedByBytes() {
java.lang.Object ref = "";
if (actionCase_ == 12) {
ref = action_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 12) {
action_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string paused_by = 12;
* @param value The pausedBy to set.
* @return This builder for chaining.
*/
public Builder setPausedBy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
actionCase_ = 12;
action_ = value;
onChanged();
return this;
}
/**
* string paused_by = 12;
* @return This builder for chaining.
*/
public Builder clearPausedBy() {
if (actionCase_ == 12) {
actionCase_ = 0;
action_ = null;
onChanged();
}
return this;
}
/**
* string paused_by = 12;
* @param value The bytes for pausedBy to set.
* @return This builder for chaining.
*/
public Builder setPausedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
actionCase_ = 12;
action_ = value;
onChanged();
return this;
}
private boolean hasSavedCheckpoints_ ;
/**
*
* One of the versions of this query has fully saved checkpoint.
* If this flag is not set streaming disposition mode "from last checkpoint" can't be used.
*
* One of the versions of this query has fully saved checkpoint.
* If this flag is not set streaming disposition mode "from last checkpoint" can't be used.
*
*
* bool has_saved_checkpoints = 13;
* @param value The hasSavedCheckpoints to set.
* @return This builder for chaining.
*/
public Builder setHasSavedCheckpoints(boolean value) {
hasSavedCheckpoints_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* One of the versions of this query has fully saved checkpoint.
* If this flag is not set streaming disposition mode "from last checkpoint" can't be used.
*
*
* bool has_saved_checkpoints = 13;
* @return This builder for chaining.
*/
public Builder clearHasSavedCheckpoints() {
bitField0_ = (bitField0_ & ~0x00002000);
hasSavedCheckpoints_ = false;
onChanged();
return this;
}
@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:FederatedQuery.QueryMeta)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.QueryMeta)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryMeta 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BriefQueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.BriefQuery)
com.google.protobuf.MessageOrBuilder {
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The type.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getType();
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return Whether the meta field is set.
*/
boolean hasMeta();
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return The meta.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getMeta();
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder getMetaOrBuilder();
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The enum numeric value on the wire for visibility.
*/
int getVisibilityValue();
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The visibility.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility();
/**
* bool automatic = 5;
* @return The automatic.
*/
boolean getAutomatic();
}
/**
* Protobuf type {@code FederatedQuery.BriefQuery}
*/
public static final class BriefQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.BriefQuery)
BriefQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use BriefQuery.newBuilder() to construct.
private BriefQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BriefQuery() {
type_ = 0;
name_ = "";
visibility_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BriefQuery();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_BriefQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_BriefQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_ = 0;
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The type.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getType() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.forNumber(type_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.UNRECOGNIZED : result;
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int META_FIELD_NUMBER = 3;
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta meta_;
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return Whether the meta field is set.
*/
@java.lang.Override
public boolean hasMeta() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return The meta.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getMeta() {
return meta_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance() : meta_;
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder getMetaOrBuilder() {
return meta_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance() : meta_;
}
public static final int VISIBILITY_FIELD_NUMBER = 4;
private int visibility_ = 0;
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The enum numeric value on the wire for visibility.
*/
@java.lang.Override public int getVisibilityValue() {
return visibility_;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The visibility.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.forNumber(visibility_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.UNRECOGNIZED : result;
}
public static final int AUTOMATIC_FIELD_NUMBER = 5;
private boolean automatic_ = false;
/**
* bool automatic = 5;
* @return The automatic.
*/
@java.lang.Override
public boolean getAutomatic() {
return automatic_;
}
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 (type_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.QUERY_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getMeta());
}
if (visibility_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) {
output.writeEnum(4, visibility_);
}
if (automatic_ != false) {
output.writeBool(5, automatic_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.QUERY_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMeta());
}
if (visibility_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, visibility_);
}
if (automatic_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, automatic_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery) obj;
if (type_ != other.type_) return false;
if (!getName()
.equals(other.getName())) return false;
if (hasMeta() != other.hasMeta()) return false;
if (hasMeta()) {
if (!getMeta()
.equals(other.getMeta())) return false;
}
if (visibility_ != other.visibility_) return false;
if (getAutomatic()
!= other.getAutomatic()) 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();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasMeta()) {
hash = (37 * hash) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().hashCode();
}
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + visibility_;
hash = (37 * hash) + AUTOMATIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutomatic());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery 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 FederatedQuery.BriefQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.BriefQuery)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_BriefQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_BriefQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetaFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = 0;
name_ = "";
meta_ = null;
if (metaBuilder_ != null) {
metaBuilder_.dispose();
metaBuilder_ = null;
}
visibility_ = 0;
automatic_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_BriefQuery_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.meta_ = metaBuilder_ == null
? meta_
: metaBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.visibility_ = visibility_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.automatic_ = automatic_;
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMeta()) {
mergeMeta(other.getMeta());
}
if (other.visibility_ != 0) {
setVisibilityValue(other.getVisibilityValue());
}
if (other.getAutomatic() != false) {
setAutomatic(other.getAutomatic());
}
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 8: {
type_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getMetaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
visibility_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
automatic_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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 int type_ = 0;
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return The type.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getType() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.forNumber(type_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.UNRECOGNIZED : result;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .FederatedQuery.QueryContent.QueryType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string name = 2 [(.Ydb.length) = { ... }
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta meta_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder> metaBuilder_;
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return Whether the meta field is set.
*/
public boolean hasMeta() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .FederatedQuery.QueryMeta meta = 3;
* @return The meta.
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta getMeta() {
if (metaBuilder_ == null) {
return meta_ == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance() : meta_;
} else {
return metaBuilder_.getMessage();
}
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public Builder setMeta(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
meta_ = value;
} else {
metaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public Builder setMeta(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder builderForValue) {
if (metaBuilder_ == null) {
meta_ = builderForValue.build();
} else {
metaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public Builder mergeMeta(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta value) {
if (metaBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
meta_ != null &&
meta_ != tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance()) {
getMetaBuilder().mergeFrom(value);
} else {
meta_ = value;
}
} else {
metaBuilder_.mergeFrom(value);
}
if (meta_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public Builder clearMeta() {
bitField0_ = (bitField0_ & ~0x00000004);
meta_ = null;
if (metaBuilder_ != null) {
metaBuilder_.dispose();
metaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder getMetaBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMetaFieldBuilder().getBuilder();
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder getMetaOrBuilder() {
if (metaBuilder_ != null) {
return metaBuilder_.getMessageOrBuilder();
} else {
return meta_ == null ?
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.getDefaultInstance() : meta_;
}
}
/**
* .FederatedQuery.QueryMeta meta = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder>
getMetaFieldBuilder() {
if (metaBuilder_ == null) {
metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.Builder, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMetaOrBuilder>(
getMeta(),
getParentForChildren(),
isClean());
meta_ = null;
}
return metaBuilder_;
}
private int visibility_ = 0;
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The enum numeric value on the wire for visibility.
*/
@java.lang.Override public int getVisibilityValue() {
return visibility_;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @param value The enum numeric value on the wire for visibility to set.
* @return This builder for chaining.
*/
public Builder setVisibilityValue(int value) {
visibility_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return The visibility.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.forNumber(visibility_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility.UNRECOGNIZED : result;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @param value The visibility to set.
* @return This builder for chaining.
*/
public Builder setVisibility(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
visibility_ = value.getNumber();
onChanged();
return this;
}
/**
* .FederatedQuery.Acl.Visibility visibility = 4;
* @return This builder for chaining.
*/
public Builder clearVisibility() {
bitField0_ = (bitField0_ & ~0x00000008);
visibility_ = 0;
onChanged();
return this;
}
private boolean automatic_ ;
/**
* bool automatic = 5;
* @return The automatic.
*/
@java.lang.Override
public boolean getAutomatic() {
return automatic_;
}
/**
* bool automatic = 5;
* @param value The automatic to set.
* @return This builder for chaining.
*/
public Builder setAutomatic(boolean value) {
automatic_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool automatic = 5;
* @return This builder for chaining.
*/
public Builder clearAutomatic() {
bitField0_ = (bitField0_ & ~0x00000010);
automatic_ = false;
onChanged();
return this;
}
@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:FederatedQuery.BriefQuery)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.BriefQuery)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BriefQuery 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.BriefQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryPlanOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.QueryPlan)
com.google.protobuf.MessageOrBuilder {
/**
*
* No validation because generated on server side
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@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:FederatedQuery.CreateQueryResponse)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.CreateQueryResponse)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResponse();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateQueryResponse 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateQueryResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.CreateQueryResult)
com.google.protobuf.MessageOrBuilder {
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The queryId.
*/
java.lang.String getQueryId();
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for queryId.
*/
com.google.protobuf.ByteString
getQueryIdBytes();
}
/**
* Protobuf type {@code FederatedQuery.CreateQueryResult}
*/
public static final class CreateQueryResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.CreateQueryResult)
CreateQueryResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateQueryResult.newBuilder() to construct.
private CreateQueryResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateQueryResult() {
queryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateQueryResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CreateQueryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CreateQueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.Builder.class);
}
public static final int QUERY_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object queryId_ = "";
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The queryId.
*/
@java.lang.Override
public java.lang.String getQueryId() {
java.lang.Object ref = queryId_;
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();
queryId_ = s;
return s;
}
}
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for queryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryIdBytes() {
java.lang.Object ref = queryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryId_);
}
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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult)) {
return super.equals(obj);
}
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult other = (tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult) obj;
if (!getQueryId()
.equals(other.getQueryId())) 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();
hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getQueryId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult 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(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult 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 FederatedQuery.CreateQueryResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FederatedQuery.CreateQueryResult)
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CreateQueryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CreateQueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.Builder.class);
}
// Construct using tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queryId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_CreateQueryResult_descriptor;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult getDefaultInstanceForType() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult build() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult buildPartial() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult result = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queryId_ = queryId_;
}
}
@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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult) {
return mergeFrom((tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult other) {
if (other == tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult.getDefaultInstance()) return this;
if (!other.getQueryId().isEmpty()) {
queryId_ = other.queryId_;
bitField0_ |= 0x00000001;
onChanged();
}
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: {
queryId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 java.lang.Object queryId_ = "";
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The queryId.
*/
public java.lang.String getQueryId() {
java.lang.Object ref = queryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
queryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for queryId.
*/
public com.google.protobuf.ByteString
getQueryIdBytes() {
java.lang.Object ref = queryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @param value The queryId to set.
* @return This builder for chaining.
*/
public Builder setQueryId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
queryId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearQueryId() {
queryId_ = getDefaultInstance().getQueryId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string query_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for queryId to set.
* @return This builder for chaining.
*/
public Builder setQueryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
queryId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@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:FederatedQuery.CreateQueryResult)
}
// @@protoc_insertion_point(class_scope:FederatedQuery.CreateQueryResult)
private static final tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult();
}
public static tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateQueryResult 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 tech.ydb.proto.draft.federated.query.YdbFederatedQuery.CreateQueryResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListQueriesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.ListQueriesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
tech.ydb.proto.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string page_token = 2 [(.Ydb.length) = { ... }
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
* string page_token = 2 [(.Ydb.length) = { ... }
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
* int32 limit = 3 [(.Ydb.value) = "[1; 100]"];
* @return The limit.
*/
int getLimit();
/**
* .FederatedQuery.ListQueriesRequest.Filter filter = 4;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
* .FederatedQuery.ListQueriesRequest.Filter filter = 4;
* @return The filter.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.Filter getFilter();
/**
* .FederatedQuery.ListQueriesRequest.Filter filter = 4;
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.FilterOrBuilder getFilterOrBuilder();
}
/**
*
* Getting brief information about queries
*
*
* Protobuf type {@code FederatedQuery.ListQueriesRequest}
*/
public static final class ListQueriesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.ListQueriesRequest)
ListQueriesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListQueriesRequest.newBuilder() to construct.
private ListQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListQueriesRequest() {
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListQueriesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_ListQueriesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_ListQueriesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.Builder.class);
}
public interface FilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:FederatedQuery.ListQueriesRequest.Filter)
com.google.protobuf.MessageOrBuilder {
/**
* .FederatedQuery.QueryContent.QueryType query_type = 1;
* @return The enum numeric value on the wire for queryType.
*/
int getQueryTypeValue();
/**
* .FederatedQuery.QueryContent.QueryType query_type = 1;
* @return The queryType.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getQueryType();
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return A list containing the status.
*/
java.util.List getStatusList();
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return The count of status.
*/
int getStatusCount();
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @param index The index of the element to return.
* @return The status at the given index.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus getStatus(int index);
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return A list containing the enum numeric values on the wire for status.
*/
java.util.List
getStatusValueList();
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
int getStatusValue(int index);
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return A list containing the mode.
*/
java.util.List getModeList();
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return The count of mode.
*/
int getModeCount();
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @param index The index of the element to return.
* @return The mode at the given index.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode getMode(int index);
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return A list containing the enum numeric values on the wire for mode.
*/
java.util.List
getModeValueList();
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @param index The index of the value to return.
* @return The enum numeric value on the wire of mode at the given index.
*/
int getModeValue(int index);
/**
*
* queries whose name contains the filter.name substring
*
*
* string name = 4 [(.Ydb.length) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* queries whose name contains the filter.name substring
*
*
* string name = 4 [(.Ydb.length) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* bool created_by_me = 5;
* @return The createdByMe.
*/
boolean getCreatedByMe();
/**
* .FederatedQuery.Acl.Visibility visibility = 6;
* @return The enum numeric value on the wire for visibility.
*/
int getVisibilityValue();
/**
* .FederatedQuery.Acl.Visibility visibility = 6;
* @return The visibility.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.Acl.Visibility getVisibility();
/**
* .FederatedQuery.AutomaticType automatic = 7;
* @return The enum numeric value on the wire for automatic.
*/
int getAutomaticValue();
/**
* .FederatedQuery.AutomaticType automatic = 7;
* @return The automatic.
*/
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.AutomaticType getAutomatic();
}
/**
* Protobuf type {@code FederatedQuery.ListQueriesRequest.Filter}
*/
public static final class Filter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FederatedQuery.ListQueriesRequest.Filter)
FilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use Filter.newBuilder() to construct.
private Filter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Filter() {
queryType_ = 0;
status_ = java.util.Collections.emptyList();
mode_ = java.util.Collections.emptyList();
name_ = "";
visibility_ = 0;
automatic_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Filter();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_ListQueriesRequest_Filter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.draft.federated.query.YdbFederatedQuery.internal_static_FederatedQuery_ListQueriesRequest_Filter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.Filter.class, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ListQueriesRequest.Filter.Builder.class);
}
public static final int QUERY_TYPE_FIELD_NUMBER = 1;
private int queryType_ = 0;
/**
* .FederatedQuery.QueryContent.QueryType query_type = 1;
* @return The enum numeric value on the wire for queryType.
*/
@java.lang.Override public int getQueryTypeValue() {
return queryType_;
}
/**
* .FederatedQuery.QueryContent.QueryType query_type = 1;
* @return The queryType.
*/
@java.lang.Override public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType getQueryType() {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.forNumber(queryType_);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryContent.QueryType.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List status_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus> status_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus>() {
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus convert(java.lang.Integer from) {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.forNumber(from);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus.UNRECOGNIZED : result;
}
};
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return A list containing the status.
*/
@java.lang.Override
public java.util.List getStatusList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus>(status_, status_converter_);
}
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return The count of status.
*/
@java.lang.Override
public int getStatusCount() {
return status_.size();
}
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @param index The index of the element to return.
* @return The status at the given index.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.QueryMeta.ComputeStatus getStatus(int index) {
return status_converter_.convert(status_.get(index));
}
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @return A list containing the enum numeric values on the wire for status.
*/
@java.lang.Override
public java.util.List
getStatusValueList() {
return status_;
}
/**
* repeated .FederatedQuery.QueryMeta.ComputeStatus status = 2 [(.Ydb.size) = { ... }
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
@java.lang.Override
public int getStatusValue(int index) {
return status_.get(index);
}
private int statusMemoizedSerializedSize;
public static final int MODE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List mode_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode> mode_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode>() {
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode convert(java.lang.Integer from) {
tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode result = tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.forNumber(from);
return result == null ? tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode.UNRECOGNIZED : result;
}
};
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return A list containing the mode.
*/
@java.lang.Override
public java.util.List getModeList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode>(mode_, mode_converter_);
}
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return The count of mode.
*/
@java.lang.Override
public int getModeCount() {
return mode_.size();
}
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @param index The index of the element to return.
* @return The mode at the given index.
*/
@java.lang.Override
public tech.ydb.proto.draft.federated.query.YdbFederatedQuery.ExecuteMode getMode(int index) {
return mode_converter_.convert(mode_.get(index));
}
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @return A list containing the enum numeric values on the wire for mode.
*/
@java.lang.Override
public java.util.List
getModeValueList() {
return mode_;
}
/**
* repeated .FederatedQuery.ExecuteMode mode = 3 [(.Ydb.size) = { ... }
* @param index The index of the value to return.
* @return The enum numeric value on the wire of mode at the given index.
*/
@java.lang.Override
public int getModeValue(int index) {
return mode_.get(index);
}
private int modeMemoizedSerializedSize;
public static final int NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* queries whose name contains the filter.name substring
*