yandex.cloud.api.mdb.kafka.v1.UserOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/kafka/v1/user.proto
package yandex.cloud.api.mdb.kafka.v1;
public final class UserOuterClass {
private UserOuterClass() {}
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 UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.User)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
java.util.List
getPermissionsList();
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index);
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
int getPermissionsCount();
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList();
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index);
}
/**
*
* A Kafka user.
* For more information, see the [Operations -> Accounts](/docs/managed-kafka/operations/cluster-accounts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.kafka.v1.User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.User)
UserOrBuilder {
private static final long serialVersionUID = 0L;
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private User() {
name_ = "";
clusterId_ = "";
permissions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new User();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private User(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
permissions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
permissions_.add(
input.readMessage(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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;
}
}
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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 PERMISSIONS_FIELD_NUMBER = 3;
private java.util.List permissions_;
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public java.util.List getPermissionsList() {
return permissions_;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList() {
return permissions_;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public int getPermissionsCount() {
return permissions_.size();
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index) {
return permissions_.get(index);
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
return permissions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_);
}
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(3, permissions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_);
}
for (int i = 0; i < permissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, permissions_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User other = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getPermissionsList()
.equals(other.getPermissionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
if (getPermissionsCount() > 0) {
hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + getPermissionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User 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.kafka.v1.UserOuterClass.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User 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.kafka.v1.UserOuterClass.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User 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.kafka.v1.UserOuterClass.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User 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.kafka.v1.UserOuterClass.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User 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.kafka.v1.UserOuterClass.User 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;
}
/**
*
* A Kafka user.
* For more information, see the [Operations -> Accounts](/docs/managed-kafka/operations/cluster-accounts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.kafka.v1.User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.User)
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.Builder.class);
}
// Construct using yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPermissionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
clusterId_ = "";
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
permissionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User getDefaultInstanceForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User build() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User buildPartial() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User result = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.clusterId_ = clusterId_;
if (permissionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.permissions_ = permissions_;
} else {
result.permissions_ = permissionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User) {
return mergeFrom((yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User other) {
if (other == yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (permissionsBuilder_ == null) {
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
}
onChanged();
}
} else {
if (!other.permissions_.isEmpty()) {
if (permissionsBuilder_.isEmpty()) {
permissionsBuilder_.dispose();
permissionsBuilder_ = null;
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000001);
permissionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPermissionsFieldBuilder() : null;
} else {
permissionsBuilder_.addAllMessages(other.permissions_);
}
}
}
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.kafka.v1.UserOuterClass.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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;
}
}
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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;
}
}
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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;
}
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
*
* ID of the Apache Kafka® cluster the user belongs to.
* To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
*
*
* string cluster_id = 2;
* @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.util.List permissions_ =
java.util.Collections.emptyList();
private void ensurePermissionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
permissions_ = new java.util.ArrayList(permissions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder> permissionsBuilder_;
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List getPermissionsList() {
if (permissionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(permissions_);
} else {
return permissionsBuilder_.getMessageList();
}
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public int getPermissionsCount() {
if (permissionsBuilder_ == null) {
return permissions_.size();
} else {
return permissionsBuilder_.getCount();
}
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index);
} else {
return permissionsBuilder_.getMessage(index);
}
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder setPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.set(index, value);
onChanged();
} else {
permissionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder setPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.set(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(value);
onChanged();
} else {
permissionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(index, value);
onChanged();
} else {
permissionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addAllPermissions(
java.lang.Iterable extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission> values) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, permissions_);
onChanged();
} else {
permissionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder clearPermissions() {
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
permissionsBuilder_.clear();
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder removePermissions(int index) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.remove(index);
onChanged();
} else {
permissionsBuilder_.remove(index);
}
return this;
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder getPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().getBuilder(index);
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index); } else {
return permissionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList() {
if (permissionsBuilder_ != null) {
return permissionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(permissions_);
}
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder addPermissionsBuilder() {
return getPermissionsFieldBuilder().addBuilder(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance());
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder addPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance());
}
/**
*
* Set of permissions granted to this user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List
getPermissionsBuilderList() {
return getPermissionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsFieldBuilder() {
if (permissionsBuilder_ == null) {
permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>(
permissions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
permissions_ = null;
}
return permissionsBuilder_;
}
@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.kafka.v1.User)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.User)
private static final yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User();
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.User getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(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.kafka.v1.UserOuterClass.User getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.UserSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The password.
*/
java.lang.String getPassword();
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The bytes for password.
*/
com.google.protobuf.ByteString
getPasswordBytes();
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
java.util.List
getPermissionsList();
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index);
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
int getPermissionsCount();
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList();
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.mdb.kafka.v1.UserSpec}
*/
public static final class UserSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.UserSpec)
UserSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserSpec.newBuilder() to construct.
private UserSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserSpec() {
name_ = "";
password_ = "";
permissions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
password_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
permissions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
permissions_.add(
input.readMessage(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 2;
private volatile java.lang.Object password_;
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The password.
*/
@java.lang.Override
public java.lang.String getPassword() {
java.lang.Object ref = password_;
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();
password_ = s;
return s;
}
}
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The bytes for password.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERMISSIONS_FIELD_NUMBER = 3;
private java.util.List permissions_;
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public java.util.List getPermissionsList() {
return permissions_;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList() {
return permissions_;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public int getPermissionsCount() {
return permissions_.size();
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index) {
return permissions_.get(index);
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
return permissions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_);
}
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(3, permissions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_);
}
for (int i = 0; i < permissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, permissions_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec other = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getPassword()
.equals(other.getPassword())) return false;
if (!getPermissionsList()
.equals(other.getPermissionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
if (getPermissionsCount() > 0) {
hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + getPermissionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserOuterClass.UserSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserOuterClass.UserSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserOuterClass.UserSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserOuterClass.UserSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserOuterClass.UserSpec 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.kafka.v1.UserSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.UserSpec)
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.Builder.class);
}
// Construct using yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPermissionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
password_ = "";
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
permissionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec getDefaultInstanceForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec build() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec buildPartial() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec result = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.password_ = password_;
if (permissionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.permissions_ = permissions_;
} else {
result.permissions_ = permissionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec) {
return mergeFrom((yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec other) {
if (other == yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
onChanged();
}
if (permissionsBuilder_ == null) {
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
}
onChanged();
}
} else {
if (!other.permissions_.isEmpty()) {
if (permissionsBuilder_.isEmpty()) {
permissionsBuilder_.dispose();
permissionsBuilder_ = null;
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000001);
permissionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPermissionsFieldBuilder() : null;
} else {
permissionsBuilder_.addAllMessages(other.permissions_);
}
}
}
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.kafka.v1.UserOuterClass.UserSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the Kafka user.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_]*", (.yandex.cloud.length) = "1-256"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object password_ = "";
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The password.
*/
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return The bytes for password.
*/
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @param value The password to set.
* @return This builder for chaining.
*/
public Builder setPassword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
return this;
}
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @return This builder for chaining.
*/
public Builder clearPassword() {
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
}
/**
*
* Password of the Kafka user.
*
*
* string password = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "8-128"];
* @param value The bytes for password to set.
* @return This builder for chaining.
*/
public Builder setPasswordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
password_ = value;
onChanged();
return this;
}
private java.util.List permissions_ =
java.util.Collections.emptyList();
private void ensurePermissionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
permissions_ = new java.util.ArrayList(permissions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder> permissionsBuilder_;
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List getPermissionsList() {
if (permissionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(permissions_);
} else {
return permissionsBuilder_.getMessageList();
}
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public int getPermissionsCount() {
if (permissionsBuilder_ == null) {
return permissions_.size();
} else {
return permissionsBuilder_.getCount();
}
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getPermissions(int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index);
} else {
return permissionsBuilder_.getMessage(index);
}
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder setPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.set(index, value);
onChanged();
} else {
permissionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder setPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.set(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(value);
onChanged();
} else {
permissionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission value) {
if (permissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(index, value);
onChanged();
} else {
permissionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addPermissions(
int index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder builderForValue) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.add(index, builderForValue.build());
onChanged();
} else {
permissionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder addAllPermissions(
java.lang.Iterable extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission> values) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, permissions_);
onChanged();
} else {
permissionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder clearPermissions() {
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
permissionsBuilder_.clear();
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public Builder removePermissions(int index) {
if (permissionsBuilder_ == null) {
ensurePermissionsIsMutable();
permissions_.remove(index);
onChanged();
} else {
permissionsBuilder_.remove(index);
}
return this;
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder getPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().getBuilder(index);
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
if (permissionsBuilder_ == null) {
return permissions_.get(index); } else {
return permissionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List extends yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsOrBuilderList() {
if (permissionsBuilder_ != null) {
return permissionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(permissions_);
}
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder addPermissionsBuilder() {
return getPermissionsFieldBuilder().addBuilder(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance());
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder addPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance());
}
/**
*
* Set of permissions granted to the user.
*
*
* repeated .yandex.cloud.mdb.kafka.v1.Permission permissions = 3;
*/
public java.util.List
getPermissionsBuilderList() {
return getPermissionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>
getPermissionsFieldBuilder() {
if (permissionsBuilder_ == null) {
permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder>(
permissions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
permissions_ = null;
}
return permissionsBuilder_;
}
@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.kafka.v1.UserSpec)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.UserSpec)
private static final yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec();
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.UserSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserSpec(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.kafka.v1.UserOuterClass.UserSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PermissionOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.Permission)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The topicName.
*/
java.lang.String getTopicName();
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The bytes for topicName.
*/
com.google.protobuf.ByteString
getTopicNameBytes();
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The enum numeric value on the wire for role.
*/
int getRoleValue();
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The role.
*/
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole getRole();
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return A list containing the allowHosts.
*/
java.util.List
getAllowHostsList();
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return The count of allowHosts.
*/
int getAllowHostsCount();
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the element to return.
* @return The allowHosts at the given index.
*/
java.lang.String getAllowHosts(int index);
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the value to return.
* @return The bytes of the allowHosts at the given index.
*/
com.google.protobuf.ByteString
getAllowHostsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.mdb.kafka.v1.Permission}
*/
public static final class Permission extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.Permission)
PermissionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Permission.newBuilder() to construct.
private Permission(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Permission() {
topicName_ = "";
role_ = 0;
allowHosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Permission();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Permission(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
topicName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
role_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
allowHosts_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
allowHosts_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
allowHosts_ = allowHosts_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.kafka.v1.Permission.AccessRole}
*/
public enum AccessRole
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ACCESS_ROLE_UNSPECIFIED = 0;
*/
ACCESS_ROLE_UNSPECIFIED(0),
/**
*
* producer role for the user.
*
*
* ACCESS_ROLE_PRODUCER = 1;
*/
ACCESS_ROLE_PRODUCER(1),
/**
*
* consumer role for the user.
*
*
* ACCESS_ROLE_CONSUMER = 2;
*/
ACCESS_ROLE_CONSUMER(2),
/**
*
* admin role for the user.
*
*
* ACCESS_ROLE_ADMIN = 3;
*/
ACCESS_ROLE_ADMIN(3),
UNRECOGNIZED(-1),
;
/**
* ACCESS_ROLE_UNSPECIFIED = 0;
*/
public static final int ACCESS_ROLE_UNSPECIFIED_VALUE = 0;
/**
*
* producer role for the user.
*
*
* ACCESS_ROLE_PRODUCER = 1;
*/
public static final int ACCESS_ROLE_PRODUCER_VALUE = 1;
/**
*
* consumer role for the user.
*
*
* ACCESS_ROLE_CONSUMER = 2;
*/
public static final int ACCESS_ROLE_CONSUMER_VALUE = 2;
/**
*
* admin role for the user.
*
*
* ACCESS_ROLE_ADMIN = 3;
*/
public static final int ACCESS_ROLE_ADMIN_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AccessRole valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AccessRole forNumber(int value) {
switch (value) {
case 0: return ACCESS_ROLE_UNSPECIFIED;
case 1: return ACCESS_ROLE_PRODUCER;
case 2: return ACCESS_ROLE_CONSUMER;
case 3: return ACCESS_ROLE_ADMIN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AccessRole> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AccessRole findValueByNumber(int number) {
return AccessRole.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDescriptor().getEnumTypes().get(0);
}
private static final AccessRole[] VALUES = values();
public static AccessRole valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AccessRole(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.Permission.AccessRole)
}
public static final int TOPIC_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object topicName_;
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The topicName.
*/
@java.lang.Override
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
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();
topicName_ = s;
return s;
}
}
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The bytes for topicName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLE_FIELD_NUMBER = 2;
private int role_;
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The enum numeric value on the wire for role.
*/
@java.lang.Override public int getRoleValue() {
return role_;
}
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The role.
*/
@java.lang.Override public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole getRole() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole result = yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.valueOf(role_);
return result == null ? yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.UNRECOGNIZED : result;
}
public static final int ALLOW_HOSTS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList allowHosts_;
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return A list containing the allowHosts.
*/
public com.google.protobuf.ProtocolStringList
getAllowHostsList() {
return allowHosts_;
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return The count of allowHosts.
*/
public int getAllowHostsCount() {
return allowHosts_.size();
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the element to return.
* @return The allowHosts at the given index.
*/
public java.lang.String getAllowHosts(int index) {
return allowHosts_.get(index);
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the value to return.
* @return The bytes of the allowHosts at the given index.
*/
public com.google.protobuf.ByteString
getAllowHostsBytes(int index) {
return allowHosts_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_);
}
if (role_ != yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.ACCESS_ROLE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, role_);
}
for (int i = 0; i < allowHosts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowHosts_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_);
}
if (role_ != yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.ACCESS_ROLE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, role_);
}
{
int dataSize = 0;
for (int i = 0; i < allowHosts_.size(); i++) {
dataSize += computeStringSizeNoTag(allowHosts_.getRaw(i));
}
size += dataSize;
size += 1 * getAllowHostsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission other = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission) obj;
if (!getTopicName()
.equals(other.getTopicName())) return false;
if (role_ != other.role_) return false;
if (!getAllowHostsList()
.equals(other.getAllowHostsList())) 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) + TOPIC_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTopicName().hashCode();
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
if (getAllowHostsCount() > 0) {
hash = (37 * hash) + ALLOW_HOSTS_FIELD_NUMBER;
hash = (53 * hash) + getAllowHostsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission 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.kafka.v1.UserOuterClass.Permission parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission 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.kafka.v1.UserOuterClass.Permission parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission 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.kafka.v1.UserOuterClass.Permission parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission 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.kafka.v1.UserOuterClass.Permission parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission 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.kafka.v1.UserOuterClass.Permission 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.kafka.v1.Permission}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.Permission)
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.PermissionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.class, yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.Builder.class);
}
// Construct using yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.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();
topicName_ = "";
role_ = 0;
allowHosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getDefaultInstanceForType() {
return yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission build() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission buildPartial() {
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission result = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission(this);
int from_bitField0_ = bitField0_;
result.topicName_ = topicName_;
result.role_ = role_;
if (((bitField0_ & 0x00000001) != 0)) {
allowHosts_ = allowHosts_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.allowHosts_ = allowHosts_;
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.kafka.v1.UserOuterClass.Permission) {
return mergeFrom((yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission other) {
if (other == yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.getDefaultInstance()) return this;
if (!other.getTopicName().isEmpty()) {
topicName_ = other.topicName_;
onChanged();
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
if (!other.allowHosts_.isEmpty()) {
if (allowHosts_.isEmpty()) {
allowHosts_ = other.allowHosts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAllowHostsIsMutable();
allowHosts_.addAll(other.allowHosts_);
}
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.kafka.v1.UserOuterClass.Permission parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object topicName_ = "";
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The topicName.
*/
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
topicName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return The bytes for topicName.
*/
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @param value The topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
topicName_ = value;
onChanged();
return this;
}
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @return This builder for chaining.
*/
public Builder clearTopicName() {
topicName_ = getDefaultInstance().getTopicName();
onChanged();
return this;
}
/**
*
* Name or prefix-pattern with wildcard for the topic that the permission grants access to.
* To get the topic name, make a [TopicService.List] request.
*
*
* string topic_name = 1;
* @param value The bytes for topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
topicName_ = value;
onChanged();
return this;
}
private int role_ = 0;
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The enum numeric value on the wire for role.
*/
@java.lang.Override public int getRoleValue() {
return role_;
}
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @param value The enum numeric value on the wire for role to set.
* @return This builder for chaining.
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return The role.
*/
@java.lang.Override
public yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole getRole() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole result = yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.valueOf(role_);
return result == null ? yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole.UNRECOGNIZED : result;
}
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @param value The role to set.
* @return This builder for chaining.
*/
public Builder setRole(yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission.AccessRole value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Access role type to grant to the user.
*
*
* .yandex.cloud.mdb.kafka.v1.Permission.AccessRole role = 2;
* @return This builder for chaining.
*/
public Builder clearRole() {
role_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList allowHosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllowHostsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
allowHosts_ = new com.google.protobuf.LazyStringArrayList(allowHosts_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return A list containing the allowHosts.
*/
public com.google.protobuf.ProtocolStringList
getAllowHostsList() {
return allowHosts_.getUnmodifiableView();
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return The count of allowHosts.
*/
public int getAllowHostsCount() {
return allowHosts_.size();
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the element to return.
* @return The allowHosts at the given index.
*/
public java.lang.String getAllowHosts(int index) {
return allowHosts_.get(index);
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index of the value to return.
* @return The bytes of the allowHosts at the given index.
*/
public com.google.protobuf.ByteString
getAllowHostsBytes(int index) {
return allowHosts_.getByteString(index);
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param index The index to set the value at.
* @param value The allowHosts to set.
* @return This builder for chaining.
*/
public Builder setAllowHosts(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowHostsIsMutable();
allowHosts_.set(index, value);
onChanged();
return this;
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param value The allowHosts to add.
* @return This builder for chaining.
*/
public Builder addAllowHosts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowHostsIsMutable();
allowHosts_.add(value);
onChanged();
return this;
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param values The allowHosts to add.
* @return This builder for chaining.
*/
public Builder addAllAllowHosts(
java.lang.Iterable values) {
ensureAllowHostsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allowHosts_);
onChanged();
return this;
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @return This builder for chaining.
*/
public Builder clearAllowHosts() {
allowHosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Lists hosts allowed for this permission.
* When not defined, access from any host is allowed.
* Bare in mind that the same host might appear in multiple permissions at the same time,
* hence removing individual permission doesn't automatically restricts access from the [allow_hosts] of the permission.
* If the same host(s) is listed for another permission of the same principal/topic, the host(s) remains allowed.
*
*
* repeated string allow_hosts = 4;
* @param value The bytes of the allowHosts to add.
* @return This builder for chaining.
*/
public Builder addAllowHostsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAllowHostsIsMutable();
allowHosts_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.kafka.v1.Permission)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.Permission)
private static final yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission();
}
public static yandex.cloud.api.mdb.kafka.v1.UserOuterClass.Permission getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Permission parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Permission(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.kafka.v1.UserOuterClass.Permission getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_kafka_v1_User_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_kafka_v1_Permission_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/kafka/v1/user.proto\022\031" +
"yandex.cloud.mdb.kafka.v1\032\035yandex/cloud/" +
"validation.proto\"d\n\004User\022\014\n\004name\030\001 \001(\t\022\022" +
"\n\ncluster_id\030\002 \001(\t\022:\n\013permissions\030\003 \003(\0132" +
"%.yandex.cloud.mdb.kafka.v1.Permission\"\225" +
"\001\n\010UserSpec\022,\n\004name\030\001 \001(\tB\036\350\3071\001\212\3101\0051-256" +
"\362\3071\r[a-zA-Z0-9_]*\022\037\n\010password\030\002 \001(\tB\r\350\3071" +
"\001\212\3101\0058-128\022:\n\013permissions\030\003 \003(\0132%.yandex" +
".cloud.mdb.kafka.v1.Permission\"\353\001\n\nPermi" +
"ssion\022\022\n\ntopic_name\030\001 \001(\t\022>\n\004role\030\002 \001(\0162" +
"0.yandex.cloud.mdb.kafka.v1.Permission.A" +
"ccessRole\022\023\n\013allow_hosts\030\004 \003(\t\"t\n\nAccess" +
"Role\022\033\n\027ACCESS_ROLE_UNSPECIFIED\020\000\022\030\n\024ACC" +
"ESS_ROLE_PRODUCER\020\001\022\030\n\024ACCESS_ROLE_CONSU" +
"MER\020\002\022\025\n\021ACCESS_ROLE_ADMIN\020\003Bd\n\035yandex.c" +
"loud.api.mdb.kafka.v1ZCgithub.com/yandex" +
"-cloud/go-genproto/yandex/cloud/mdb/kafk" +
"a/v1;kafkab\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_kafka_v1_User_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_kafka_v1_User_descriptor,
new java.lang.String[] { "Name", "ClusterId", "Permissions", });
internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_kafka_v1_UserSpec_descriptor,
new java.lang.String[] { "Name", "Password", "Permissions", });
internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_mdb_kafka_v1_Permission_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_kafka_v1_Permission_descriptor,
new java.lang.String[] { "TopicName", "Role", "AllowHosts", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy