com.yandex.ydb.scheme.SchemeOperationProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_scheme.proto
package com.yandex.ydb.scheme;
public final class SchemeOperationProtos {
private SchemeOperationProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MakeDirectoryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.MakeDirectoryRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* Create directory.
* All intermediate directories must be created
*
*
* Protobuf type {@code Ydb.Scheme.MakeDirectoryRequest}
*/
public static final class MakeDirectoryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.MakeDirectoryRequest)
MakeDirectoryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use MakeDirectoryRequest.newBuilder() to construct.
private MakeDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private MakeDirectoryRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MakeDirectoryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MakeDirectoryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = 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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest other = (com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest 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;
}
/**
*
* Create directory.
* All intermediate directories must be created
*
*
* Protobuf type {@code Ydb.Scheme.MakeDirectoryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.MakeDirectoryRequest)
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest build() {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest result = new com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
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:Ydb.Scheme.MakeDirectoryRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.MakeDirectoryRequest)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MakeDirectoryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MakeDirectoryRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MakeDirectoryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.MakeDirectoryResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.MakeDirectoryResponse}
*/
public static final class MakeDirectoryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.MakeDirectoryResponse)
MakeDirectoryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MakeDirectoryResponse.newBuilder() to construct.
private MakeDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private MakeDirectoryResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MakeDirectoryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MakeDirectoryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse other = (com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse 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 Ydb.Scheme.MakeDirectoryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.MakeDirectoryResponse)
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse build() {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse result = new com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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:Ydb.Scheme.MakeDirectoryResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.MakeDirectoryResponse)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MakeDirectoryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MakeDirectoryResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDirectoryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.RemoveDirectoryRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* Remove directory
*
*
* Protobuf type {@code Ydb.Scheme.RemoveDirectoryRequest}
*/
public static final class RemoveDirectoryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.RemoveDirectoryRequest)
RemoveDirectoryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDirectoryRequest.newBuilder() to construct.
private RemoveDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RemoveDirectoryRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDirectoryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDirectoryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = 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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest other = (com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest 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;
}
/**
*
* Remove directory
*
*
* Protobuf type {@code Ydb.Scheme.RemoveDirectoryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.RemoveDirectoryRequest)
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest build() {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest result = new com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
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:Ydb.Scheme.RemoveDirectoryRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.RemoveDirectoryRequest)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDirectoryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDirectoryRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDirectoryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.RemoveDirectoryResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.RemoveDirectoryResponse}
*/
public static final class RemoveDirectoryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.RemoveDirectoryResponse)
RemoveDirectoryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDirectoryResponse.newBuilder() to construct.
private RemoveDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RemoveDirectoryResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDirectoryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDirectoryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse other = (com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse 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 Ydb.Scheme.RemoveDirectoryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.RemoveDirectoryResponse)
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse build() {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse result = new com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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:Ydb.Scheme.RemoveDirectoryResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.RemoveDirectoryResponse)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDirectoryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDirectoryResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDirectoryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.ListDirectoryRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* List directory
*
*
* Protobuf type {@code Ydb.Scheme.ListDirectoryRequest}
*/
public static final class ListDirectoryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.ListDirectoryRequest)
ListDirectoryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDirectoryRequest.newBuilder() to construct.
private ListDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ListDirectoryRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDirectoryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDirectoryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = 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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest other = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest 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;
}
/**
*
* List directory
*
*
* Protobuf type {@code Ydb.Scheme.ListDirectoryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.ListDirectoryRequest)
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest build() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest result = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
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:Ydb.Scheme.ListDirectoryRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.ListDirectoryRequest)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDirectoryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDirectoryRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDirectoryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.ListDirectoryResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.ListDirectoryResponse}
*/
public static final class ListDirectoryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.ListDirectoryResponse)
ListDirectoryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDirectoryResponse.newBuilder() to construct.
private ListDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ListDirectoryResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDirectoryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDirectoryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse other = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse 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 Ydb.Scheme.ListDirectoryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.ListDirectoryResponse)
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse build() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse result = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* Holds ListDirectoryResult in case of successful call
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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:Ydb.Scheme.ListDirectoryResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.ListDirectoryResponse)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDirectoryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDirectoryResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PermissionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.Permissions)
com.google.protobuf.MessageOrBuilder {
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The subject.
*/
java.lang.String getSubject();
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The bytes for subject.
*/
com.google.protobuf.ByteString
getSubjectBytes();
/**
* repeated string permission_names = 2;
* @return A list containing the permissionNames.
*/
java.util.List
getPermissionNamesList();
/**
* repeated string permission_names = 2;
* @return The count of permissionNames.
*/
int getPermissionNamesCount();
/**
* repeated string permission_names = 2;
* @param index The index of the element to return.
* @return The permissionNames at the given index.
*/
java.lang.String getPermissionNames(int index);
/**
* repeated string permission_names = 2;
* @param index The index of the value to return.
* @return The bytes of the permissionNames at the given index.
*/
com.google.protobuf.ByteString
getPermissionNamesBytes(int index);
}
/**
* Protobuf type {@code Ydb.Scheme.Permissions}
*/
public static final class Permissions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.Permissions)
PermissionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Permissions.newBuilder() to construct.
private Permissions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Permissions() {
subject_ = "";
permissionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Permissions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Permissions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
subject_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
permissionNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
permissionNames_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
permissionNames_ = permissionNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Permissions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Permissions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.class, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder.class);
}
public static final int SUBJECT_FIELD_NUMBER = 1;
private volatile java.lang.Object subject_;
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The subject.
*/
@java.lang.Override
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
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();
subject_ = s;
return s;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The bytes for subject.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERMISSION_NAMES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList permissionNames_;
/**
* repeated string permission_names = 2;
* @return A list containing the permissionNames.
*/
public com.google.protobuf.ProtocolStringList
getPermissionNamesList() {
return permissionNames_;
}
/**
* repeated string permission_names = 2;
* @return The count of permissionNames.
*/
public int getPermissionNamesCount() {
return permissionNames_.size();
}
/**
* repeated string permission_names = 2;
* @param index The index of the element to return.
* @return The permissionNames at the given index.
*/
public java.lang.String getPermissionNames(int index) {
return permissionNames_.get(index);
}
/**
* repeated string permission_names = 2;
* @param index The index of the value to return.
* @return The bytes of the permissionNames at the given index.
*/
public com.google.protobuf.ByteString
getPermissionNamesBytes(int index) {
return permissionNames_.getByteString(index);
}
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(subject_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_);
}
for (int i = 0; i < permissionNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, permissionNames_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_);
}
{
int dataSize = 0;
for (int i = 0; i < permissionNames_.size(); i++) {
dataSize += computeStringSizeNoTag(permissionNames_.getRaw(i));
}
size += dataSize;
size += 1 * getPermissionNamesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.Permissions)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions other = (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) obj;
if (!getSubject()
.equals(other.getSubject())) return false;
if (!getPermissionNamesList()
.equals(other.getPermissionNamesList())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
if (getPermissionNamesCount() > 0) {
hash = (37 * hash) + PERMISSION_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getPermissionNamesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions 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 Ydb.Scheme.Permissions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.Permissions)
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Permissions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Permissions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.class, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
subject_ = "";
permissionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Permissions_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions build() {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions result = new com.yandex.ydb.scheme.SchemeOperationProtos.Permissions(this);
int from_bitField0_ = bitField0_;
result.subject_ = subject_;
if (((bitField0_ & 0x00000001) != 0)) {
permissionNames_ = permissionNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.permissionNames_ = permissionNames_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance()) return this;
if (!other.getSubject().isEmpty()) {
subject_ = other.subject_;
onChanged();
}
if (!other.permissionNames_.isEmpty()) {
if (permissionNames_.isEmpty()) {
permissionNames_ = other.permissionNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePermissionNamesIsMutable();
permissionNames_.addAll(other.permissionNames_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object subject_ = "";
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The subject.
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return The bytes for subject.
*/
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @param value The subject to set.
* @return This builder for chaining.
*/
public Builder setSubject(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subject_ = value;
onChanged();
return this;
}
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @return This builder for chaining.
*/
public Builder clearSubject() {
subject_ = getDefaultInstance().getSubject();
onChanged();
return this;
}
/**
*
* SID (Security ID) of user or group
*
*
* string subject = 1;
* @param value The bytes for subject to set.
* @return This builder for chaining.
*/
public Builder setSubjectBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subject_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList permissionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePermissionNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
permissionNames_ = new com.google.protobuf.LazyStringArrayList(permissionNames_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string permission_names = 2;
* @return A list containing the permissionNames.
*/
public com.google.protobuf.ProtocolStringList
getPermissionNamesList() {
return permissionNames_.getUnmodifiableView();
}
/**
* repeated string permission_names = 2;
* @return The count of permissionNames.
*/
public int getPermissionNamesCount() {
return permissionNames_.size();
}
/**
* repeated string permission_names = 2;
* @param index The index of the element to return.
* @return The permissionNames at the given index.
*/
public java.lang.String getPermissionNames(int index) {
return permissionNames_.get(index);
}
/**
* repeated string permission_names = 2;
* @param index The index of the value to return.
* @return The bytes of the permissionNames at the given index.
*/
public com.google.protobuf.ByteString
getPermissionNamesBytes(int index) {
return permissionNames_.getByteString(index);
}
/**
* repeated string permission_names = 2;
* @param index The index to set the value at.
* @param value The permissionNames to set.
* @return This builder for chaining.
*/
public Builder setPermissionNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionNamesIsMutable();
permissionNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string permission_names = 2;
* @param value The permissionNames to add.
* @return This builder for chaining.
*/
public Builder addPermissionNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionNamesIsMutable();
permissionNames_.add(value);
onChanged();
return this;
}
/**
* repeated string permission_names = 2;
* @param values The permissionNames to add.
* @return This builder for chaining.
*/
public Builder addAllPermissionNames(
java.lang.Iterable values) {
ensurePermissionNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, permissionNames_);
onChanged();
return this;
}
/**
* repeated string permission_names = 2;
* @return This builder for chaining.
*/
public Builder clearPermissionNames() {
permissionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string permission_names = 2;
* @param value The bytes of the permissionNames to add.
* @return This builder for chaining.
*/
public Builder addPermissionNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePermissionNamesIsMutable();
permissionNames_.add(value);
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:Ydb.Scheme.Permissions)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.Permissions)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.Permissions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.Permissions();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Permissions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Permissions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.Entry)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The owner.
*/
java.lang.String getOwner();
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The bytes for owner.
*/
com.google.protobuf.ByteString
getOwnerBytes();
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The type.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type getType();
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
java.util.List
getEffectivePermissionsList();
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getEffectivePermissions(int index);
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
int getEffectivePermissionsCount();
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
java.util.List
getEffectivePermissionsOrBuilderList();
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getEffectivePermissionsOrBuilder(
int index);
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
java.util.List
getPermissionsList();
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getPermissions(int index);
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
int getPermissionsCount();
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
java.util.List
getPermissionsOrBuilderList();
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getPermissionsOrBuilder(
int index);
/**
*
* Size of entry in bytes. Currently filled for:
* - TABLE;
* - DATABASE.
* Empty (zero) in other cases.
*
*
* uint64 size_bytes = 8;
* @return The sizeBytes.
*/
long getSizeBytes();
}
/**
* Protobuf type {@code Ydb.Scheme.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Entry() {
name_ = "";
owner_ = "";
type_ = 0;
effectivePermissions_ = java.util.Collections.emptyList();
permissions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Entry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
owner_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
effectivePermissions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
effectivePermissions_.add(
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
permissions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
permissions_.add(
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.parser(), extensionRegistry));
break;
}
case 64: {
sizeBytes_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
effectivePermissions_ = java.util.Collections.unmodifiableList(effectivePermissions_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.class, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Scheme.Entry.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
* DIRECTORY = 1;
*/
DIRECTORY(1),
/**
* TABLE = 2;
*/
TABLE(2),
/**
* PERS_QUEUE_GROUP = 3;
*/
PERS_QUEUE_GROUP(3),
/**
* DATABASE = 4;
*/
DATABASE(4),
/**
* RTMR_VOLUME = 5;
*/
RTMR_VOLUME(5),
/**
* BLOCK_STORE_VOLUME = 6;
*/
BLOCK_STORE_VOLUME(6),
/**
* COORDINATION_NODE = 7;
*/
COORDINATION_NODE(7),
/**
* COLUMN_TABLE = 13;
*/
COLUMN_TABLE(13),
/**
* SEQUENCE = 15;
*/
SEQUENCE(15),
/**
* REPLICATION = 16;
*/
REPLICATION(16),
/**
* TOPIC = 17;
*/
TOPIC(17),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
* DIRECTORY = 1;
*/
public static final int DIRECTORY_VALUE = 1;
/**
* TABLE = 2;
*/
public static final int TABLE_VALUE = 2;
/**
* PERS_QUEUE_GROUP = 3;
*/
public static final int PERS_QUEUE_GROUP_VALUE = 3;
/**
* DATABASE = 4;
*/
public static final int DATABASE_VALUE = 4;
/**
* RTMR_VOLUME = 5;
*/
public static final int RTMR_VOLUME_VALUE = 5;
/**
* BLOCK_STORE_VOLUME = 6;
*/
public static final int BLOCK_STORE_VOLUME_VALUE = 6;
/**
* COORDINATION_NODE = 7;
*/
public static final int COORDINATION_NODE_VALUE = 7;
/**
* COLUMN_TABLE = 13;
*/
public static final int COLUMN_TABLE_VALUE = 13;
/**
* SEQUENCE = 15;
*/
public static final int SEQUENCE_VALUE = 15;
/**
* REPLICATION = 16;
*/
public static final int REPLICATION_VALUE = 16;
/**
* TOPIC = 17;
*/
public static final int TOPIC_VALUE = 17;
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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return DIRECTORY;
case 2: return TABLE;
case 3: return PERS_QUEUE_GROUP;
case 4: return DATABASE;
case 5: return RTMR_VOLUME;
case 6: return BLOCK_STORE_VOLUME;
case 7: return COORDINATION_NODE;
case 13: return COLUMN_TABLE;
case 15: return SEQUENCE;
case 16: return REPLICATION;
case 17: return TOPIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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 com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Scheme.Entry.Type)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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;
}
}
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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 OWNER_FIELD_NUMBER = 2;
private volatile java.lang.Object owner_;
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The owner.
*/
@java.lang.Override
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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();
owner_ = s;
return s;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The bytes for owner.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_;
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The type.
*/
@java.lang.Override public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type getType() {
@SuppressWarnings("deprecation")
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type result = com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.valueOf(type_);
return result == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.UNRECOGNIZED : result;
}
public static final int EFFECTIVE_PERMISSIONS_FIELD_NUMBER = 6;
private java.util.List effectivePermissions_;
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
@java.lang.Override
public java.util.List getEffectivePermissionsList() {
return effectivePermissions_;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
@java.lang.Override
public java.util.List
getEffectivePermissionsOrBuilderList() {
return effectivePermissions_;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
@java.lang.Override
public int getEffectivePermissionsCount() {
return effectivePermissions_.size();
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getEffectivePermissions(int index) {
return effectivePermissions_.get(index);
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getEffectivePermissionsOrBuilder(
int index) {
return effectivePermissions_.get(index);
}
public static final int PERMISSIONS_FIELD_NUMBER = 7;
private java.util.List permissions_;
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
@java.lang.Override
public java.util.List getPermissionsList() {
return permissions_;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
@java.lang.Override
public java.util.List
getPermissionsOrBuilderList() {
return permissions_;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
@java.lang.Override
public int getPermissionsCount() {
return permissions_.size();
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getPermissions(int index) {
return permissions_.get(index);
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getPermissionsOrBuilder(
int index) {
return permissions_.get(index);
}
public static final int SIZE_BYTES_FIELD_NUMBER = 8;
private long sizeBytes_;
/**
*
* Size of entry in bytes. Currently filled for:
* - TABLE;
* - DATABASE.
* Empty (zero) in other cases.
*
*
* uint64 size_bytes = 8;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_);
}
if (type_ != com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, type_);
}
for (int i = 0; i < effectivePermissions_.size(); i++) {
output.writeMessage(6, effectivePermissions_.get(i));
}
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(7, permissions_.get(i));
}
if (sizeBytes_ != 0L) {
output.writeUInt64(8, sizeBytes_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_);
}
if (type_ != com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
for (int i = 0; i < effectivePermissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, effectivePermissions_.get(i));
}
for (int i = 0; i < permissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, permissions_.get(i));
}
if (sizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, sizeBytes_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.Entry)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.Entry other = (com.yandex.ydb.scheme.SchemeOperationProtos.Entry) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getOwner()
.equals(other.getOwner())) return false;
if (type_ != other.type_) return false;
if (!getEffectivePermissionsList()
.equals(other.getEffectivePermissionsList())) return false;
if (!getPermissionsList()
.equals(other.getPermissionsList())) return false;
if (getSizeBytes()
!= other.getSizeBytes()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getEffectivePermissionsCount() > 0) {
hash = (37 * hash) + EFFECTIVE_PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + getEffectivePermissionsList().hashCode();
}
if (getPermissionsCount() > 0) {
hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + getPermissionsList().hashCode();
}
hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSizeBytes());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.Entry 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 Ydb.Scheme.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.Entry)
com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.class, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.Entry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEffectivePermissionsFieldBuilder();
getPermissionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
owner_ = "";
type_ = 0;
if (effectivePermissionsBuilder_ == null) {
effectivePermissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
effectivePermissionsBuilder_.clear();
}
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
permissionsBuilder_.clear();
}
sizeBytes_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_Entry_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry build() {
com.yandex.ydb.scheme.SchemeOperationProtos.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.Entry result = new com.yandex.ydb.scheme.SchemeOperationProtos.Entry(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.owner_ = owner_;
result.type_ = type_;
if (effectivePermissionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
effectivePermissions_ = java.util.Collections.unmodifiableList(effectivePermissions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.effectivePermissions_ = effectivePermissions_;
} else {
result.effectivePermissions_ = effectivePermissionsBuilder_.build();
}
if (permissionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.permissions_ = permissions_;
} else {
result.permissions_ = permissionsBuilder_.build();
}
result.sizeBytes_ = sizeBytes_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.Entry) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.Entry other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getOwner().isEmpty()) {
owner_ = other.owner_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (effectivePermissionsBuilder_ == null) {
if (!other.effectivePermissions_.isEmpty()) {
if (effectivePermissions_.isEmpty()) {
effectivePermissions_ = other.effectivePermissions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEffectivePermissionsIsMutable();
effectivePermissions_.addAll(other.effectivePermissions_);
}
onChanged();
}
} else {
if (!other.effectivePermissions_.isEmpty()) {
if (effectivePermissionsBuilder_.isEmpty()) {
effectivePermissionsBuilder_.dispose();
effectivePermissionsBuilder_ = null;
effectivePermissions_ = other.effectivePermissions_;
bitField0_ = (bitField0_ & ~0x00000001);
effectivePermissionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEffectivePermissionsFieldBuilder() : null;
} else {
effectivePermissionsBuilder_.addAllMessages(other.effectivePermissions_);
}
}
}
if (permissionsBuilder_ == null) {
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
}
onChanged();
}
} else {
if (!other.permissions_.isEmpty()) {
if (permissionsBuilder_.isEmpty()) {
permissionsBuilder_.dispose();
permissionsBuilder_ = null;
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000002);
permissionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPermissionsFieldBuilder() : null;
} else {
permissionsBuilder_.addAllMessages(other.permissions_);
}
}
}
if (other.getSizeBytes() != 0L) {
setSizeBytes(other.getSizeBytes());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.Entry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.Entry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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;
}
}
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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;
}
}
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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;
onChanged();
return this;
}
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of scheme entry (dir2 of /dir1/dir2)
*
*
* string name = 1;
* @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;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The owner.
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return The bytes for owner.
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @param value The owner to set.
* @return This builder for chaining.
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
onChanged();
return this;
}
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @return This builder for chaining.
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
*
* SID (Security ID) of user or group
*
*
* string owner = 2;
* @param value The bytes for owner to set.
* @return This builder for chaining.
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
owner_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @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;
onChanged();
return this;
}
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return The type.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type getType() {
@SuppressWarnings("deprecation")
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type result = com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.valueOf(type_);
return result == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type.UNRECOGNIZED : result;
}
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Scheme.Entry.Type type = 5;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.util.List effectivePermissions_ =
java.util.Collections.emptyList();
private void ensureEffectivePermissionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
effectivePermissions_ = new java.util.ArrayList(effectivePermissions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder> effectivePermissionsBuilder_;
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public java.util.List getEffectivePermissionsList() {
if (effectivePermissionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(effectivePermissions_);
} else {
return effectivePermissionsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public int getEffectivePermissionsCount() {
if (effectivePermissionsBuilder_ == null) {
return effectivePermissions_.size();
} else {
return effectivePermissionsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getEffectivePermissions(int index) {
if (effectivePermissionsBuilder_ == null) {
return effectivePermissions_.get(index);
} else {
return effectivePermissionsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder setEffectivePermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (effectivePermissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectivePermissionsIsMutable();
effectivePermissions_.set(index, value);
onChanged();
} else {
effectivePermissionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder setEffectivePermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (effectivePermissionsBuilder_ == null) {
ensureEffectivePermissionsIsMutable();
effectivePermissions_.set(index, builderForValue.build());
onChanged();
} else {
effectivePermissionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder addEffectivePermissions(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (effectivePermissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectivePermissionsIsMutable();
effectivePermissions_.add(value);
onChanged();
} else {
effectivePermissionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder addEffectivePermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (effectivePermissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectivePermissionsIsMutable();
effectivePermissions_.add(index, value);
onChanged();
} else {
effectivePermissionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder addEffectivePermissions(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (effectivePermissionsBuilder_ == null) {
ensureEffectivePermissionsIsMutable();
effectivePermissions_.add(builderForValue.build());
onChanged();
} else {
effectivePermissionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder addEffectivePermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (effectivePermissionsBuilder_ == null) {
ensureEffectivePermissionsIsMutable();
effectivePermissions_.add(index, builderForValue.build());
onChanged();
} else {
effectivePermissionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder addAllEffectivePermissions(
java.lang.Iterable values) {
if (effectivePermissionsBuilder_ == null) {
ensureEffectivePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, effectivePermissions_);
onChanged();
} else {
effectivePermissionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder clearEffectivePermissions() {
if (effectivePermissionsBuilder_ == null) {
effectivePermissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
effectivePermissionsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public Builder removeEffectivePermissions(int index) {
if (effectivePermissionsBuilder_ == null) {
ensureEffectivePermissionsIsMutable();
effectivePermissions_.remove(index);
onChanged();
} else {
effectivePermissionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder getEffectivePermissionsBuilder(
int index) {
return getEffectivePermissionsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getEffectivePermissionsOrBuilder(
int index) {
if (effectivePermissionsBuilder_ == null) {
return effectivePermissions_.get(index); } else {
return effectivePermissionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public java.util.List
getEffectivePermissionsOrBuilderList() {
if (effectivePermissionsBuilder_ != null) {
return effectivePermissionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(effectivePermissions_);
}
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder addEffectivePermissionsBuilder() {
return getEffectivePermissionsFieldBuilder().addBuilder(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder addEffectivePermissionsBuilder(
int index) {
return getEffectivePermissionsFieldBuilder().addBuilder(
index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Permissions effective_permissions = 6;
*/
public java.util.List
getEffectivePermissionsBuilderList() {
return getEffectivePermissionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>
getEffectivePermissionsFieldBuilder() {
if (effectivePermissionsBuilder_ == null) {
effectivePermissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>(
effectivePermissions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
effectivePermissions_ = null;
}
return effectivePermissionsBuilder_;
}
private java.util.List permissions_ =
java.util.Collections.emptyList();
private void ensurePermissionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
permissions_ = new java.util.ArrayList(permissions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder> permissionsBuilder_;
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public java.util.List getPermissionsList() {
if (permissionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(permissions_);
} else {
return permissionsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public int getPermissionsCount() {
if (permissionsBuilder_ == null) {
return permissions_.size();
} else {
return permissionsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getPermissions(int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index);
} else {
return permissionsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder setPermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.set(index, value);
onChanged();
} else {
permissionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder setPermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.set(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder addPermissions(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(value);
onChanged();
} else {
permissionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder addPermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(index, value);
onChanged();
} else {
permissionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder addPermissions(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder addPermissions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder addAllPermissions(
java.lang.Iterable values) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, permissions_);
onChanged();
} else {
permissionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder clearPermissions() {
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
permissionsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public Builder removePermissions(int index) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.remove(index);
onChanged();
} else {
permissionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder getPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getPermissionsOrBuilder(
int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index); } else {
return permissionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public java.util.List
getPermissionsOrBuilderList() {
if (permissionsBuilder_ != null) {
return permissionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(permissions_);
}
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder addPermissionsBuilder() {
return getPermissionsFieldBuilder().addBuilder(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder addPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().addBuilder(
index, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Permissions permissions = 7;
*/
public java.util.List
getPermissionsBuilderList() {
return getPermissionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>
getPermissionsFieldBuilder() {
if (permissionsBuilder_ == null) {
permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>(
permissions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
permissions_ = null;
}
return permissionsBuilder_;
}
private long sizeBytes_ ;
/**
*
* Size of entry in bytes. Currently filled for:
* - TABLE;
* - DATABASE.
* Empty (zero) in other cases.
*
*
* uint64 size_bytes = 8;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
/**
*
* Size of entry in bytes. Currently filled for:
* - TABLE;
* - DATABASE.
* Empty (zero) in other cases.
*
*
* uint64 size_bytes = 8;
* @param value The sizeBytes to set.
* @return This builder for chaining.
*/
public Builder setSizeBytes(long value) {
sizeBytes_ = value;
onChanged();
return this;
}
/**
*
* Size of entry in bytes. Currently filled for:
* - TABLE;
* - DATABASE.
* Empty (zero) in other cases.
*
*
* uint64 size_bytes = 8;
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
sizeBytes_ = 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:Ydb.Scheme.Entry)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.Entry)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.Entry();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.Entry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDirectoryResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.ListDirectoryResult)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
boolean hasSelf();
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf();
/**
* .Ydb.Scheme.Entry self = 1;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder();
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
java.util.List
getChildrenList();
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Entry getChildren(int index);
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
int getChildrenCount();
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
java.util.List
getChildrenOrBuilderList();
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getChildrenOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Scheme.ListDirectoryResult}
*/
public static final class ListDirectoryResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.ListDirectoryResult)
ListDirectoryResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDirectoryResult.newBuilder() to construct.
private ListDirectoryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ListDirectoryResult() {
children_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDirectoryResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDirectoryResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder subBuilder = null;
if (self_ != null) {
subBuilder = self_.toBuilder();
}
self_ = input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Entry.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(self_);
self_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
children_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
children_.add(
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Entry.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
children_ = java.util.Collections.unmodifiableList(children_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.Builder.class);
}
public static final int SELF_FIELD_NUMBER = 1;
private com.yandex.ydb.scheme.SchemeOperationProtos.Entry self_;
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
@java.lang.Override
public boolean hasSelf() {
return self_ != null;
}
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf() {
return self_ == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() {
return getSelf();
}
public static final int CHILDREN_FIELD_NUMBER = 2;
private java.util.List children_;
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
@java.lang.Override
public java.util.List getChildrenList() {
return children_;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
@java.lang.Override
public java.util.List
getChildrenOrBuilderList() {
return children_;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
@java.lang.Override
public int getChildrenCount() {
return children_.size();
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getChildren(int index) {
return children_.get(index);
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getChildrenOrBuilder(
int index) {
return children_.get(index);
}
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 (self_ != null) {
output.writeMessage(1, getSelf());
}
for (int i = 0; i < children_.size(); i++) {
output.writeMessage(2, children_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (self_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSelf());
}
for (int i = 0; i < children_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, children_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult other = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult) obj;
if (hasSelf() != other.hasSelf()) return false;
if (hasSelf()) {
if (!getSelf()
.equals(other.getSelf())) return false;
}
if (!getChildrenList()
.equals(other.getChildrenList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSelf()) {
hash = (37 * hash) + SELF_FIELD_NUMBER;
hash = (53 * hash) + getSelf().hashCode();
}
if (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult 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 Ydb.Scheme.ListDirectoryResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.ListDirectoryResult)
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.class, com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChildrenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (selfBuilder_ == null) {
self_ = null;
} else {
self_ = null;
selfBuilder_ = null;
}
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
childrenBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ListDirectoryResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult build() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult result = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult(this);
int from_bitField0_ = bitField0_;
if (selfBuilder_ == null) {
result.self_ = self_;
} else {
result.self_ = selfBuilder_.build();
}
if (childrenBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
children_ = java.util.Collections.unmodifiableList(children_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.children_ = children_;
} else {
result.children_ = childrenBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult.getDefaultInstance()) return this;
if (other.hasSelf()) {
mergeSelf(other.getSelf());
}
if (childrenBuilder_ == null) {
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
onChanged();
}
} else {
if (!other.children_.isEmpty()) {
if (childrenBuilder_.isEmpty()) {
childrenBuilder_.dispose();
childrenBuilder_ = null;
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000001);
childrenBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildrenFieldBuilder() : null;
} else {
childrenBuilder_.addAllMessages(other.children_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.yandex.ydb.scheme.SchemeOperationProtos.Entry self_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder> selfBuilder_;
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
public boolean hasSelf() {
return selfBuilder_ != null || self_ != null;
}
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf() {
if (selfBuilder_ == null) {
return self_ == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
} else {
return selfBuilder_.getMessage();
}
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder setSelf(com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (selfBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
self_ = value;
onChanged();
} else {
selfBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder setSelf(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder builderForValue) {
if (selfBuilder_ == null) {
self_ = builderForValue.build();
onChanged();
} else {
selfBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder mergeSelf(com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (selfBuilder_ == null) {
if (self_ != null) {
self_ =
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.newBuilder(self_).mergeFrom(value).buildPartial();
} else {
self_ = value;
}
onChanged();
} else {
selfBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder clearSelf() {
if (selfBuilder_ == null) {
self_ = null;
onChanged();
} else {
self_ = null;
selfBuilder_ = null;
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder getSelfBuilder() {
onChanged();
return getSelfFieldBuilder().getBuilder();
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() {
if (selfBuilder_ != null) {
return selfBuilder_.getMessageOrBuilder();
} else {
return self_ == null ?
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
}
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>
getSelfFieldBuilder() {
if (selfBuilder_ == null) {
selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>(
getSelf(),
getParentForChildren(),
isClean());
self_ = null;
}
return selfBuilder_;
}
private java.util.List children_ =
java.util.Collections.emptyList();
private void ensureChildrenIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
children_ = new java.util.ArrayList(children_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder> childrenBuilder_;
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public java.util.List getChildrenList() {
if (childrenBuilder_ == null) {
return java.util.Collections.unmodifiableList(children_);
} else {
return childrenBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public int getChildrenCount() {
if (childrenBuilder_ == null) {
return children_.size();
} else {
return childrenBuilder_.getCount();
}
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getChildren(int index) {
if (childrenBuilder_ == null) {
return children_.get(index);
} else {
return childrenBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder setChildren(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.set(index, value);
onChanged();
} else {
childrenBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder setChildren(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.set(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder addChildren(com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(value);
onChanged();
} else {
childrenBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder addChildren(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(index, value);
onChanged();
} else {
childrenBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder addChildren(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder addChildren(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder addAllChildren(
java.lang.Iterable values) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
onChanged();
} else {
childrenBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder clearChildren() {
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
childrenBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public Builder removeChildren(int index) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.remove(index);
onChanged();
} else {
childrenBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder getChildrenBuilder(
int index) {
return getChildrenFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getChildrenOrBuilder(
int index) {
if (childrenBuilder_ == null) {
return children_.get(index); } else {
return childrenBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public java.util.List
getChildrenOrBuilderList() {
if (childrenBuilder_ != null) {
return childrenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(children_);
}
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder addChildrenBuilder() {
return getChildrenFieldBuilder().addBuilder(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.Entry children = 2;
*/
public java.util.List
getChildrenBuilderList() {
return getChildrenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>
getChildrenFieldBuilder() {
if (childrenBuilder_ == null) {
childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>(
children_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
children_ = null;
}
return childrenBuilder_;
}
@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:Ydb.Scheme.ListDirectoryResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.ListDirectoryResult)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDirectoryResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDirectoryResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DescribePathRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.DescribePathRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* Returns information about object with given path
*
*
* Protobuf type {@code Ydb.Scheme.DescribePathRequest}
*/
public static final class DescribePathRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.DescribePathRequest)
DescribePathRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DescribePathRequest.newBuilder() to construct.
private DescribePathRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DescribePathRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribePathRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribePathRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = 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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest other = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest 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;
}
/**
*
* Returns information about object with given path
*
*
* Protobuf type {@code Ydb.Scheme.DescribePathRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.DescribePathRequest)
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest build() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest result = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
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:Ydb.Scheme.DescribePathRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.DescribePathRequest)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DescribePathRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DescribePathRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DescribePathResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.DescribePathResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.DescribePathResponse}
*/
public static final class DescribePathResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.DescribePathResponse)
DescribePathResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DescribePathResponse.newBuilder() to construct.
private DescribePathResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DescribePathResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribePathResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribePathResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse other = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse 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 Ydb.Scheme.DescribePathResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.DescribePathResponse)
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse build() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse result = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* Holds DescribePathResult in case of DescribePathResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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:Ydb.Scheme.DescribePathResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.DescribePathResponse)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DescribePathResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DescribePathResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DescribePathResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.DescribePathResult)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
boolean hasSelf();
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf();
/**
* .Ydb.Scheme.Entry self = 1;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.DescribePathResult}
*/
public static final class DescribePathResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.DescribePathResult)
DescribePathResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use DescribePathResult.newBuilder() to construct.
private DescribePathResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DescribePathResult() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribePathResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribePathResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder subBuilder = null;
if (self_ != null) {
subBuilder = self_.toBuilder();
}
self_ = input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Entry.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(self_);
self_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.Builder.class);
}
public static final int SELF_FIELD_NUMBER = 1;
private com.yandex.ydb.scheme.SchemeOperationProtos.Entry self_;
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
@java.lang.Override
public boolean hasSelf() {
return self_ != null;
}
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf() {
return self_ == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() {
return getSelf();
}
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 (self_ != null) {
output.writeMessage(1, getSelf());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (self_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSelf());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult other = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult) obj;
if (hasSelf() != other.hasSelf()) return false;
if (hasSelf()) {
if (!getSelf()
.equals(other.getSelf())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSelf()) {
hash = (37 * hash) + SELF_FIELD_NUMBER;
hash = (53 * hash) + getSelf().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult 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 Ydb.Scheme.DescribePathResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.DescribePathResult)
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.class, com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (selfBuilder_ == null) {
self_ = null;
} else {
self_ = null;
selfBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_DescribePathResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult build() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult result = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult(this);
if (selfBuilder_ == null) {
result.self_ = self_;
} else {
result.self_ = selfBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult.getDefaultInstance()) return this;
if (other.hasSelf()) {
mergeSelf(other.getSelf());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.scheme.SchemeOperationProtos.Entry self_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder> selfBuilder_;
/**
* .Ydb.Scheme.Entry self = 1;
* @return Whether the self field is set.
*/
public boolean hasSelf() {
return selfBuilder_ != null || self_ != null;
}
/**
* .Ydb.Scheme.Entry self = 1;
* @return The self.
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry getSelf() {
if (selfBuilder_ == null) {
return self_ == null ? com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
} else {
return selfBuilder_.getMessage();
}
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder setSelf(com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (selfBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
self_ = value;
onChanged();
} else {
selfBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder setSelf(
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder builderForValue) {
if (selfBuilder_ == null) {
self_ = builderForValue.build();
onChanged();
} else {
selfBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder mergeSelf(com.yandex.ydb.scheme.SchemeOperationProtos.Entry value) {
if (selfBuilder_ == null) {
if (self_ != null) {
self_ =
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.newBuilder(self_).mergeFrom(value).buildPartial();
} else {
self_ = value;
}
onChanged();
} else {
selfBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public Builder clearSelf() {
if (selfBuilder_ == null) {
self_ = null;
onChanged();
} else {
self_ = null;
selfBuilder_ = null;
}
return this;
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder getSelfBuilder() {
onChanged();
return getSelfFieldBuilder().getBuilder();
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() {
if (selfBuilder_ != null) {
return selfBuilder_.getMessageOrBuilder();
} else {
return self_ == null ?
com.yandex.ydb.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_;
}
}
/**
* .Ydb.Scheme.Entry self = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>
getSelfFieldBuilder() {
if (selfBuilder_ == null) {
selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Entry, com.yandex.ydb.scheme.SchemeOperationProtos.Entry.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.EntryOrBuilder>(
getSelf(),
getParentForChildren(),
isClean());
self_ = null;
}
return selfBuilder_;
}
@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:Ydb.Scheme.DescribePathResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.DescribePathResult)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DescribePathResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DescribePathResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PermissionsActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.PermissionsAction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return Whether the grant field is set.
*/
boolean hasGrant();
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return The grant.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getGrant();
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getGrantOrBuilder();
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return Whether the revoke field is set.
*/
boolean hasRevoke();
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return The revoke.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getRevoke();
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getRevokeOrBuilder();
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return Whether the set field is set.
*/
boolean hasSet();
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return The set.
*/
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getSet();
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getSetOrBuilder();
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return Whether the changeOwner field is set.
*/
boolean hasChangeOwner();
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The changeOwner.
*/
java.lang.String getChangeOwner();
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The bytes for changeOwner.
*/
com.google.protobuf.ByteString
getChangeOwnerBytes();
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.ActionCase getActionCase();
}
/**
* Protobuf type {@code Ydb.Scheme.PermissionsAction}
*/
public static final class PermissionsAction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.PermissionsAction)
PermissionsActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use PermissionsAction.newBuilder() to construct.
private PermissionsAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PermissionsAction() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PermissionsAction();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PermissionsAction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder subBuilder = null;
if (actionCase_ == 1) {
subBuilder = ((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_).toBuilder();
}
action_ =
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
action_ = subBuilder.buildPartial();
}
actionCase_ = 1;
break;
}
case 18: {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder subBuilder = null;
if (actionCase_ == 2) {
subBuilder = ((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_).toBuilder();
}
action_ =
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
action_ = subBuilder.buildPartial();
}
actionCase_ = 2;
break;
}
case 26: {
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder subBuilder = null;
if (actionCase_ == 3) {
subBuilder = ((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_).toBuilder();
}
action_ =
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
action_ = subBuilder.buildPartial();
}
actionCase_ = 3;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
actionCase_ = 4;
action_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_PermissionsAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_PermissionsAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.class, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder.class);
}
private int actionCase_ = 0;
private java.lang.Object action_;
public enum ActionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GRANT(1),
REVOKE(2),
SET(3),
CHANGE_OWNER(4),
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 1: return GRANT;
case 2: return REVOKE;
case 3: return SET;
case 4: return CHANGE_OWNER;
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 GRANT_FIELD_NUMBER = 1;
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return Whether the grant field is set.
*/
@java.lang.Override
public boolean hasGrant() {
return actionCase_ == 1;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return The grant.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getGrant() {
if (actionCase_ == 1) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getGrantOrBuilder() {
if (actionCase_ == 1) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
public static final int REVOKE_FIELD_NUMBER = 2;
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return Whether the revoke field is set.
*/
@java.lang.Override
public boolean hasRevoke() {
return actionCase_ == 2;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return The revoke.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getRevoke() {
if (actionCase_ == 2) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getRevokeOrBuilder() {
if (actionCase_ == 2) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
public static final int SET_FIELD_NUMBER = 3;
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return actionCase_ == 3;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return The set.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getSet() {
if (actionCase_ == 3) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getSetOrBuilder() {
if (actionCase_ == 3) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
public static final int CHANGE_OWNER_FIELD_NUMBER = 4;
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return Whether the changeOwner field is set.
*/
public boolean hasChangeOwner() {
return actionCase_ == 4;
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The changeOwner.
*/
public java.lang.String getChangeOwner() {
java.lang.Object ref = "";
if (actionCase_ == 4) {
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_ == 4) {
action_ = s;
}
return s;
}
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The bytes for changeOwner.
*/
public com.google.protobuf.ByteString
getChangeOwnerBytes() {
java.lang.Object ref = "";
if (actionCase_ == 4) {
ref = action_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 4) {
action_ = 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 (actionCase_ == 1) {
output.writeMessage(1, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 2) {
output.writeMessage(2, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 3) {
output.writeMessage(3, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, action_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (actionCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_);
}
if (actionCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, action_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction other = (com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction) obj;
if (!getActionCase().equals(other.getActionCase())) return false;
switch (actionCase_) {
case 1:
if (!getGrant()
.equals(other.getGrant())) return false;
break;
case 2:
if (!getRevoke()
.equals(other.getRevoke())) return false;
break;
case 3:
if (!getSet()
.equals(other.getSet())) return false;
break;
case 4:
if (!getChangeOwner()
.equals(other.getChangeOwner())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (actionCase_) {
case 1:
hash = (37 * hash) + GRANT_FIELD_NUMBER;
hash = (53 * hash) + getGrant().hashCode();
break;
case 2:
hash = (37 * hash) + REVOKE_FIELD_NUMBER;
hash = (53 * hash) + getRevoke().hashCode();
break;
case 3:
hash = (37 * hash) + SET_FIELD_NUMBER;
hash = (53 * hash) + getSet().hashCode();
break;
case 4:
hash = (37 * hash) + CHANGE_OWNER_FIELD_NUMBER;
hash = (53 * hash) + getChangeOwner().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction 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 Ydb.Scheme.PermissionsAction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.PermissionsAction)
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_PermissionsAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_PermissionsAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.class, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
actionCase_ = 0;
action_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_PermissionsAction_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction build() {
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction result = new com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction(this);
if (actionCase_ == 1) {
if (grantBuilder_ == null) {
result.action_ = action_;
} else {
result.action_ = grantBuilder_.build();
}
}
if (actionCase_ == 2) {
if (revokeBuilder_ == null) {
result.action_ = action_;
} else {
result.action_ = revokeBuilder_.build();
}
}
if (actionCase_ == 3) {
if (setBuilder_ == null) {
result.action_ = action_;
} else {
result.action_ = setBuilder_.build();
}
}
if (actionCase_ == 4) {
result.action_ = action_;
}
result.actionCase_ = actionCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.getDefaultInstance()) return this;
switch (other.getActionCase()) {
case GRANT: {
mergeGrant(other.getGrant());
break;
}
case REVOKE: {
mergeRevoke(other.getRevoke());
break;
}
case SET: {
mergeSet(other.getSet());
break;
}
case CHANGE_OWNER: {
actionCase_ = 4;
action_ = other.action_;
onChanged();
break;
}
case ACTION_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder> grantBuilder_;
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return Whether the grant field is set.
*/
@java.lang.Override
public boolean hasGrant() {
return actionCase_ == 1;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
* @return The grant.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getGrant() {
if (grantBuilder_ == null) {
if (actionCase_ == 1) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
} else {
if (actionCase_ == 1) {
return grantBuilder_.getMessage();
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
public Builder setGrant(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (grantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
action_ = value;
onChanged();
} else {
grantBuilder_.setMessage(value);
}
actionCase_ = 1;
return this;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
public Builder setGrant(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (grantBuilder_ == null) {
action_ = builderForValue.build();
onChanged();
} else {
grantBuilder_.setMessage(builderForValue.build());
}
actionCase_ = 1;
return this;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
public Builder mergeGrant(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (grantBuilder_ == null) {
if (actionCase_ == 1 &&
action_ != com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance()) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.newBuilder((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_)
.mergeFrom(value).buildPartial();
} else {
action_ = value;
}
onChanged();
} else {
if (actionCase_ == 1) {
grantBuilder_.mergeFrom(value);
}
grantBuilder_.setMessage(value);
}
actionCase_ = 1;
return this;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
public Builder clearGrant() {
if (grantBuilder_ == null) {
if (actionCase_ == 1) {
actionCase_ = 0;
action_ = null;
onChanged();
}
} else {
if (actionCase_ == 1) {
actionCase_ = 0;
action_ = null;
}
grantBuilder_.clear();
}
return this;
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder getGrantBuilder() {
return getGrantFieldBuilder().getBuilder();
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getGrantOrBuilder() {
if ((actionCase_ == 1) && (grantBuilder_ != null)) {
return grantBuilder_.getMessageOrBuilder();
} else {
if (actionCase_ == 1) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Grant permissions
*
*
* .Ydb.Scheme.Permissions grant = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>
getGrantFieldBuilder() {
if (grantBuilder_ == null) {
if (!(actionCase_ == 1)) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
grantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>(
(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_,
getParentForChildren(),
isClean());
action_ = null;
}
actionCase_ = 1;
onChanged();;
return grantBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder> revokeBuilder_;
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return Whether the revoke field is set.
*/
@java.lang.Override
public boolean hasRevoke() {
return actionCase_ == 2;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
* @return The revoke.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getRevoke() {
if (revokeBuilder_ == null) {
if (actionCase_ == 2) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
} else {
if (actionCase_ == 2) {
return revokeBuilder_.getMessage();
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
public Builder setRevoke(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (revokeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
action_ = value;
onChanged();
} else {
revokeBuilder_.setMessage(value);
}
actionCase_ = 2;
return this;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
public Builder setRevoke(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (revokeBuilder_ == null) {
action_ = builderForValue.build();
onChanged();
} else {
revokeBuilder_.setMessage(builderForValue.build());
}
actionCase_ = 2;
return this;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
public Builder mergeRevoke(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (revokeBuilder_ == null) {
if (actionCase_ == 2 &&
action_ != com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance()) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.newBuilder((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_)
.mergeFrom(value).buildPartial();
} else {
action_ = value;
}
onChanged();
} else {
if (actionCase_ == 2) {
revokeBuilder_.mergeFrom(value);
}
revokeBuilder_.setMessage(value);
}
actionCase_ = 2;
return this;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
public Builder clearRevoke() {
if (revokeBuilder_ == null) {
if (actionCase_ == 2) {
actionCase_ = 0;
action_ = null;
onChanged();
}
} else {
if (actionCase_ == 2) {
actionCase_ = 0;
action_ = null;
}
revokeBuilder_.clear();
}
return this;
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder getRevokeBuilder() {
return getRevokeFieldBuilder().getBuilder();
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getRevokeOrBuilder() {
if ((actionCase_ == 2) && (revokeBuilder_ != null)) {
return revokeBuilder_.getMessageOrBuilder();
} else {
if (actionCase_ == 2) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Revoke permissions
*
*
* .Ydb.Scheme.Permissions revoke = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>
getRevokeFieldBuilder() {
if (revokeBuilder_ == null) {
if (!(actionCase_ == 2)) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
revokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>(
(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_,
getParentForChildren(),
isClean());
action_ = null;
}
actionCase_ = 2;
onChanged();;
return revokeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder> setBuilder_;
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return actionCase_ == 3;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
* @return The set.
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions getSet() {
if (setBuilder_ == null) {
if (actionCase_ == 3) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
} else {
if (actionCase_ == 3) {
return setBuilder_.getMessage();
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
public Builder setSet(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (setBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
action_ = value;
onChanged();
} else {
setBuilder_.setMessage(value);
}
actionCase_ = 3;
return this;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
public Builder setSet(
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder builderForValue) {
if (setBuilder_ == null) {
action_ = builderForValue.build();
onChanged();
} else {
setBuilder_.setMessage(builderForValue.build());
}
actionCase_ = 3;
return this;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
public Builder mergeSet(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions value) {
if (setBuilder_ == null) {
if (actionCase_ == 3 &&
action_ != com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance()) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.newBuilder((com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_)
.mergeFrom(value).buildPartial();
} else {
action_ = value;
}
onChanged();
} else {
if (actionCase_ == 3) {
setBuilder_.mergeFrom(value);
}
setBuilder_.setMessage(value);
}
actionCase_ = 3;
return this;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
public Builder clearSet() {
if (setBuilder_ == null) {
if (actionCase_ == 3) {
actionCase_ = 0;
action_ = null;
onChanged();
}
} else {
if (actionCase_ == 3) {
actionCase_ = 0;
action_ = null;
}
setBuilder_.clear();
}
return this;
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder getSetBuilder() {
return getSetFieldBuilder().getBuilder();
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder getSetOrBuilder() {
if ((actionCase_ == 3) && (setBuilder_ != null)) {
return setBuilder_.getMessageOrBuilder();
} else {
if (actionCase_ == 3) {
return (com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_;
}
return com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
}
/**
*
* Rewrite permissions for given subject (last set win in case of multiple set for one subject)
*
*
* .Ydb.Scheme.Permissions set = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>
getSetFieldBuilder() {
if (setBuilder_ == null) {
if (!(actionCase_ == 3)) {
action_ = com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.getDefaultInstance();
}
setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.Permissions, com.yandex.ydb.scheme.SchemeOperationProtos.Permissions.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsOrBuilder>(
(com.yandex.ydb.scheme.SchemeOperationProtos.Permissions) action_,
getParentForChildren(),
isClean());
action_ = null;
}
actionCase_ = 3;
onChanged();;
return setBuilder_;
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return Whether the changeOwner field is set.
*/
@java.lang.Override
public boolean hasChangeOwner() {
return actionCase_ == 4;
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The changeOwner.
*/
@java.lang.Override
public java.lang.String getChangeOwner() {
java.lang.Object ref = "";
if (actionCase_ == 4) {
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_ == 4) {
action_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return The bytes for changeOwner.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChangeOwnerBytes() {
java.lang.Object ref = "";
if (actionCase_ == 4) {
ref = action_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (actionCase_ == 4) {
action_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @param value The changeOwner to set.
* @return This builder for chaining.
*/
public Builder setChangeOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
actionCase_ = 4;
action_ = value;
onChanged();
return this;
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @return This builder for chaining.
*/
public Builder clearChangeOwner() {
if (actionCase_ == 4) {
actionCase_ = 0;
action_ = null;
onChanged();
}
return this;
}
/**
*
* New owner for object
*
*
* string change_owner = 4;
* @param value The bytes for changeOwner to set.
* @return This builder for chaining.
*/
public Builder setChangeOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
actionCase_ = 4;
action_ = value;
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:Ydb.Scheme.PermissionsAction)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.PermissionsAction)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PermissionsAction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PermissionsAction(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ModifyPermissionsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.ModifyPermissionsRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
java.util.List
getActionsList();
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getActions(int index);
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
int getActionsCount();
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
java.util.List
getActionsOrBuilderList();
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder getActionsOrBuilder(
int index);
/**
*
* Clear all permissions on the object for all subjects
*
*
* bool clear_permissions = 4;
* @return The clearPermissions.
*/
boolean getClearPermissions();
}
/**
*
* Modify permissions of given object
*
*
* Protobuf type {@code Ydb.Scheme.ModifyPermissionsRequest}
*/
public static final class ModifyPermissionsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.ModifyPermissionsRequest)
ModifyPermissionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModifyPermissionsRequest.newBuilder() to construct.
private ModifyPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ModifyPermissionsRequest() {
path_ = "";
actions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ModifyPermissionsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModifyPermissionsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
actions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
actions_.add(
input.readMessage(com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.parser(), extensionRegistry));
break;
}
case 32: {
clearPermissions_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIONS_FIELD_NUMBER = 3;
private java.util.List actions_;
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
@java.lang.Override
public java.util.List getActionsList() {
return actions_;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
@java.lang.Override
public java.util.List
getActionsOrBuilderList() {
return actions_;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getActions(int index) {
return actions_.get(index);
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder getActionsOrBuilder(
int index) {
return actions_.get(index);
}
public static final int CLEAR_PERMISSIONS_FIELD_NUMBER = 4;
private boolean clearPermissions_;
/**
*
* Clear all permissions on the object for all subjects
*
*
* bool clear_permissions = 4;
* @return The clearPermissions.
*/
@java.lang.Override
public boolean getClearPermissions() {
return clearPermissions_;
}
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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
for (int i = 0; i < actions_.size(); i++) {
output.writeMessage(3, actions_.get(i));
}
if (clearPermissions_ != false) {
output.writeBool(4, clearPermissions_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
for (int i = 0; i < actions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, actions_.get(i));
}
if (clearPermissions_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, clearPermissions_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest other = (com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (!getActionsList()
.equals(other.getActionsList())) return false;
if (getClearPermissions()
!= other.getClearPermissions()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (getActionsCount() > 0) {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getActionsList().hashCode();
}
hash = (37 * hash) + CLEAR_PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getClearPermissions());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest 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;
}
/**
*
* Modify permissions of given object
*
*
* Protobuf type {@code Ydb.Scheme.ModifyPermissionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.ModifyPermissionsRequest)
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.class, com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
actionsBuilder_.clear();
}
clearPermissions_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest build() {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest result = new com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest(this);
int from_bitField0_ = bitField0_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
if (actionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.actions_ = actions_;
} else {
result.actions_ = actionsBuilder_.build();
}
result.clearPermissions_ = clearPermissions_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (actionsBuilder_ == null) {
if (!other.actions_.isEmpty()) {
if (actions_.isEmpty()) {
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActionsIsMutable();
actions_.addAll(other.actions_);
}
onChanged();
}
} else {
if (!other.actions_.isEmpty()) {
if (actionsBuilder_.isEmpty()) {
actionsBuilder_.dispose();
actionsBuilder_ = null;
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000001);
actionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getActionsFieldBuilder() : null;
} else {
actionsBuilder_.addAllMessages(other.actions_);
}
}
}
if (other.getClearPermissions() != false) {
setClearPermissions(other.getClearPermissions());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private java.util.List actions_ =
java.util.Collections.emptyList();
private void ensureActionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
actions_ = new java.util.ArrayList(actions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder> actionsBuilder_;
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public java.util.List getActionsList() {
if (actionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(actions_);
} else {
return actionsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public int getActionsCount() {
if (actionsBuilder_ == null) {
return actions_.size();
} else {
return actionsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction getActions(int index) {
if (actionsBuilder_ == null) {
return actions_.get(index);
} else {
return actionsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder setActions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.set(index, value);
onChanged();
} else {
actionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder setActions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.set(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder addActions(com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(value);
onChanged();
} else {
actionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder addActions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(index, value);
onChanged();
} else {
actionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder addActions(
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder addActions(
int index, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder addAllActions(
java.lang.Iterable values) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actions_);
onChanged();
} else {
actionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
actionsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public Builder removeActions(int index) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.remove(index);
onChanged();
} else {
actionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder getActionsBuilder(
int index) {
return getActionsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder getActionsOrBuilder(
int index) {
if (actionsBuilder_ == null) {
return actions_.get(index); } else {
return actionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public java.util.List
getActionsOrBuilderList() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(actions_);
}
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder addActionsBuilder() {
return getActionsFieldBuilder().addBuilder(
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder addActionsBuilder(
int index) {
return getActionsFieldBuilder().addBuilder(
index, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.getDefaultInstance());
}
/**
* repeated .Ydb.Scheme.PermissionsAction actions = 3;
*/
public java.util.List
getActionsBuilderList() {
return getActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder>
getActionsFieldBuilder() {
if (actionsBuilder_ == null) {
actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsAction.Builder, com.yandex.ydb.scheme.SchemeOperationProtos.PermissionsActionOrBuilder>(
actions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
actions_ = null;
}
return actionsBuilder_;
}
private boolean clearPermissions_ ;
/**
*
* Clear all permissions on the object for all subjects
*
*
* bool clear_permissions = 4;
* @return The clearPermissions.
*/
@java.lang.Override
public boolean getClearPermissions() {
return clearPermissions_;
}
/**
*
* Clear all permissions on the object for all subjects
*
*
* bool clear_permissions = 4;
* @param value The clearPermissions to set.
* @return This builder for chaining.
*/
public Builder setClearPermissions(boolean value) {
clearPermissions_ = value;
onChanged();
return this;
}
/**
*
* Clear all permissions on the object for all subjects
*
*
* bool clear_permissions = 4;
* @return This builder for chaining.
*/
public Builder clearClearPermissions() {
clearPermissions_ = 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:Ydb.Scheme.ModifyPermissionsRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.ModifyPermissionsRequest)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModifyPermissionsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModifyPermissionsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ModifyPermissionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scheme.ModifyPermissionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scheme.ModifyPermissionsResponse}
*/
public static final class ModifyPermissionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scheme.ModifyPermissionsResponse)
ModifyPermissionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModifyPermissionsResponse.newBuilder() to construct.
private ModifyPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ModifyPermissionsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ModifyPermissionsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModifyPermissionsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse other = (com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse 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 Ydb.Scheme.ModifyPermissionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scheme.ModifyPermissionsResponse)
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.class, com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.Builder.class);
}
// Construct using com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse getDefaultInstanceForType() {
return com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse build() {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse buildPartial() {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse result = new com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse) {
return mergeFrom((com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse other) {
if (other == com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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:Ydb.Scheme.ModifyPermissionsResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scheme.ModifyPermissionsResponse)
private static final com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse();
}
public static com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModifyPermissionsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModifyPermissionsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scheme.SchemeOperationProtos.ModifyPermissionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_MakeDirectoryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_MakeDirectoryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_RemoveDirectoryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_RemoveDirectoryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_ListDirectoryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_ListDirectoryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_Permissions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_Permissions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_Entry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_Entry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_ListDirectoryResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_ListDirectoryResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_DescribePathRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_DescribePathRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_DescribePathResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_DescribePathResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_DescribePathResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_DescribePathResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_PermissionsAction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_PermissionsAction_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_ModifyPermissionsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Scheme_ModifyPermissionsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n&ydb/public/api/protos/ydb_scheme.proto" +
"\022\nYdb.Scheme\032)ydb/public/api/protos/ydb_" +
"operation.proto\"_\n\024MakeDirectoryRequest\022" +
"9\n\020operation_params\030\001 \001(\0132\037.Ydb.Operatio" +
"ns.OperationParams\022\014\n\004path\030\002 \001(\t\"E\n\025Make" +
"DirectoryResponse\022,\n\toperation\030\001 \001(\0132\031.Y" +
"db.Operations.Operation\"a\n\026RemoveDirecto" +
"ryRequest\0229\n\020operation_params\030\001 \001(\0132\037.Yd" +
"b.Operations.OperationParams\022\014\n\004path\030\002 \001" +
"(\t\"G\n\027RemoveDirectoryResponse\022,\n\toperati" +
"on\030\001 \001(\0132\031.Ydb.Operations.Operation\"_\n\024L" +
"istDirectoryRequest\0229\n\020operation_params\030" +
"\001 \001(\0132\037.Ydb.Operations.OperationParams\022\014" +
"\n\004path\030\002 \001(\t\"E\n\025ListDirectoryResponse\022,\n" +
"\toperation\030\001 \001(\0132\031.Ydb.Operations.Operat" +
"ion\"8\n\013Permissions\022\017\n\007subject\030\001 \001(\t\022\030\n\020p" +
"ermission_names\030\002 \003(\t\"\235\003\n\005Entry\022\014\n\004name\030" +
"\001 \001(\t\022\r\n\005owner\030\002 \001(\t\022$\n\004type\030\005 \001(\0162\026.Ydb" +
".Scheme.Entry.Type\0226\n\025effective_permissi" +
"ons\030\006 \003(\0132\027.Ydb.Scheme.Permissions\022,\n\013pe" +
"rmissions\030\007 \003(\0132\027.Ydb.Scheme.Permissions" +
"\022\022\n\nsize_bytes\030\010 \001(\004\"\326\001\n\004Type\022\024\n\020TYPE_UN" +
"SPECIFIED\020\000\022\r\n\tDIRECTORY\020\001\022\t\n\005TABLE\020\002\022\024\n" +
"\020PERS_QUEUE_GROUP\020\003\022\014\n\010DATABASE\020\004\022\017\n\013RTM" +
"R_VOLUME\020\005\022\026\n\022BLOCK_STORE_VOLUME\020\006\022\025\n\021CO" +
"ORDINATION_NODE\020\007\022\020\n\014COLUMN_TABLE\020\r\022\014\n\010S" +
"EQUENCE\020\017\022\017\n\013REPLICATION\020\020\022\t\n\005TOPIC\020\021\"[\n" +
"\023ListDirectoryResult\022\037\n\004self\030\001 \001(\0132\021.Ydb" +
".Scheme.Entry\022#\n\010children\030\002 \003(\0132\021.Ydb.Sc" +
"heme.Entry\"^\n\023DescribePathRequest\0229\n\020ope" +
"ration_params\030\001 \001(\0132\037.Ydb.Operations.Ope" +
"rationParams\022\014\n\004path\030\002 \001(\t\"D\n\024DescribePa" +
"thResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Oper" +
"ations.Operation\"5\n\022DescribePathResult\022\037" +
"\n\004self\030\001 \001(\0132\021.Ydb.Scheme.Entry\"\262\001\n\021Perm" +
"issionsAction\022(\n\005grant\030\001 \001(\0132\027.Ydb.Schem" +
"e.PermissionsH\000\022)\n\006revoke\030\002 \001(\0132\027.Ydb.Sc" +
"heme.PermissionsH\000\022&\n\003set\030\003 \001(\0132\027.Ydb.Sc" +
"heme.PermissionsH\000\022\026\n\014change_owner\030\004 \001(\t" +
"H\000B\010\n\006action\"\256\001\n\030ModifyPermissionsReques" +
"t\0229\n\020operation_params\030\001 \001(\0132\037.Ydb.Operat" +
"ions.OperationParams\022\014\n\004path\030\002 \001(\t\022.\n\007ac" +
"tions\030\003 \003(\0132\035.Ydb.Scheme.PermissionsActi" +
"on\022\031\n\021clear_permissions\030\004 \001(\010\"I\n\031ModifyP" +
"ermissionsResponse\022,\n\toperation\030\001 \001(\0132\031." +
"Ydb.Operations.OperationB1\n\025com.yandex.y" +
"db.schemeB\025SchemeOperationProtos\370\001\001b\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.yandex.ydb.OperationProtos.getDescriptor(),
});
internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Ydb_Scheme_MakeDirectoryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_MakeDirectoryRequest_descriptor,
new java.lang.String[] { "OperationParams", "Path", });
internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Ydb_Scheme_MakeDirectoryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_MakeDirectoryResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Ydb_Scheme_RemoveDirectoryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_RemoveDirectoryRequest_descriptor,
new java.lang.String[] { "OperationParams", "Path", });
internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Ydb_Scheme_RemoveDirectoryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_RemoveDirectoryResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Ydb_Scheme_ListDirectoryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_ListDirectoryRequest_descriptor,
new java.lang.String[] { "OperationParams", "Path", });
internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_Ydb_Scheme_ListDirectoryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_ListDirectoryResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Scheme_Permissions_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_Ydb_Scheme_Permissions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_Permissions_descriptor,
new java.lang.String[] { "Subject", "PermissionNames", });
internal_static_Ydb_Scheme_Entry_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_Ydb_Scheme_Entry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_Entry_descriptor,
new java.lang.String[] { "Name", "Owner", "Type", "EffectivePermissions", "Permissions", "SizeBytes", });
internal_static_Ydb_Scheme_ListDirectoryResult_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_Ydb_Scheme_ListDirectoryResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_ListDirectoryResult_descriptor,
new java.lang.String[] { "Self", "Children", });
internal_static_Ydb_Scheme_DescribePathRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_Ydb_Scheme_DescribePathRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_DescribePathRequest_descriptor,
new java.lang.String[] { "OperationParams", "Path", });
internal_static_Ydb_Scheme_DescribePathResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_Ydb_Scheme_DescribePathResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_DescribePathResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Scheme_DescribePathResult_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_Ydb_Scheme_DescribePathResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_DescribePathResult_descriptor,
new java.lang.String[] { "Self", });
internal_static_Ydb_Scheme_PermissionsAction_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_Ydb_Scheme_PermissionsAction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_PermissionsAction_descriptor,
new java.lang.String[] { "Grant", "Revoke", "Set", "ChangeOwner", "Action", });
internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_Ydb_Scheme_ModifyPermissionsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_ModifyPermissionsRequest_descriptor,
new java.lang.String[] { "OperationParams", "Path", "Actions", "ClearPermissions", });
internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_Ydb_Scheme_ModifyPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Scheme_ModifyPermissionsResponse_descriptor,
new java.lang.String[] { "Operation", });
com.yandex.ydb.OperationProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}