yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/clickhouse/v1/format_schema_service.proto
package yandex.cloud.api.mdb.clickhouse.v1;
public final class FormatSchemaServiceOuterClass {
private FormatSchemaServiceOuterClass() {}
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 GetFormatSchemaRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest}
*/
public static final class GetFormatSchemaRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest)
GetFormatSchemaRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetFormatSchemaRequest.newBuilder() to construct.
private GetFormatSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetFormatSchemaRequest() {
clusterId_ = "";
formatSchemaName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetFormatSchemaRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetFormatSchemaRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest 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 yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.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();
clusterId_ = "";
formatSchemaName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = 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:yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.GetFormatSchemaRequest)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetFormatSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetFormatSchemaRequest(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.GetFormatSchemaRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListFormatSchemasRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest}
*/
public static final class ListFormatSchemasRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest)
ListFormatSchemasRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListFormatSchemasRequest.newBuilder() to construct.
private ListFormatSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListFormatSchemasRequest() {
clusterId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListFormatSchemasRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListFormatSchemasRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
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();
pageToken_ = s;
return s;
}
}
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest 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 yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.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();
clusterId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest(this);
result.clusterId_ = clusterId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = 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:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasRequest)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListFormatSchemasRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListFormatSchemasRequest(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListFormatSchemasResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
java.util.List
getFormatSchemasList();
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema getFormatSchemas(int index);
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
int getFormatSchemasCount();
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
java.util.List extends yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder>
getFormatSchemasOrBuilderList();
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder getFormatSchemasOrBuilder(
int index);
/**
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse}
*/
public static final class ListFormatSchemasResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse)
ListFormatSchemasResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListFormatSchemasResponse.newBuilder() to construct.
private ListFormatSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListFormatSchemasResponse() {
formatSchemas_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListFormatSchemasResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListFormatSchemasResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
formatSchemas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
formatSchemas_.add(
input.readMessage(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
formatSchemas_ = java.util.Collections.unmodifiableList(formatSchemas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.Builder.class);
}
public static final int FORMAT_SCHEMAS_FIELD_NUMBER = 1;
private java.util.List formatSchemas_;
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
@java.lang.Override
public java.util.List getFormatSchemasList() {
return formatSchemas_;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder>
getFormatSchemasOrBuilderList() {
return formatSchemas_;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
@java.lang.Override
public int getFormatSchemasCount() {
return formatSchemas_.size();
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema getFormatSchemas(int index) {
return formatSchemas_.get(index);
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder getFormatSchemasOrBuilder(
int index) {
return formatSchemas_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
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();
nextPageToken_ = s;
return s;
}
}
/**
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = 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 {
for (int i = 0; i < formatSchemas_.size(); i++) {
output.writeMessage(1, formatSchemas_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < formatSchemas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, formatSchemas_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse) obj;
if (!getFormatSchemasList()
.equals(other.getFormatSchemasList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getFormatSchemasCount() > 0) {
hash = (37 * hash) + FORMAT_SCHEMAS_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemasList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse 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 yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFormatSchemasFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (formatSchemasBuilder_ == null) {
formatSchemas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
formatSchemasBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse(this);
int from_bitField0_ = bitField0_;
if (formatSchemasBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
formatSchemas_ = java.util.Collections.unmodifiableList(formatSchemas_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.formatSchemas_ = formatSchemas_;
} else {
result.formatSchemas_ = formatSchemasBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse.getDefaultInstance()) return this;
if (formatSchemasBuilder_ == null) {
if (!other.formatSchemas_.isEmpty()) {
if (formatSchemas_.isEmpty()) {
formatSchemas_ = other.formatSchemas_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFormatSchemasIsMutable();
formatSchemas_.addAll(other.formatSchemas_);
}
onChanged();
}
} else {
if (!other.formatSchemas_.isEmpty()) {
if (formatSchemasBuilder_.isEmpty()) {
formatSchemasBuilder_.dispose();
formatSchemasBuilder_ = null;
formatSchemas_ = other.formatSchemas_;
bitField0_ = (bitField0_ & ~0x00000001);
formatSchemasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFormatSchemasFieldBuilder() : null;
} else {
formatSchemasBuilder_.addAllMessages(other.formatSchemas_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List formatSchemas_ =
java.util.Collections.emptyList();
private void ensureFormatSchemasIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
formatSchemas_ = new java.util.ArrayList(formatSchemas_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder> formatSchemasBuilder_;
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public java.util.List getFormatSchemasList() {
if (formatSchemasBuilder_ == null) {
return java.util.Collections.unmodifiableList(formatSchemas_);
} else {
return formatSchemasBuilder_.getMessageList();
}
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public int getFormatSchemasCount() {
if (formatSchemasBuilder_ == null) {
return formatSchemas_.size();
} else {
return formatSchemasBuilder_.getCount();
}
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema getFormatSchemas(int index) {
if (formatSchemasBuilder_ == null) {
return formatSchemas_.get(index);
} else {
return formatSchemasBuilder_.getMessage(index);
}
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder setFormatSchemas(
int index, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema value) {
if (formatSchemasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFormatSchemasIsMutable();
formatSchemas_.set(index, value);
onChanged();
} else {
formatSchemasBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder setFormatSchemas(
int index, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder builderForValue) {
if (formatSchemasBuilder_ == null) {
ensureFormatSchemasIsMutable();
formatSchemas_.set(index, builderForValue.build());
onChanged();
} else {
formatSchemasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder addFormatSchemas(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema value) {
if (formatSchemasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFormatSchemasIsMutable();
formatSchemas_.add(value);
onChanged();
} else {
formatSchemasBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder addFormatSchemas(
int index, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema value) {
if (formatSchemasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFormatSchemasIsMutable();
formatSchemas_.add(index, value);
onChanged();
} else {
formatSchemasBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder addFormatSchemas(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder builderForValue) {
if (formatSchemasBuilder_ == null) {
ensureFormatSchemasIsMutable();
formatSchemas_.add(builderForValue.build());
onChanged();
} else {
formatSchemasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder addFormatSchemas(
int index, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder builderForValue) {
if (formatSchemasBuilder_ == null) {
ensureFormatSchemasIsMutable();
formatSchemas_.add(index, builderForValue.build());
onChanged();
} else {
formatSchemasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder addAllFormatSchemas(
java.lang.Iterable extends yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema> values) {
if (formatSchemasBuilder_ == null) {
ensureFormatSchemasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, formatSchemas_);
onChanged();
} else {
formatSchemasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder clearFormatSchemas() {
if (formatSchemasBuilder_ == null) {
formatSchemas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
formatSchemasBuilder_.clear();
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public Builder removeFormatSchemas(int index) {
if (formatSchemasBuilder_ == null) {
ensureFormatSchemasIsMutable();
formatSchemas_.remove(index);
onChanged();
} else {
formatSchemasBuilder_.remove(index);
}
return this;
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder getFormatSchemasBuilder(
int index) {
return getFormatSchemasFieldBuilder().getBuilder(index);
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder getFormatSchemasOrBuilder(
int index) {
if (formatSchemasBuilder_ == null) {
return formatSchemas_.get(index); } else {
return formatSchemasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public java.util.List extends yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder>
getFormatSchemasOrBuilderList() {
if (formatSchemasBuilder_ != null) {
return formatSchemasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(formatSchemas_);
}
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder addFormatSchemasBuilder() {
return getFormatSchemasFieldBuilder().addBuilder(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.getDefaultInstance());
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder addFormatSchemasBuilder(
int index) {
return getFormatSchemasFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.getDefaultInstance());
}
/**
* repeated .yandex.cloud.mdb.clickhouse.v1.FormatSchema format_schemas = 1;
*/
public java.util.List
getFormatSchemasBuilderList() {
return getFormatSchemasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder>
getFormatSchemasFieldBuilder() {
if (formatSchemasBuilder_ == null) {
formatSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchema.Builder, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaOrBuilder>(
formatSchemas_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
formatSchemas_ = null;
}
return formatSchemasBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.ListFormatSchemasResponse)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListFormatSchemasResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListFormatSchemasResponse(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.ListFormatSchemasResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateFormatSchemaRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The type.
*/
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType getType();
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest}
*/
public static final class CreateFormatSchemaRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest)
CreateFormatSchemaRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateFormatSchemaRequest.newBuilder() to construct.
private CreateFormatSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateFormatSchemaRequest() {
clusterId_ = "";
formatSchemaName_ = "";
type_ = 0;
uri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateFormatSchemaRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateFormatSchemaRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
uri_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType result = yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.UNRECOGNIZED : result;
}
public static final int URI_FIELD_NUMBER = 4;
private volatile java.lang.Object uri_;
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
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();
uri_ = s;
return s;
}
}
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
if (type_ != yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.FORMAT_SCHEMA_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
if (type_ != yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.FORMAT_SCHEMA_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) return false;
if (type_ != other.type_) return false;
if (!getUri()
.equals(other.getUri())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest 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 yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.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();
clusterId_ = "";
formatSchemaName_ = "";
type_ = 0;
uri_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
result.type_ = type_;
result.uri_ = uri_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @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;
}
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType result = yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType.UNRECOGNIZED : result;
}
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.FormatSchemaType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .yandex.cloud.mdb.clickhouse.v1.FormatSchemaType type = 3 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object uri_ = "";
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
onChanged();
return this;
}
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
onChanged();
return this;
}
/**
* string uri = 4 [(.yandex.cloud.required) = true];
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = 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:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaRequest)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateFormatSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateFormatSchemaRequest(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateFormatSchemaMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata}
*/
public static final class CreateFormatSchemaMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata)
CreateFormatSchemaMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateFormatSchemaMetadata.newBuilder() to construct.
private CreateFormatSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateFormatSchemaMetadata() {
clusterId_ = "";
formatSchemaName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateFormatSchemaMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateFormatSchemaMetadata(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1;
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata 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 yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.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();
clusterId_ = "";
formatSchemaName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1;
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1;
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2;
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = 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:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.CreateFormatSchemaMetadata)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateFormatSchemaMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateFormatSchemaMetadata(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.CreateFormatSchemaMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateFormatSchemaRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
* string uri = 4;
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 4;
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest}
*/
public static final class UpdateFormatSchemaRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest)
UpdateFormatSchemaRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateFormatSchemaRequest.newBuilder() to construct.
private UpdateFormatSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateFormatSchemaRequest() {
clusterId_ = "";
formatSchemaName_ = "";
uri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateFormatSchemaRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateFormatSchemaRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = s;
break;
}
case 26: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
uri_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 3;
private com.google.protobuf.FieldMask updateMask_;
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int URI_FIELD_NUMBER = 4;
private volatile java.lang.Object uri_;
/**
* string uri = 4;
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
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();
uri_ = s;
return s;
}
}
/**
* string uri = 4;
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
if (updateMask_ != null) {
output.writeMessage(3, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getUri()
.equals(other.getUri())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest 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 yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.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();
clusterId_ = "";
formatSchemaName_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
uri_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.uri_ = uri_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
* .google.protobuf.FieldMask update_mask = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private java.lang.Object uri_ = "";
/**
* string uri = 4;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 4;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 4;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
onChanged();
return this;
}
/**
* string uri = 4;
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
onChanged();
return this;
}
/**
* string uri = 4;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = 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:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaRequest)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateFormatSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateFormatSchemaRequest(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateFormatSchemaMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata}
*/
public static final class UpdateFormatSchemaMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata)
UpdateFormatSchemaMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateFormatSchemaMetadata.newBuilder() to construct.
private UpdateFormatSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateFormatSchemaMetadata() {
clusterId_ = "";
formatSchemaName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateFormatSchemaMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateFormatSchemaMetadata(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1;
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata 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 yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.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();
clusterId_ = "";
formatSchemaName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1;
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1;
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2;
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = 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:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.UpdateFormatSchemaMetadata)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateFormatSchemaMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateFormatSchemaMetadata(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.UpdateFormatSchemaMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteFormatSchemaRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest}
*/
public static final class DeleteFormatSchemaRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest)
DeleteFormatSchemaRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteFormatSchemaRequest.newBuilder() to construct.
private DeleteFormatSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteFormatSchemaRequest() {
clusterId_ = "";
formatSchemaName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteFormatSchemaRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteFormatSchemaRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest 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 yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.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();
clusterId_ = "";
formatSchemaName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = 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:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaRequest)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteFormatSchemaRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteFormatSchemaRequest(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteFormatSchemaMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* string cluster_id = 1;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
java.lang.String getFormatSchemaName();
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
com.google.protobuf.ByteString
getFormatSchemaNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata}
*/
public static final class DeleteFormatSchemaMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata)
DeleteFormatSchemaMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteFormatSchemaMetadata.newBuilder() to construct.
private DeleteFormatSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteFormatSchemaMetadata() {
clusterId_ = "";
formatSchemaName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteFormatSchemaMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteFormatSchemaMetadata(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
formatSchemaName_ = 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
* string cluster_id = 1;
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
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();
clusterId_ = s;
return s;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object formatSchemaName_;
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
@java.lang.Override
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
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();
formatSchemaName_ = s;
return s;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, formatSchemaName_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formatSchemaName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, formatSchemaName_);
}
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata other = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getFormatSchemaName()
.equals(other.getFormatSchemaName())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + FORMAT_SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFormatSchemaName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata 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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata 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(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata 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 yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata)
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.class, yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.Builder.class);
}
// Construct using yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.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();
clusterId_ = "";
formatSchemaName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata getDefaultInstanceForType() {
return yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata build() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata buildPartial() {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata result = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata(this);
result.clusterId_ = clusterId_;
result.formatSchemaName_ = formatSchemaName_;
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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata) {
return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata other) {
if (other == yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getFormatSchemaName().isEmpty()) {
formatSchemaName_ = other.formatSchemaName_;
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 {
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
* string cluster_id = 1;
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_id = 1;
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_id = 1;
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
* string cluster_id = 1;
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private java.lang.Object formatSchemaName_ = "";
/**
* string format_schema_name = 2;
* @return The formatSchemaName.
*/
public java.lang.String getFormatSchemaName() {
java.lang.Object ref = formatSchemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formatSchemaName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string format_schema_name = 2;
* @return The bytes for formatSchemaName.
*/
public com.google.protobuf.ByteString
getFormatSchemaNameBytes() {
java.lang.Object ref = formatSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formatSchemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string format_schema_name = 2;
* @param value The formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formatSchemaName_ = value;
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearFormatSchemaName() {
formatSchemaName_ = getDefaultInstance().getFormatSchemaName();
onChanged();
return this;
}
/**
* string format_schema_name = 2;
* @param value The bytes for formatSchemaName to set.
* @return This builder for chaining.
*/
public Builder setFormatSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formatSchemaName_ = 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:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.DeleteFormatSchemaMetadata)
private static final yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata();
}
public static yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteFormatSchemaMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteFormatSchemaMetadata(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 yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaServiceOuterClass.DeleteFormatSchemaMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_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:yandex/cloud/mdb/clickhouse/v1/format_" +
"schema_service.proto\022\036yandex.cloud.mdb.c" +
"lickhouse.v1\032\034google/api/annotations.pro" +
"to\032 google/protobuf/field_mask.proto\032 ya" +
"ndex/cloud/api/operation.proto\032&yandex/c" +
"loud/operation/operation.proto\032\035yandex/c" +
"loud/validation.proto\0322yandex/cloud/mdb/" +
"clickhouse/v1/format_schema.proto\"v\n\026Get" +
"FormatSchemaRequest\022 \n\ncluster_id\030\001 \001(\tB" +
"\014\350\3071\001\212\3101\004<=50\022:\n\022format_schema_name\030\002 \001(" +
"\tB\036\350\3071\001\212\3101\004<=63\362\3071\016[a-zA-Z0-9_-]*\"z\n\030Lis" +
"tFormatSchemasRequest\022 \n\ncluster_id\030\001 \001(" +
"\tB\014\350\3071\001\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006" +
"<=1000\022\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=100\"z\n" +
"\031ListFormatSchemasResponse\022D\n\016format_sch" +
"emas\030\001 \003(\0132,.yandex.cloud.mdb.clickhouse" +
".v1.FormatSchema\022\027\n\017next_page_token\030\002 \001(" +
"\t\"\322\001\n\031CreateFormatSchemaRequest\022 \n\nclust" +
"er_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022:\n\022format_sche" +
"ma_name\030\002 \001(\tB\036\350\3071\001\212\3101\004<=63\362\3071\016[a-zA-Z0-" +
"9_-]*\022D\n\004type\030\003 \001(\01620.yandex.cloud.mdb.c" +
"lickhouse.v1.FormatSchemaTypeB\004\350\3071\001\022\021\n\003u" +
"ri\030\004 \001(\tB\004\350\3071\001\"L\n\032CreateFormatSchemaMeta" +
"data\022\022\n\ncluster_id\030\001 \001(\t\022\032\n\022format_schem" +
"a_name\030\002 \001(\t\"\267\001\n\031UpdateFormatSchemaReque" +
"st\022 \n\ncluster_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022:\n\022" +
"format_schema_name\030\002 \001(\tB\036\350\3071\001\212\3101\004<=63\362\307" +
"1\016[a-zA-Z0-9_-]*\022/\n\013update_mask\030\003 \001(\0132\032." +
"google.protobuf.FieldMask\022\013\n\003uri\030\004 \001(\t\"L" +
"\n\032UpdateFormatSchemaMetadata\022\022\n\ncluster_" +
"id\030\001 \001(\t\022\032\n\022format_schema_name\030\002 \001(\t\"y\n\031" +
"DeleteFormatSchemaRequest\022 \n\ncluster_id\030" +
"\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022:\n\022format_schema_nam" +
"e\030\002 \001(\tB\036\350\3071\001\212\3101\004<=63\362\3071\016[a-zA-Z0-9_-]*\"" +
"L\n\032DeleteFormatSchemaMetadata\022\022\n\ncluster" +
"_id\030\001 \001(\t\022\032\n\022format_schema_name\030\002 \001(\t2\352\010" +
"\n\023FormatSchemaService\022\304\001\n\003Get\0226.yandex.c" +
"loud.mdb.clickhouse.v1.GetFormatSchemaRe" +
"quest\032,.yandex.cloud.mdb.clickhouse.v1.F" +
"ormatSchema\"W\202\323\344\223\002Q\022O/managed-clickhouse" +
"/v1/clusters/{cluster_id}/formatSchemas/" +
"{format_schema_name}\022\277\001\n\004List\0228.yandex.c" +
"loud.mdb.clickhouse.v1.ListFormatSchemas" +
"Request\0329.yandex.cloud.mdb.clickhouse.v1" +
".ListFormatSchemasResponse\"B\202\323\344\223\002<\022:/man" +
"aged-clickhouse/v1/clusters/{cluster_id}" +
"/formatSchemas\022\333\001\n\006Create\0229.yandex.cloud" +
".mdb.clickhouse.v1.CreateFormatSchemaReq" +
"uest\032!.yandex.cloud.operation.Operation\"" +
"s\202\323\344\223\002?\":/managed-clickhouse/v1/clusters" +
"/{cluster_id}/formatSchemas:\001*\262\322**\n\032Crea" +
"teFormatSchemaMetadata\022\014FormatSchema\022\361\001\n" +
"\006Update\0229.yandex.cloud.mdb.clickhouse.v1" +
".UpdateFormatSchemaRequest\032!.yandex.clou" +
"d.operation.Operation\"\210\001\202\323\344\223\002T2O/managed" +
"-clickhouse/v1/clusters/{cluster_id}/for" +
"matSchemas/{format_schema_name}:\001*\262\322**\n\032" +
"UpdateFormatSchemaMetadata\022\014FormatSchema" +
"\022\367\001\n\006Delete\0229.yandex.cloud.mdb.clickhous" +
"e.v1.DeleteFormatSchemaRequest\032!.yandex." +
"cloud.operation.Operation\"\216\001\202\323\344\223\002Q*O/man" +
"aged-clickhouse/v1/clusters/{cluster_id}" +
"/formatSchemas/{format_schema_name}\262\322*3\n" +
"\032DeleteFormatSchemaMetadata\022\025google.prot" +
"obuf.EmptyBs\n\"yandex.cloud.api.mdb.click" +
"house.v1ZMgithub.com/yandex-cloud/go-gen" +
"proto/yandex/cloud/mdb/clickhouse/v1;cli" +
"ckhouseb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.getDescriptor(),
});
internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_GetFormatSchemaRequest_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", });
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasRequest_descriptor,
new java.lang.String[] { "ClusterId", "PageSize", "PageToken", });
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_ListFormatSchemasResponse_descriptor,
new java.lang.String[] { "FormatSchemas", "NextPageToken", });
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaRequest_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", "Type", "Uri", });
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_CreateFormatSchemaMetadata_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", });
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaRequest_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", "UpdateMask", "Uri", });
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_UpdateFormatSchemaMetadata_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", });
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaRequest_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", });
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_clickhouse_v1_DeleteFormatSchemaMetadata_descriptor,
new java.lang.String[] { "ClusterId", "FormatSchemaName", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
yandex.cloud.api.mdb.clickhouse.v1.FormatSchemaOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy