yandex.cloud.api.access.Access Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/access/access.proto
package yandex.cloud.api.access;
public final class Access {
private Access() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code yandex.cloud.access.AccessBindingAction}
*/
public enum AccessBindingAction
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ACCESS_BINDING_ACTION_UNSPECIFIED = 0;
*/
ACCESS_BINDING_ACTION_UNSPECIFIED(0),
/**
*
* Addition of an access binding.
*
*
* ADD = 1;
*/
ADD(1),
/**
*
* Removal of an access binding.
*
*
* REMOVE = 2;
*/
REMOVE(2),
UNRECOGNIZED(-1),
;
/**
* ACCESS_BINDING_ACTION_UNSPECIFIED = 0;
*/
public static final int ACCESS_BINDING_ACTION_UNSPECIFIED_VALUE = 0;
/**
*
* Addition of an access binding.
*
*
* ADD = 1;
*/
public static final int ADD_VALUE = 1;
/**
*
* Removal of an access binding.
*
*
* REMOVE = 2;
*/
public static final int REMOVE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AccessBindingAction 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 AccessBindingAction forNumber(int value) {
switch (value) {
case 0: return ACCESS_BINDING_ACTION_UNSPECIFIED;
case 1: return ADD;
case 2: return REMOVE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AccessBindingAction> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AccessBindingAction findValueByNumber(int number) {
return AccessBindingAction.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.access.Access.getDescriptor().getEnumTypes().get(0);
}
private static final AccessBindingAction[] VALUES = values();
public static AccessBindingAction 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 AccessBindingAction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.access.AccessBindingAction)
}
public interface SubjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.Subject)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The type.
*/
java.lang.String getType();
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
* Protobuf type {@code yandex.cloud.access.Subject}
*/
public static final class Subject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.Subject)
SubjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Subject.newBuilder() to construct.
private Subject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Subject() {
id_ = "";
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Subject();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_Subject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_Subject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.Subject.class, yandex.cloud.api.access.Access.Subject.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
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.access.Access.Subject)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.Subject other = (yandex.cloud.api.access.Access.Subject) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getType()
.equals(other.getType())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.Subject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.Subject 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.access.Access.Subject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.Subject 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.access.Access.Subject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.Subject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.Subject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.Subject 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.access.Access.Subject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.Subject 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.access.Access.Subject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.Subject 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.access.Access.Subject 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.access.Subject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.Subject)
yandex.cloud.api.access.Access.SubjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_Subject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_Subject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.Subject.class, yandex.cloud.api.access.Access.Subject.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.Subject.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();
id_ = "";
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_Subject_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.Subject getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.Subject.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.Subject build() {
yandex.cloud.api.access.Access.Subject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.Subject buildPartial() {
yandex.cloud.api.access.Access.Subject result = new yandex.cloud.api.access.Access.Subject(this);
result.id_ = id_;
result.type_ = type_;
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.access.Access.Subject) {
return mergeFrom((yandex.cloud.api.access.Access.Subject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.Subject other) {
if (other == yandex.cloud.api.access.Access.Subject.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
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.access.Access.Subject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.Subject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the subject.
* It can contain one of the following values:
* * `allAuthenticatedUsers`: A special system identifier that represents anyone
* who is authenticated. It can be used only if the [type] is `system`.
* * `allUsers`: A special system identifier that represents anyone. No authentication is required.
* For example, you don't need to specify the IAM token in an API query.
* * `<cloud generated id>`: An identifier that represents a user account.
* It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Type of the subject.
* It can contain one of the following values:
* * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
* * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
* * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
* * `system`: System group. This type represents several accounts with a common system identifier.
* For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
*
*
* string type = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=100"];
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = 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.access.Subject)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.Subject)
private static final yandex.cloud.api.access.Access.Subject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.Subject();
}
public static yandex.cloud.api.access.Access.Subject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Subject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subject(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.access.Access.Subject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccessBindingOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.AccessBinding)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The roleId.
*/
java.lang.String getRoleId();
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for roleId.
*/
com.google.protobuf.ByteString
getRoleIdBytes();
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return Whether the subject field is set.
*/
boolean hasSubject();
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return The subject.
*/
yandex.cloud.api.access.Access.Subject getSubject();
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
yandex.cloud.api.access.Access.SubjectOrBuilder getSubjectOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.access.AccessBinding}
*/
public static final class AccessBinding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.AccessBinding)
AccessBindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccessBinding.newBuilder() to construct.
private AccessBinding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessBinding() {
roleId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccessBinding();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccessBinding(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
roleId_ = s;
break;
}
case 18: {
yandex.cloud.api.access.Access.Subject.Builder subBuilder = null;
if (subject_ != null) {
subBuilder = subject_.toBuilder();
}
subject_ = input.readMessage(yandex.cloud.api.access.Access.Subject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subject_);
subject_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBinding.class, yandex.cloud.api.access.Access.AccessBinding.Builder.class);
}
public static final int ROLE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object roleId_;
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The roleId.
*/
@java.lang.Override
public java.lang.String getRoleId() {
java.lang.Object ref = roleId_;
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();
roleId_ = s;
return s;
}
}
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for roleId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoleIdBytes() {
java.lang.Object ref = roleId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBJECT_FIELD_NUMBER = 2;
private yandex.cloud.api.access.Access.Subject subject_;
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return Whether the subject field is set.
*/
@java.lang.Override
public boolean hasSubject() {
return subject_ != null;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return The subject.
*/
@java.lang.Override
public yandex.cloud.api.access.Access.Subject getSubject() {
return subject_ == null ? yandex.cloud.api.access.Access.Subject.getDefaultInstance() : subject_;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.SubjectOrBuilder getSubjectOrBuilder() {
return getSubject();
}
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(roleId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roleId_);
}
if (subject_ != null) {
output.writeMessage(2, getSubject());
}
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(roleId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, roleId_);
}
if (subject_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSubject());
}
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.access.Access.AccessBinding)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.AccessBinding other = (yandex.cloud.api.access.Access.AccessBinding) obj;
if (!getRoleId()
.equals(other.getRoleId())) return false;
if (hasSubject() != other.hasSubject()) return false;
if (hasSubject()) {
if (!getSubject()
.equals(other.getSubject())) 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) + ROLE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRoleId().hashCode();
if (hasSubject()) {
hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.AccessBinding parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBinding 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.access.Access.AccessBinding parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBinding 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.access.Access.AccessBinding parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBinding parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.AccessBinding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBinding 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.access.Access.AccessBinding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBinding 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.access.Access.AccessBinding parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBinding 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.access.Access.AccessBinding 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.access.AccessBinding}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.AccessBinding)
yandex.cloud.api.access.Access.AccessBindingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBinding.class, yandex.cloud.api.access.Access.AccessBinding.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.AccessBinding.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();
roleId_ = "";
if (subjectBuilder_ == null) {
subject_ = null;
} else {
subject_ = null;
subjectBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBinding_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding build() {
yandex.cloud.api.access.Access.AccessBinding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding buildPartial() {
yandex.cloud.api.access.Access.AccessBinding result = new yandex.cloud.api.access.Access.AccessBinding(this);
result.roleId_ = roleId_;
if (subjectBuilder_ == null) {
result.subject_ = subject_;
} else {
result.subject_ = subjectBuilder_.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.access.Access.AccessBinding) {
return mergeFrom((yandex.cloud.api.access.Access.AccessBinding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.AccessBinding other) {
if (other == yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance()) return this;
if (!other.getRoleId().isEmpty()) {
roleId_ = other.roleId_;
onChanged();
}
if (other.hasSubject()) {
mergeSubject(other.getSubject());
}
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.access.Access.AccessBinding parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.AccessBinding) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object roleId_ = "";
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The roleId.
*/
public java.lang.String getRoleId() {
java.lang.Object ref = roleId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
roleId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for roleId.
*/
public com.google.protobuf.ByteString
getRoleIdBytes() {
java.lang.Object ref = roleId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The roleId to set.
* @return This builder for chaining.
*/
public Builder setRoleId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
roleId_ = value;
onChanged();
return this;
}
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRoleId() {
roleId_ = getDefaultInstance().getRoleId();
onChanged();
return this;
}
/**
*
* ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
*
*
* string role_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for roleId to set.
* @return This builder for chaining.
*/
public Builder setRoleIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
roleId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.access.Access.Subject subject_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.Subject, yandex.cloud.api.access.Access.Subject.Builder, yandex.cloud.api.access.Access.SubjectOrBuilder> subjectBuilder_;
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return Whether the subject field is set.
*/
public boolean hasSubject() {
return subjectBuilder_ != null || subject_ != null;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
* @return The subject.
*/
public yandex.cloud.api.access.Access.Subject getSubject() {
if (subjectBuilder_ == null) {
return subject_ == null ? yandex.cloud.api.access.Access.Subject.getDefaultInstance() : subject_;
} else {
return subjectBuilder_.getMessage();
}
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public Builder setSubject(yandex.cloud.api.access.Access.Subject value) {
if (subjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subject_ = value;
onChanged();
} else {
subjectBuilder_.setMessage(value);
}
return this;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public Builder setSubject(
yandex.cloud.api.access.Access.Subject.Builder builderForValue) {
if (subjectBuilder_ == null) {
subject_ = builderForValue.build();
onChanged();
} else {
subjectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public Builder mergeSubject(yandex.cloud.api.access.Access.Subject value) {
if (subjectBuilder_ == null) {
if (subject_ != null) {
subject_ =
yandex.cloud.api.access.Access.Subject.newBuilder(subject_).mergeFrom(value).buildPartial();
} else {
subject_ = value;
}
onChanged();
} else {
subjectBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public Builder clearSubject() {
if (subjectBuilder_ == null) {
subject_ = null;
onChanged();
} else {
subject_ = null;
subjectBuilder_ = null;
}
return this;
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.access.Access.Subject.Builder getSubjectBuilder() {
onChanged();
return getSubjectFieldBuilder().getBuilder();
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.access.Access.SubjectOrBuilder getSubjectOrBuilder() {
if (subjectBuilder_ != null) {
return subjectBuilder_.getMessageOrBuilder();
} else {
return subject_ == null ?
yandex.cloud.api.access.Access.Subject.getDefaultInstance() : subject_;
}
}
/**
*
* Identity for which access binding is being created.
* It can represent an account with a unique ID or several accounts with a system identifier.
*
*
* .yandex.cloud.access.Subject subject = 2 [(.yandex.cloud.required) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.Subject, yandex.cloud.api.access.Access.Subject.Builder, yandex.cloud.api.access.Access.SubjectOrBuilder>
getSubjectFieldBuilder() {
if (subjectBuilder_ == null) {
subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.Subject, yandex.cloud.api.access.Access.Subject.Builder, yandex.cloud.api.access.Access.SubjectOrBuilder>(
getSubject(),
getParentForChildren(),
isClean());
subject_ = null;
}
return subjectBuilder_;
}
@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.access.AccessBinding)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.AccessBinding)
private static final yandex.cloud.api.access.Access.AccessBinding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.AccessBinding();
}
public static yandex.cloud.api.access.Access.AccessBinding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccessBinding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccessBinding(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.access.Access.AccessBinding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListAccessBindingsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.ListAccessBindingsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than [page_size],
* the service returns a [ListAccessBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.access.ListAccessBindingsRequest}
*/
public static final class ListAccessBindingsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.ListAccessBindingsRequest)
ListAccessBindingsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListAccessBindingsRequest.newBuilder() to construct.
private ListAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListAccessBindingsRequest() {
resourceId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListAccessBindingsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAccessBindingsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
resourceId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.ListAccessBindingsRequest.class, yandex.cloud.api.access.Access.ListAccessBindingsRequest.Builder.class);
}
public static final int RESOURCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceId_;
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than [page_size],
* the service returns a [ListAccessBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.access.Access.ListAccessBindingsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.ListAccessBindingsRequest other = (yandex.cloud.api.access.Access.ListAccessBindingsRequest) obj;
if (!getResourceId()
.equals(other.getResourceId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest 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.access.Access.ListAccessBindingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest 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.access.Access.ListAccessBindingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest 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.access.Access.ListAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest 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.access.Access.ListAccessBindingsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest 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.access.Access.ListAccessBindingsRequest 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.access.ListAccessBindingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.ListAccessBindingsRequest)
yandex.cloud.api.access.Access.ListAccessBindingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.ListAccessBindingsRequest.class, yandex.cloud.api.access.Access.ListAccessBindingsRequest.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.ListAccessBindingsRequest.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();
resourceId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsRequest getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.ListAccessBindingsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsRequest build() {
yandex.cloud.api.access.Access.ListAccessBindingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsRequest buildPartial() {
yandex.cloud.api.access.Access.ListAccessBindingsRequest result = new yandex.cloud.api.access.Access.ListAccessBindingsRequest(this);
result.resourceId_ = resourceId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.access.Access.ListAccessBindingsRequest) {
return mergeFrom((yandex.cloud.api.access.Access.ListAccessBindingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.ListAccessBindingsRequest other) {
if (other == yandex.cloud.api.access.Access.ListAccessBindingsRequest.getDefaultInstance()) return this;
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.access.Access.ListAccessBindingsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.ListAccessBindingsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object resourceId_ = "";
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* ID of the resource to list access bindings for.
* To get the resource ID, use a corresponding List request.
* For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than [page_size],
* the service returns a [ListAccessBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than [page_size],
* the service returns a [ListAccessBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than [page_size],
* the service returns a [ListAccessBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. Set [page_token]
* to the [ListAccessBindingsResponse.next_page_token]
* returned by a previous list request to get the next page of results.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.access.ListAccessBindingsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.ListAccessBindingsRequest)
private static final yandex.cloud.api.access.Access.ListAccessBindingsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.ListAccessBindingsRequest();
}
public static yandex.cloud.api.access.Access.ListAccessBindingsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListAccessBindingsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAccessBindingsRequest(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.access.Access.ListAccessBindingsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListAccessBindingsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.ListAccessBindingsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
java.util.List
getAccessBindingsList();
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index);
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
int getAccessBindingsCount();
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList();
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.access.ListAccessBindingsResponse}
*/
public static final class ListAccessBindingsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.ListAccessBindingsResponse)
ListAccessBindingsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListAccessBindingsResponse.newBuilder() to construct.
private ListAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListAccessBindingsResponse() {
accessBindings_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListAccessBindingsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAccessBindingsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
accessBindings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
accessBindings_.add(
input.readMessage(yandex.cloud.api.access.Access.AccessBinding.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.ListAccessBindingsResponse.class, yandex.cloud.api.access.Access.ListAccessBindingsResponse.Builder.class);
}
public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1;
private java.util.List accessBindings_;
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
@java.lang.Override
public java.util.List getAccessBindingsList() {
return accessBindings_;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList() {
return accessBindings_;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
@java.lang.Override
public int getAccessBindingsCount() {
return accessBindings_.size();
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index) {
return accessBindings_.get(index);
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index) {
return accessBindings_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < accessBindings_.size(); i++) {
output.writeMessage(1, accessBindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < accessBindings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, accessBindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.access.Access.ListAccessBindingsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.ListAccessBindingsResponse other = (yandex.cloud.api.access.Access.ListAccessBindingsResponse) obj;
if (!getAccessBindingsList()
.equals(other.getAccessBindingsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAccessBindingsCount() > 0) {
hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getAccessBindingsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse 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.access.Access.ListAccessBindingsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse 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.access.Access.ListAccessBindingsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse 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.access.Access.ListAccessBindingsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse 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.access.Access.ListAccessBindingsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse 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.access.Access.ListAccessBindingsResponse 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.access.ListAccessBindingsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.ListAccessBindingsResponse)
yandex.cloud.api.access.Access.ListAccessBindingsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.ListAccessBindingsResponse.class, yandex.cloud.api.access.Access.ListAccessBindingsResponse.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.ListAccessBindingsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccessBindingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (accessBindingsBuilder_ == null) {
accessBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
accessBindingsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsResponse getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.ListAccessBindingsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsResponse build() {
yandex.cloud.api.access.Access.ListAccessBindingsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.ListAccessBindingsResponse buildPartial() {
yandex.cloud.api.access.Access.ListAccessBindingsResponse result = new yandex.cloud.api.access.Access.ListAccessBindingsResponse(this);
int from_bitField0_ = bitField0_;
if (accessBindingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.accessBindings_ = accessBindings_;
} else {
result.accessBindings_ = accessBindingsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.access.Access.ListAccessBindingsResponse) {
return mergeFrom((yandex.cloud.api.access.Access.ListAccessBindingsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.ListAccessBindingsResponse other) {
if (other == yandex.cloud.api.access.Access.ListAccessBindingsResponse.getDefaultInstance()) return this;
if (accessBindingsBuilder_ == null) {
if (!other.accessBindings_.isEmpty()) {
if (accessBindings_.isEmpty()) {
accessBindings_ = other.accessBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAccessBindingsIsMutable();
accessBindings_.addAll(other.accessBindings_);
}
onChanged();
}
} else {
if (!other.accessBindings_.isEmpty()) {
if (accessBindingsBuilder_.isEmpty()) {
accessBindingsBuilder_.dispose();
accessBindingsBuilder_ = null;
accessBindings_ = other.accessBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
accessBindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAccessBindingsFieldBuilder() : null;
} else {
accessBindingsBuilder_.addAllMessages(other.accessBindings_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.access.Access.ListAccessBindingsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.ListAccessBindingsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List accessBindings_ =
java.util.Collections.emptyList();
private void ensureAccessBindingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
accessBindings_ = new java.util.ArrayList(accessBindings_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder> accessBindingsBuilder_;
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public java.util.List getAccessBindingsList() {
if (accessBindingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(accessBindings_);
} else {
return accessBindingsBuilder_.getMessageList();
}
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public int getAccessBindingsCount() {
if (accessBindingsBuilder_ == null) {
return accessBindings_.size();
} else {
return accessBindingsBuilder_.getCount();
}
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index) {
if (accessBindingsBuilder_ == null) {
return accessBindings_.get(index);
} else {
return accessBindingsBuilder_.getMessage(index);
}
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder setAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.set(index, value);
onChanged();
} else {
accessBindingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder setAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.set(index, builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder addAccessBindings(yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.add(value);
onChanged();
} else {
accessBindingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder addAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.add(index, value);
onChanged();
} else {
accessBindingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder addAccessBindings(
yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.add(builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder addAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.add(index, builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder addAllAccessBindings(
java.lang.Iterable extends yandex.cloud.api.access.Access.AccessBinding> values) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accessBindings_);
onChanged();
} else {
accessBindingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder clearAccessBindings() {
if (accessBindingsBuilder_ == null) {
accessBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
accessBindingsBuilder_.clear();
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public Builder removeAccessBindings(int index) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.remove(index);
onChanged();
} else {
accessBindingsBuilder_.remove(index);
}
return this;
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder getAccessBindingsBuilder(
int index) {
return getAccessBindingsFieldBuilder().getBuilder(index);
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index) {
if (accessBindingsBuilder_ == null) {
return accessBindings_.get(index); } else {
return accessBindingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList() {
if (accessBindingsBuilder_ != null) {
return accessBindingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accessBindings_);
}
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder addAccessBindingsBuilder() {
return getAccessBindingsFieldBuilder().addBuilder(
yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance());
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder addAccessBindingsBuilder(
int index) {
return getAccessBindingsFieldBuilder().addBuilder(
index, yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance());
}
/**
*
* List of access bindings for the specified resource.
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 1;
*/
public java.util.List
getAccessBindingsBuilderList() {
return getAccessBindingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsFieldBuilder() {
if (accessBindingsBuilder_ == null) {
accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>(
accessBindings_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
accessBindings_ = null;
}
return accessBindingsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListAccessBindingsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListAccessBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.access.ListAccessBindingsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.ListAccessBindingsResponse)
private static final yandex.cloud.api.access.Access.ListAccessBindingsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.ListAccessBindingsResponse();
}
public static yandex.cloud.api.access.Access.ListAccessBindingsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListAccessBindingsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAccessBindingsResponse(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.access.Access.ListAccessBindingsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetAccessBindingsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.SetAccessBindingsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getAccessBindingsList();
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index);
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
int getAccessBindingsCount();
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList();
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.access.SetAccessBindingsRequest}
*/
public static final class SetAccessBindingsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.SetAccessBindingsRequest)
SetAccessBindingsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetAccessBindingsRequest.newBuilder() to construct.
private SetAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetAccessBindingsRequest() {
resourceId_ = "";
accessBindings_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SetAccessBindingsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetAccessBindingsRequest(
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();
resourceId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
accessBindings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
accessBindings_.add(
input.readMessage(yandex.cloud.api.access.Access.AccessBinding.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)) {
accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.SetAccessBindingsRequest.class, yandex.cloud.api.access.Access.SetAccessBindingsRequest.Builder.class);
}
public static final int RESOURCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceId_;
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCESS_BINDINGS_FIELD_NUMBER = 2;
private java.util.List accessBindings_;
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getAccessBindingsList() {
return accessBindings_;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList() {
return accessBindings_;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getAccessBindingsCount() {
return accessBindings_.size();
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index) {
return accessBindings_.get(index);
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index) {
return accessBindings_.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(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_);
}
for (int i = 0; i < accessBindings_.size(); i++) {
output.writeMessage(2, accessBindings_.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(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_);
}
for (int i = 0; i < accessBindings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, accessBindings_.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.access.Access.SetAccessBindingsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.SetAccessBindingsRequest other = (yandex.cloud.api.access.Access.SetAccessBindingsRequest) obj;
if (!getResourceId()
.equals(other.getResourceId())) return false;
if (!getAccessBindingsList()
.equals(other.getAccessBindingsList())) 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) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
if (getAccessBindingsCount() > 0) {
hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getAccessBindingsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest 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.access.Access.SetAccessBindingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest 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.access.Access.SetAccessBindingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest 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.access.Access.SetAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest 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.access.Access.SetAccessBindingsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest 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.access.Access.SetAccessBindingsRequest 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.access.SetAccessBindingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.SetAccessBindingsRequest)
yandex.cloud.api.access.Access.SetAccessBindingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.SetAccessBindingsRequest.class, yandex.cloud.api.access.Access.SetAccessBindingsRequest.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.SetAccessBindingsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccessBindingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceId_ = "";
if (accessBindingsBuilder_ == null) {
accessBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
accessBindingsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsRequest getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.SetAccessBindingsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsRequest build() {
yandex.cloud.api.access.Access.SetAccessBindingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsRequest buildPartial() {
yandex.cloud.api.access.Access.SetAccessBindingsRequest result = new yandex.cloud.api.access.Access.SetAccessBindingsRequest(this);
int from_bitField0_ = bitField0_;
result.resourceId_ = resourceId_;
if (accessBindingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.accessBindings_ = accessBindings_;
} else {
result.accessBindings_ = accessBindingsBuilder_.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.access.Access.SetAccessBindingsRequest) {
return mergeFrom((yandex.cloud.api.access.Access.SetAccessBindingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.SetAccessBindingsRequest other) {
if (other == yandex.cloud.api.access.Access.SetAccessBindingsRequest.getDefaultInstance()) return this;
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
onChanged();
}
if (accessBindingsBuilder_ == null) {
if (!other.accessBindings_.isEmpty()) {
if (accessBindings_.isEmpty()) {
accessBindings_ = other.accessBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAccessBindingsIsMutable();
accessBindings_.addAll(other.accessBindings_);
}
onChanged();
}
} else {
if (!other.accessBindings_.isEmpty()) {
if (accessBindingsBuilder_.isEmpty()) {
accessBindingsBuilder_.dispose();
accessBindingsBuilder_ = null;
accessBindings_ = other.accessBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
accessBindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAccessBindingsFieldBuilder() : null;
} else {
accessBindingsBuilder_.addAllMessages(other.accessBindings_);
}
}
}
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.access.Access.SetAccessBindingsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.SetAccessBindingsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object resourceId_ = "";
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being set.
* To get the resource ID, use a corresponding List request.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = value;
onChanged();
return this;
}
private java.util.List accessBindings_ =
java.util.Collections.emptyList();
private void ensureAccessBindingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
accessBindings_ = new java.util.ArrayList(accessBindings_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder> accessBindingsBuilder_;
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getAccessBindingsList() {
if (accessBindingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(accessBindings_);
} else {
return accessBindingsBuilder_.getMessageList();
}
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public int getAccessBindingsCount() {
if (accessBindingsBuilder_ == null) {
return accessBindings_.size();
} else {
return accessBindingsBuilder_.getCount();
}
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.access.Access.AccessBinding getAccessBindings(int index) {
if (accessBindingsBuilder_ == null) {
return accessBindings_.get(index);
} else {
return accessBindingsBuilder_.getMessage(index);
}
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.set(index, value);
onChanged();
} else {
accessBindingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.set(index, builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAccessBindings(yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.add(value);
onChanged();
} else {
accessBindingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingsIsMutable();
accessBindings_.add(index, value);
onChanged();
} else {
accessBindingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAccessBindings(
yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.add(builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAccessBindings(
int index, yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.add(index, builderForValue.build());
onChanged();
} else {
accessBindingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllAccessBindings(
java.lang.Iterable extends yandex.cloud.api.access.Access.AccessBinding> values) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accessBindings_);
onChanged();
} else {
accessBindingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearAccessBindings() {
if (accessBindingsBuilder_ == null) {
accessBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
accessBindingsBuilder_.clear();
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeAccessBindings(int index) {
if (accessBindingsBuilder_ == null) {
ensureAccessBindingsIsMutable();
accessBindings_.remove(index);
onChanged();
} else {
accessBindingsBuilder_.remove(index);
}
return this;
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder getAccessBindingsBuilder(
int index) {
return getAccessBindingsFieldBuilder().getBuilder(index);
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingsOrBuilder(
int index) {
if (accessBindingsBuilder_ == null) {
return accessBindings_.get(index); } else {
return accessBindingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsOrBuilderList() {
if (accessBindingsBuilder_ != null) {
return accessBindingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accessBindings_);
}
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder addAccessBindingsBuilder() {
return getAccessBindingsFieldBuilder().addBuilder(
yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance());
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder addAccessBindingsBuilder(
int index) {
return getAccessBindingsFieldBuilder().addBuilder(
index, yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance());
}
/**
*
* Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* repeated .yandex.cloud.access.AccessBinding access_bindings = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getAccessBindingsBuilderList() {
return getAccessBindingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingsFieldBuilder() {
if (accessBindingsBuilder_ == null) {
accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>(
accessBindings_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
accessBindings_ = null;
}
return accessBindingsBuilder_;
}
@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.access.SetAccessBindingsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.SetAccessBindingsRequest)
private static final yandex.cloud.api.access.Access.SetAccessBindingsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.SetAccessBindingsRequest();
}
public static yandex.cloud.api.access.Access.SetAccessBindingsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetAccessBindingsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetAccessBindingsRequest(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.access.Access.SetAccessBindingsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetAccessBindingsMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.SetAccessBindingsMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.access.SetAccessBindingsMetadata}
*/
public static final class SetAccessBindingsMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.SetAccessBindingsMetadata)
SetAccessBindingsMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetAccessBindingsMetadata.newBuilder() to construct.
private SetAccessBindingsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetAccessBindingsMetadata() {
resourceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SetAccessBindingsMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetAccessBindingsMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
resourceId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.SetAccessBindingsMetadata.class, yandex.cloud.api.access.Access.SetAccessBindingsMetadata.Builder.class);
}
public static final int RESOURCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceId_;
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_);
}
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(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_);
}
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.access.Access.SetAccessBindingsMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.SetAccessBindingsMetadata other = (yandex.cloud.api.access.Access.SetAccessBindingsMetadata) obj;
if (!getResourceId()
.equals(other.getResourceId())) 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) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata 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.access.Access.SetAccessBindingsMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata 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.access.Access.SetAccessBindingsMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata 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.access.Access.SetAccessBindingsMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata 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.access.Access.SetAccessBindingsMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata 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.access.Access.SetAccessBindingsMetadata 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.access.SetAccessBindingsMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.SetAccessBindingsMetadata)
yandex.cloud.api.access.Access.SetAccessBindingsMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.SetAccessBindingsMetadata.class, yandex.cloud.api.access.Access.SetAccessBindingsMetadata.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.SetAccessBindingsMetadata.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();
resourceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsMetadata getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.SetAccessBindingsMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsMetadata build() {
yandex.cloud.api.access.Access.SetAccessBindingsMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.SetAccessBindingsMetadata buildPartial() {
yandex.cloud.api.access.Access.SetAccessBindingsMetadata result = new yandex.cloud.api.access.Access.SetAccessBindingsMetadata(this);
result.resourceId_ = resourceId_;
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.access.Access.SetAccessBindingsMetadata) {
return mergeFrom((yandex.cloud.api.access.Access.SetAccessBindingsMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.SetAccessBindingsMetadata other) {
if (other == yandex.cloud.api.access.Access.SetAccessBindingsMetadata.getDefaultInstance()) return this;
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
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.access.Access.SetAccessBindingsMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.SetAccessBindingsMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object resourceId_ = "";
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being set.
*
*
* string resource_id = 1;
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = 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.access.SetAccessBindingsMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.SetAccessBindingsMetadata)
private static final yandex.cloud.api.access.Access.SetAccessBindingsMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.SetAccessBindingsMetadata();
}
public static yandex.cloud.api.access.Access.SetAccessBindingsMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetAccessBindingsMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetAccessBindingsMetadata(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.access.Access.SetAccessBindingsMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateAccessBindingsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.UpdateAccessBindingsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
java.util.List
getAccessBindingDeltasList();
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
yandex.cloud.api.access.Access.AccessBindingDelta getAccessBindingDeltas(int index);
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
int getAccessBindingDeltasCount();
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getAccessBindingDeltasOrBuilderList();
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getAccessBindingDeltasOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.access.UpdateAccessBindingsRequest}
*/
public static final class UpdateAccessBindingsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.UpdateAccessBindingsRequest)
UpdateAccessBindingsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateAccessBindingsRequest.newBuilder() to construct.
private UpdateAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateAccessBindingsRequest() {
resourceId_ = "";
accessBindingDeltas_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateAccessBindingsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateAccessBindingsRequest(
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();
resourceId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
accessBindingDeltas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
accessBindingDeltas_.add(
input.readMessage(yandex.cloud.api.access.Access.AccessBindingDelta.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)) {
accessBindingDeltas_ = java.util.Collections.unmodifiableList(accessBindingDeltas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.class, yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.Builder.class);
}
public static final int RESOURCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceId_;
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCESS_BINDING_DELTAS_FIELD_NUMBER = 2;
private java.util.List accessBindingDeltas_;
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
@java.lang.Override
public java.util.List getAccessBindingDeltasList() {
return accessBindingDeltas_;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getAccessBindingDeltasOrBuilderList() {
return accessBindingDeltas_;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
@java.lang.Override
public int getAccessBindingDeltasCount() {
return accessBindingDeltas_.size();
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDelta getAccessBindingDeltas(int index) {
return accessBindingDeltas_.get(index);
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getAccessBindingDeltasOrBuilder(
int index) {
return accessBindingDeltas_.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(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_);
}
for (int i = 0; i < accessBindingDeltas_.size(); i++) {
output.writeMessage(2, accessBindingDeltas_.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(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_);
}
for (int i = 0; i < accessBindingDeltas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, accessBindingDeltas_.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.access.Access.UpdateAccessBindingsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest other = (yandex.cloud.api.access.Access.UpdateAccessBindingsRequest) obj;
if (!getResourceId()
.equals(other.getResourceId())) return false;
if (!getAccessBindingDeltasList()
.equals(other.getAccessBindingDeltasList())) 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) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
if (getAccessBindingDeltasCount() > 0) {
hash = (37 * hash) + ACCESS_BINDING_DELTAS_FIELD_NUMBER;
hash = (53 * hash) + getAccessBindingDeltasList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest 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.access.Access.UpdateAccessBindingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest 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.access.Access.UpdateAccessBindingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest 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.access.Access.UpdateAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest 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.access.Access.UpdateAccessBindingsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest 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.access.Access.UpdateAccessBindingsRequest 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.access.UpdateAccessBindingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.UpdateAccessBindingsRequest)
yandex.cloud.api.access.Access.UpdateAccessBindingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.class, yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccessBindingDeltasFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceId_ = "";
if (accessBindingDeltasBuilder_ == null) {
accessBindingDeltas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
accessBindingDeltasBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsRequest getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsRequest build() {
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsRequest buildPartial() {
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest result = new yandex.cloud.api.access.Access.UpdateAccessBindingsRequest(this);
int from_bitField0_ = bitField0_;
result.resourceId_ = resourceId_;
if (accessBindingDeltasBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
accessBindingDeltas_ = java.util.Collections.unmodifiableList(accessBindingDeltas_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.accessBindingDeltas_ = accessBindingDeltas_;
} else {
result.accessBindingDeltas_ = accessBindingDeltasBuilder_.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.access.Access.UpdateAccessBindingsRequest) {
return mergeFrom((yandex.cloud.api.access.Access.UpdateAccessBindingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest other) {
if (other == yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.getDefaultInstance()) return this;
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
onChanged();
}
if (accessBindingDeltasBuilder_ == null) {
if (!other.accessBindingDeltas_.isEmpty()) {
if (accessBindingDeltas_.isEmpty()) {
accessBindingDeltas_ = other.accessBindingDeltas_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.addAll(other.accessBindingDeltas_);
}
onChanged();
}
} else {
if (!other.accessBindingDeltas_.isEmpty()) {
if (accessBindingDeltasBuilder_.isEmpty()) {
accessBindingDeltasBuilder_.dispose();
accessBindingDeltasBuilder_ = null;
accessBindingDeltas_ = other.accessBindingDeltas_;
bitField0_ = (bitField0_ & ~0x00000001);
accessBindingDeltasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAccessBindingDeltasFieldBuilder() : null;
} else {
accessBindingDeltasBuilder_.addAllMessages(other.accessBindingDeltas_);
}
}
}
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.access.Access.UpdateAccessBindingsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.UpdateAccessBindingsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object resourceId_ = "";
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = value;
onChanged();
return this;
}
private java.util.List accessBindingDeltas_ =
java.util.Collections.emptyList();
private void ensureAccessBindingDeltasIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
accessBindingDeltas_ = new java.util.ArrayList(accessBindingDeltas_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder> accessBindingDeltasBuilder_;
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public java.util.List getAccessBindingDeltasList() {
if (accessBindingDeltasBuilder_ == null) {
return java.util.Collections.unmodifiableList(accessBindingDeltas_);
} else {
return accessBindingDeltasBuilder_.getMessageList();
}
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public int getAccessBindingDeltasCount() {
if (accessBindingDeltasBuilder_ == null) {
return accessBindingDeltas_.size();
} else {
return accessBindingDeltasBuilder_.getCount();
}
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingDelta getAccessBindingDeltas(int index) {
if (accessBindingDeltasBuilder_ == null) {
return accessBindingDeltas_.get(index);
} else {
return accessBindingDeltasBuilder_.getMessage(index);
}
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder setAccessBindingDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (accessBindingDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.set(index, value);
onChanged();
} else {
accessBindingDeltasBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder setAccessBindingDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (accessBindingDeltasBuilder_ == null) {
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.set(index, builderForValue.build());
onChanged();
} else {
accessBindingDeltasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder addAccessBindingDeltas(yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (accessBindingDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.add(value);
onChanged();
} else {
accessBindingDeltasBuilder_.addMessage(value);
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder addAccessBindingDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (accessBindingDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.add(index, value);
onChanged();
} else {
accessBindingDeltasBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder addAccessBindingDeltas(
yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (accessBindingDeltasBuilder_ == null) {
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.add(builderForValue.build());
onChanged();
} else {
accessBindingDeltasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder addAccessBindingDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (accessBindingDeltasBuilder_ == null) {
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.add(index, builderForValue.build());
onChanged();
} else {
accessBindingDeltasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder addAllAccessBindingDeltas(
java.lang.Iterable extends yandex.cloud.api.access.Access.AccessBindingDelta> values) {
if (accessBindingDeltasBuilder_ == null) {
ensureAccessBindingDeltasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accessBindingDeltas_);
onChanged();
} else {
accessBindingDeltasBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder clearAccessBindingDeltas() {
if (accessBindingDeltasBuilder_ == null) {
accessBindingDeltas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
accessBindingDeltasBuilder_.clear();
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public Builder removeAccessBindingDeltas(int index) {
if (accessBindingDeltasBuilder_ == null) {
ensureAccessBindingDeltasIsMutable();
accessBindingDeltas_.remove(index);
onChanged();
} else {
accessBindingDeltasBuilder_.remove(index);
}
return this;
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder getAccessBindingDeltasBuilder(
int index) {
return getAccessBindingDeltasFieldBuilder().getBuilder(index);
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getAccessBindingDeltasOrBuilder(
int index) {
if (accessBindingDeltasBuilder_ == null) {
return accessBindingDeltas_.get(index); } else {
return accessBindingDeltasBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getAccessBindingDeltasOrBuilderList() {
if (accessBindingDeltasBuilder_ != null) {
return accessBindingDeltasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accessBindingDeltas_);
}
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder addAccessBindingDeltasBuilder() {
return getAccessBindingDeltasFieldBuilder().addBuilder(
yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance());
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder addAccessBindingDeltasBuilder(
int index) {
return getAccessBindingDeltasFieldBuilder().addBuilder(
index, yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance());
}
/**
*
* Updates to access bindings.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta access_binding_deltas = 2 [(.yandex.cloud.size) = "1-1000"];
*/
public java.util.List
getAccessBindingDeltasBuilderList() {
return getAccessBindingDeltasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getAccessBindingDeltasFieldBuilder() {
if (accessBindingDeltasBuilder_ == null) {
accessBindingDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>(
accessBindingDeltas_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
accessBindingDeltas_ = null;
}
return accessBindingDeltasBuilder_;
}
@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.access.UpdateAccessBindingsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.UpdateAccessBindingsRequest)
private static final yandex.cloud.api.access.Access.UpdateAccessBindingsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.UpdateAccessBindingsRequest();
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateAccessBindingsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateAccessBindingsRequest(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.access.Access.UpdateAccessBindingsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateAccessBindingsMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.UpdateAccessBindingsMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.access.UpdateAccessBindingsMetadata}
*/
public static final class UpdateAccessBindingsMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.UpdateAccessBindingsMetadata)
UpdateAccessBindingsMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateAccessBindingsMetadata.newBuilder() to construct.
private UpdateAccessBindingsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateAccessBindingsMetadata() {
resourceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateAccessBindingsMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateAccessBindingsMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
resourceId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.class, yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.Builder.class);
}
public static final int RESOURCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceId_;
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_);
}
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(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_);
}
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.access.Access.UpdateAccessBindingsMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata other = (yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata) obj;
if (!getResourceId()
.equals(other.getResourceId())) 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) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata 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.access.Access.UpdateAccessBindingsMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata 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.access.Access.UpdateAccessBindingsMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata 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.access.Access.UpdateAccessBindingsMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata 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.access.Access.UpdateAccessBindingsMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata 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.access.Access.UpdateAccessBindingsMetadata 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.access.UpdateAccessBindingsMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.UpdateAccessBindingsMetadata)
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.class, yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.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();
resourceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata build() {
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata buildPartial() {
yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata result = new yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata(this);
result.resourceId_ = resourceId_;
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.access.Access.UpdateAccessBindingsMetadata) {
return mergeFrom((yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata other) {
if (other == yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata.getDefaultInstance()) return this;
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
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.access.Access.UpdateAccessBindingsMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object resourceId_ = "";
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* ID of the resource for which access bindings are being updated.
*
*
* string resource_id = 1;
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = 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.access.UpdateAccessBindingsMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.UpdateAccessBindingsMetadata)
private static final yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata();
}
public static yandex.cloud.api.access.Access.UpdateAccessBindingsMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateAccessBindingsMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateAccessBindingsMetadata(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.access.Access.UpdateAccessBindingsMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccessBindingDeltaOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.AccessBindingDelta)
com.google.protobuf.MessageOrBuilder {
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for action.
*/
int getActionValue();
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The action.
*/
yandex.cloud.api.access.Access.AccessBindingAction getAction();
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return Whether the accessBinding field is set.
*/
boolean hasAccessBinding();
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return The accessBinding.
*/
yandex.cloud.api.access.Access.AccessBinding getAccessBinding();
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.access.AccessBindingDelta}
*/
public static final class AccessBindingDelta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.AccessBindingDelta)
AccessBindingDeltaOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccessBindingDelta.newBuilder() to construct.
private AccessBindingDelta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessBindingDelta() {
action_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccessBindingDelta();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccessBindingDelta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
action_ = rawValue;
break;
}
case 18: {
yandex.cloud.api.access.Access.AccessBinding.Builder subBuilder = null;
if (accessBinding_ != null) {
subBuilder = accessBinding_.toBuilder();
}
accessBinding_ = input.readMessage(yandex.cloud.api.access.Access.AccessBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accessBinding_);
accessBinding_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingDelta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingDelta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBindingDelta.class, yandex.cloud.api.access.Access.AccessBindingDelta.Builder.class);
}
public static final int ACTION_FIELD_NUMBER = 1;
private int action_;
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for action.
*/
@java.lang.Override public int getActionValue() {
return action_;
}
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The action.
*/
@java.lang.Override public yandex.cloud.api.access.Access.AccessBindingAction getAction() {
@SuppressWarnings("deprecation")
yandex.cloud.api.access.Access.AccessBindingAction result = yandex.cloud.api.access.Access.AccessBindingAction.valueOf(action_);
return result == null ? yandex.cloud.api.access.Access.AccessBindingAction.UNRECOGNIZED : result;
}
public static final int ACCESS_BINDING_FIELD_NUMBER = 2;
private yandex.cloud.api.access.Access.AccessBinding accessBinding_;
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return Whether the accessBinding field is set.
*/
@java.lang.Override
public boolean hasAccessBinding() {
return accessBinding_ != null;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return The accessBinding.
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBinding getAccessBinding() {
return accessBinding_ == null ? yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance() : accessBinding_;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingOrBuilder() {
return getAccessBinding();
}
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 (action_ != yandex.cloud.api.access.Access.AccessBindingAction.ACCESS_BINDING_ACTION_UNSPECIFIED.getNumber()) {
output.writeEnum(1, action_);
}
if (accessBinding_ != null) {
output.writeMessage(2, getAccessBinding());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (action_ != yandex.cloud.api.access.Access.AccessBindingAction.ACCESS_BINDING_ACTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, action_);
}
if (accessBinding_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccessBinding());
}
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.access.Access.AccessBindingDelta)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.AccessBindingDelta other = (yandex.cloud.api.access.Access.AccessBindingDelta) obj;
if (action_ != other.action_) return false;
if (hasAccessBinding() != other.hasAccessBinding()) return false;
if (hasAccessBinding()) {
if (!getAccessBinding()
.equals(other.getAccessBinding())) 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) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + action_;
if (hasAccessBinding()) {
hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER;
hash = (53 * hash) + getAccessBinding().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.AccessBindingDelta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta 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.access.Access.AccessBindingDelta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta 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.access.Access.AccessBindingDelta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta 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.access.Access.AccessBindingDelta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta 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.access.Access.AccessBindingDelta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingDelta 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.access.Access.AccessBindingDelta 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.access.AccessBindingDelta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.AccessBindingDelta)
yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingDelta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingDelta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBindingDelta.class, yandex.cloud.api.access.Access.AccessBindingDelta.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.AccessBindingDelta.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();
action_ = 0;
if (accessBindingBuilder_ == null) {
accessBinding_ = null;
} else {
accessBinding_ = null;
accessBindingBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingDelta_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDelta getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDelta build() {
yandex.cloud.api.access.Access.AccessBindingDelta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDelta buildPartial() {
yandex.cloud.api.access.Access.AccessBindingDelta result = new yandex.cloud.api.access.Access.AccessBindingDelta(this);
result.action_ = action_;
if (accessBindingBuilder_ == null) {
result.accessBinding_ = accessBinding_;
} else {
result.accessBinding_ = accessBindingBuilder_.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.access.Access.AccessBindingDelta) {
return mergeFrom((yandex.cloud.api.access.Access.AccessBindingDelta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.AccessBindingDelta other) {
if (other == yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance()) return this;
if (other.action_ != 0) {
setActionValue(other.getActionValue());
}
if (other.hasAccessBinding()) {
mergeAccessBinding(other.getAccessBinding());
}
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.access.Access.AccessBindingDelta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.AccessBindingDelta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int action_ = 0;
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for action.
*/
@java.lang.Override public int getActionValue() {
return action_;
}
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @param value The enum numeric value on the wire for action to set.
* @return This builder for chaining.
*/
public Builder setActionValue(int value) {
action_ = value;
onChanged();
return this;
}
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return The action.
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingAction getAction() {
@SuppressWarnings("deprecation")
yandex.cloud.api.access.Access.AccessBindingAction result = yandex.cloud.api.access.Access.AccessBindingAction.valueOf(action_);
return result == null ? yandex.cloud.api.access.Access.AccessBindingAction.UNRECOGNIZED : result;
}
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @param value The action to set.
* @return This builder for chaining.
*/
public Builder setAction(yandex.cloud.api.access.Access.AccessBindingAction value) {
if (value == null) {
throw new NullPointerException();
}
action_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The action that is being performed on an access binding.
*
*
* .yandex.cloud.access.AccessBindingAction action = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearAction() {
action_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.access.Access.AccessBinding accessBinding_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder> accessBindingBuilder_;
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return Whether the accessBinding field is set.
*/
public boolean hasAccessBinding() {
return accessBindingBuilder_ != null || accessBinding_ != null;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
* @return The accessBinding.
*/
public yandex.cloud.api.access.Access.AccessBinding getAccessBinding() {
if (accessBindingBuilder_ == null) {
return accessBinding_ == null ? yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance() : accessBinding_;
} else {
return accessBindingBuilder_.getMessage();
}
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public Builder setAccessBinding(yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accessBinding_ = value;
onChanged();
} else {
accessBindingBuilder_.setMessage(value);
}
return this;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public Builder setAccessBinding(
yandex.cloud.api.access.Access.AccessBinding.Builder builderForValue) {
if (accessBindingBuilder_ == null) {
accessBinding_ = builderForValue.build();
onChanged();
} else {
accessBindingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public Builder mergeAccessBinding(yandex.cloud.api.access.Access.AccessBinding value) {
if (accessBindingBuilder_ == null) {
if (accessBinding_ != null) {
accessBinding_ =
yandex.cloud.api.access.Access.AccessBinding.newBuilder(accessBinding_).mergeFrom(value).buildPartial();
} else {
accessBinding_ = value;
}
onChanged();
} else {
accessBindingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public Builder clearAccessBinding() {
if (accessBindingBuilder_ == null) {
accessBinding_ = null;
onChanged();
} else {
accessBinding_ = null;
accessBindingBuilder_ = null;
}
return this;
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.access.Access.AccessBinding.Builder getAccessBindingBuilder() {
onChanged();
return getAccessBindingFieldBuilder().getBuilder();
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.access.Access.AccessBindingOrBuilder getAccessBindingOrBuilder() {
if (accessBindingBuilder_ != null) {
return accessBindingBuilder_.getMessageOrBuilder();
} else {
return accessBinding_ == null ?
yandex.cloud.api.access.Access.AccessBinding.getDefaultInstance() : accessBinding_;
}
}
/**
*
* Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
*
*
* .yandex.cloud.access.AccessBinding access_binding = 2 [(.yandex.cloud.required) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>
getAccessBindingFieldBuilder() {
if (accessBindingBuilder_ == null) {
accessBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBinding, yandex.cloud.api.access.Access.AccessBinding.Builder, yandex.cloud.api.access.Access.AccessBindingOrBuilder>(
getAccessBinding(),
getParentForChildren(),
isClean());
accessBinding_ = null;
}
return accessBindingBuilder_;
}
@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.access.AccessBindingDelta)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.AccessBindingDelta)
private static final yandex.cloud.api.access.Access.AccessBindingDelta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.AccessBindingDelta();
}
public static yandex.cloud.api.access.Access.AccessBindingDelta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccessBindingDelta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccessBindingDelta(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.access.Access.AccessBindingDelta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccessBindingsOperationResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.access.AccessBindingsOperationResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
java.util.List
getEffectiveDeltasList();
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
yandex.cloud.api.access.Access.AccessBindingDelta getEffectiveDeltas(int index);
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
int getEffectiveDeltasCount();
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getEffectiveDeltasOrBuilderList();
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getEffectiveDeltasOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.access.AccessBindingsOperationResult}
*/
public static final class AccessBindingsOperationResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.access.AccessBindingsOperationResult)
AccessBindingsOperationResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccessBindingsOperationResult.newBuilder() to construct.
private AccessBindingsOperationResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessBindingsOperationResult() {
effectiveDeltas_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccessBindingsOperationResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccessBindingsOperationResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
effectiveDeltas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
effectiveDeltas_.add(
input.readMessage(yandex.cloud.api.access.Access.AccessBindingDelta.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)) {
effectiveDeltas_ = java.util.Collections.unmodifiableList(effectiveDeltas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingsOperationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBindingsOperationResult.class, yandex.cloud.api.access.Access.AccessBindingsOperationResult.Builder.class);
}
public static final int EFFECTIVE_DELTAS_FIELD_NUMBER = 1;
private java.util.List effectiveDeltas_;
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
@java.lang.Override
public java.util.List getEffectiveDeltasList() {
return effectiveDeltas_;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getEffectiveDeltasOrBuilderList() {
return effectiveDeltas_;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
@java.lang.Override
public int getEffectiveDeltasCount() {
return effectiveDeltas_.size();
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDelta getEffectiveDeltas(int index) {
return effectiveDeltas_.get(index);
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getEffectiveDeltasOrBuilder(
int index) {
return effectiveDeltas_.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 {
for (int i = 0; i < effectiveDeltas_.size(); i++) {
output.writeMessage(1, effectiveDeltas_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < effectiveDeltas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, effectiveDeltas_.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.access.Access.AccessBindingsOperationResult)) {
return super.equals(obj);
}
yandex.cloud.api.access.Access.AccessBindingsOperationResult other = (yandex.cloud.api.access.Access.AccessBindingsOperationResult) obj;
if (!getEffectiveDeltasList()
.equals(other.getEffectiveDeltasList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEffectiveDeltasCount() > 0) {
hash = (37 * hash) + EFFECTIVE_DELTAS_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveDeltasList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult 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.access.Access.AccessBindingsOperationResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult 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.access.Access.AccessBindingsOperationResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult 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.access.Access.AccessBindingsOperationResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult 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.access.Access.AccessBindingsOperationResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult 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.access.Access.AccessBindingsOperationResult 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.access.AccessBindingsOperationResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.access.AccessBindingsOperationResult)
yandex.cloud.api.access.Access.AccessBindingsOperationResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingsOperationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.access.Access.AccessBindingsOperationResult.class, yandex.cloud.api.access.Access.AccessBindingsOperationResult.Builder.class);
}
// Construct using yandex.cloud.api.access.Access.AccessBindingsOperationResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEffectiveDeltasFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (effectiveDeltasBuilder_ == null) {
effectiveDeltas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
effectiveDeltasBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.access.Access.internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingsOperationResult getDefaultInstanceForType() {
return yandex.cloud.api.access.Access.AccessBindingsOperationResult.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingsOperationResult build() {
yandex.cloud.api.access.Access.AccessBindingsOperationResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.access.Access.AccessBindingsOperationResult buildPartial() {
yandex.cloud.api.access.Access.AccessBindingsOperationResult result = new yandex.cloud.api.access.Access.AccessBindingsOperationResult(this);
int from_bitField0_ = bitField0_;
if (effectiveDeltasBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
effectiveDeltas_ = java.util.Collections.unmodifiableList(effectiveDeltas_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.effectiveDeltas_ = effectiveDeltas_;
} else {
result.effectiveDeltas_ = effectiveDeltasBuilder_.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.access.Access.AccessBindingsOperationResult) {
return mergeFrom((yandex.cloud.api.access.Access.AccessBindingsOperationResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.access.Access.AccessBindingsOperationResult other) {
if (other == yandex.cloud.api.access.Access.AccessBindingsOperationResult.getDefaultInstance()) return this;
if (effectiveDeltasBuilder_ == null) {
if (!other.effectiveDeltas_.isEmpty()) {
if (effectiveDeltas_.isEmpty()) {
effectiveDeltas_ = other.effectiveDeltas_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.addAll(other.effectiveDeltas_);
}
onChanged();
}
} else {
if (!other.effectiveDeltas_.isEmpty()) {
if (effectiveDeltasBuilder_.isEmpty()) {
effectiveDeltasBuilder_.dispose();
effectiveDeltasBuilder_ = null;
effectiveDeltas_ = other.effectiveDeltas_;
bitField0_ = (bitField0_ & ~0x00000001);
effectiveDeltasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEffectiveDeltasFieldBuilder() : null;
} else {
effectiveDeltasBuilder_.addAllMessages(other.effectiveDeltas_);
}
}
}
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.access.Access.AccessBindingsOperationResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.access.Access.AccessBindingsOperationResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List effectiveDeltas_ =
java.util.Collections.emptyList();
private void ensureEffectiveDeltasIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
effectiveDeltas_ = new java.util.ArrayList(effectiveDeltas_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder> effectiveDeltasBuilder_;
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public java.util.List getEffectiveDeltasList() {
if (effectiveDeltasBuilder_ == null) {
return java.util.Collections.unmodifiableList(effectiveDeltas_);
} else {
return effectiveDeltasBuilder_.getMessageList();
}
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public int getEffectiveDeltasCount() {
if (effectiveDeltasBuilder_ == null) {
return effectiveDeltas_.size();
} else {
return effectiveDeltasBuilder_.getCount();
}
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingDelta getEffectiveDeltas(int index) {
if (effectiveDeltasBuilder_ == null) {
return effectiveDeltas_.get(index);
} else {
return effectiveDeltasBuilder_.getMessage(index);
}
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder setEffectiveDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (effectiveDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.set(index, value);
onChanged();
} else {
effectiveDeltasBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder setEffectiveDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (effectiveDeltasBuilder_ == null) {
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.set(index, builderForValue.build());
onChanged();
} else {
effectiveDeltasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder addEffectiveDeltas(yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (effectiveDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.add(value);
onChanged();
} else {
effectiveDeltasBuilder_.addMessage(value);
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder addEffectiveDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta value) {
if (effectiveDeltasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.add(index, value);
onChanged();
} else {
effectiveDeltasBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder addEffectiveDeltas(
yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (effectiveDeltasBuilder_ == null) {
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.add(builderForValue.build());
onChanged();
} else {
effectiveDeltasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder addEffectiveDeltas(
int index, yandex.cloud.api.access.Access.AccessBindingDelta.Builder builderForValue) {
if (effectiveDeltasBuilder_ == null) {
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.add(index, builderForValue.build());
onChanged();
} else {
effectiveDeltasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder addAllEffectiveDeltas(
java.lang.Iterable extends yandex.cloud.api.access.Access.AccessBindingDelta> values) {
if (effectiveDeltasBuilder_ == null) {
ensureEffectiveDeltasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, effectiveDeltas_);
onChanged();
} else {
effectiveDeltasBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder clearEffectiveDeltas() {
if (effectiveDeltasBuilder_ == null) {
effectiveDeltas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
effectiveDeltasBuilder_.clear();
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public Builder removeEffectiveDeltas(int index) {
if (effectiveDeltasBuilder_ == null) {
ensureEffectiveDeltasIsMutable();
effectiveDeltas_.remove(index);
onChanged();
} else {
effectiveDeltasBuilder_.remove(index);
}
return this;
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder getEffectiveDeltasBuilder(
int index) {
return getEffectiveDeltasFieldBuilder().getBuilder(index);
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder getEffectiveDeltasOrBuilder(
int index) {
if (effectiveDeltasBuilder_ == null) {
return effectiveDeltas_.get(index); } else {
return effectiveDeltasBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public java.util.List extends yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getEffectiveDeltasOrBuilderList() {
if (effectiveDeltasBuilder_ != null) {
return effectiveDeltasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(effectiveDeltas_);
}
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder addEffectiveDeltasBuilder() {
return getEffectiveDeltasFieldBuilder().addBuilder(
yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance());
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public yandex.cloud.api.access.Access.AccessBindingDelta.Builder addEffectiveDeltasBuilder(
int index) {
return getEffectiveDeltasFieldBuilder().addBuilder(
index, yandex.cloud.api.access.Access.AccessBindingDelta.getDefaultInstance());
}
/**
*
* Result access binding deltas.
*
*
* repeated .yandex.cloud.access.AccessBindingDelta effective_deltas = 1;
*/
public java.util.List
getEffectiveDeltasBuilderList() {
return getEffectiveDeltasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>
getEffectiveDeltasFieldBuilder() {
if (effectiveDeltasBuilder_ == null) {
effectiveDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.access.Access.AccessBindingDelta, yandex.cloud.api.access.Access.AccessBindingDelta.Builder, yandex.cloud.api.access.Access.AccessBindingDeltaOrBuilder>(
effectiveDeltas_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
effectiveDeltas_ = null;
}
return effectiveDeltasBuilder_;
}
@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.access.AccessBindingsOperationResult)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.access.AccessBindingsOperationResult)
private static final yandex.cloud.api.access.Access.AccessBindingsOperationResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.access.Access.AccessBindingsOperationResult();
}
public static yandex.cloud.api.access.Access.AccessBindingsOperationResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccessBindingsOperationResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccessBindingsOperationResult(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.access.Access.AccessBindingsOperationResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_Subject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_Subject_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_AccessBinding_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_AccessBinding_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_ListAccessBindingsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_ListAccessBindingsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_SetAccessBindingsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_SetAccessBindingsMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_AccessBindingDelta_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_AccessBindingDelta_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_access_AccessBindingsOperationResult_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/access/access.proto\022\023yand" +
"ex.cloud.access\032\035yandex/cloud/validation" +
".proto\"@\n\007Subject\022\030\n\002id\030\001 \001(\tB\014\350\3071\001\212\3101\004<" +
"=50\022\033\n\004type\030\002 \001(\tB\r\350\3071\001\212\3101\005<=100\"c\n\rAcce" +
"ssBinding\022\035\n\007role_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50" +
"\0223\n\007subject\030\002 \001(\0132\034.yandex.cloud.access." +
"SubjectB\004\350\3071\001\"|\n\031ListAccessBindingsReque" +
"st\022!\n\013resource_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035\n" +
"\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\npage_tok" +
"en\030\003 \001(\tB\t\212\3101\005<=100\"r\n\032ListAccessBinding" +
"sResponse\022;\n\017access_bindings\030\001 \003(\0132\".yan" +
"dex.cloud.access.AccessBinding\022\027\n\017next_p" +
"age_token\030\002 \001(\t\"\206\001\n\030SetAccessBindingsReq" +
"uest\022!\n\013resource_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022" +
"G\n\017access_bindings\030\002 \003(\0132\".yandex.cloud." +
"access.AccessBindingB\n\202\3101\006<=1000\"0\n\031SetA" +
"ccessBindingsMetadata\022\023\n\013resource_id\030\001 \001" +
"(\t\"\224\001\n\033UpdateAccessBindingsRequest\022!\n\013re" +
"source_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022R\n\025access_" +
"binding_deltas\030\002 \003(\0132\'.yandex.cloud.acce" +
"ss.AccessBindingDeltaB\n\202\3101\0061-1000\"3\n\034Upd" +
"ateAccessBindingsMetadata\022\023\n\013resource_id" +
"\030\001 \001(\t\"\226\001\n\022AccessBindingDelta\022>\n\006action\030" +
"\001 \001(\0162(.yandex.cloud.access.AccessBindin" +
"gActionB\004\350\3071\001\022@\n\016access_binding\030\002 \001(\0132\"." +
"yandex.cloud.access.AccessBindingB\004\350\3071\001\"" +
"b\n\035AccessBindingsOperationResult\022A\n\020effe" +
"ctive_deltas\030\001 \003(\0132\'.yandex.cloud.access" +
".AccessBindingDelta*Q\n\023AccessBindingActi" +
"on\022%\n!ACCESS_BINDING_ACTION_UNSPECIFIED\020" +
"\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002BY\n\027yandex.cloud.a" +
"pi.accessZ>github.com/yandex-cloud/go-ge" +
"nproto/yandex/cloud/access;accessb\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_access_Subject_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_access_Subject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_Subject_descriptor,
new java.lang.String[] { "Id", "Type", });
internal_static_yandex_cloud_access_AccessBinding_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_access_AccessBinding_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_AccessBinding_descriptor,
new java.lang.String[] { "RoleId", "Subject", });
internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_access_ListAccessBindingsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_ListAccessBindingsRequest_descriptor,
new java.lang.String[] { "ResourceId", "PageSize", "PageToken", });
internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_access_ListAccessBindingsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_ListAccessBindingsResponse_descriptor,
new java.lang.String[] { "AccessBindings", "NextPageToken", });
internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_access_SetAccessBindingsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_SetAccessBindingsRequest_descriptor,
new java.lang.String[] { "ResourceId", "AccessBindings", });
internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_access_SetAccessBindingsMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_SetAccessBindingsMetadata_descriptor,
new java.lang.String[] { "ResourceId", });
internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_UpdateAccessBindingsRequest_descriptor,
new java.lang.String[] { "ResourceId", "AccessBindingDeltas", });
internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_UpdateAccessBindingsMetadata_descriptor,
new java.lang.String[] { "ResourceId", });
internal_static_yandex_cloud_access_AccessBindingDelta_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_access_AccessBindingDelta_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_AccessBindingDelta_descriptor,
new java.lang.String[] { "Action", "AccessBinding", });
internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_access_AccessBindingsOperationResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_access_AccessBindingsOperationResult_descriptor,
new java.lang.String[] { "EffectiveDeltas", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.size);
registry.add(yandex.cloud.api.Validation.value);
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