yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/iam/v1/api_key_service.proto
package yandex.cloud.api.iam.v1;
public final class ApiKeyServiceOuterClass {
private ApiKeyServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface GetApiKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.GetApiKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.GetApiKeyRequest}
*/
public static final class GetApiKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.GetApiKeyRequest)
GetApiKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetApiKeyRequest.newBuilder() to construct.
private GetApiKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetApiKeyRequest() {
apiKeyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetApiKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApiKeyRequest(
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();
apiKeyId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest 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.iam.v1.GetApiKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.GetApiKeyRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.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();
apiKeyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest(this);
result.apiKeyId_ = apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the API key to return.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = 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.iam.v1.GetApiKeyRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.GetApiKeyRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetApiKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApiKeyRequest(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.iam.v1.ApiKeyServiceOuterClass.GetApiKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiKeysRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.ListApiKeysRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeysResponse.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) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.ListApiKeysRequest}
*/
public static final class ListApiKeysRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.ListApiKeysRequest)
ListApiKeysRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiKeysRequest.newBuilder() to construct.
private ListApiKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiKeysRequest() {
serviceAccountId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiKeysRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiKeysRequest(
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();
serviceAccountId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.Builder.class);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = 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 to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeysResponse.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) = "0-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. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_);
}
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(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountId_);
}
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest) obj;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) 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) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest 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.iam.v1.ListApiKeysRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.ListApiKeysRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.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();
serviceAccountId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest(this);
result.serviceAccountId_ = serviceAccountId_;
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest.getDefaultInstance()) return this;
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account to list API keys for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeysResponse.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) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeysResponse.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) = "0-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 to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeysResponse.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) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token]
* to the [ListApiKeysResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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.iam.v1.ListApiKeysRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.ListApiKeysRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiKeysRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiKeysRequest(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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiKeysResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.ListApiKeysResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
java.util.List
getApiKeysList();
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKeys(int index);
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
int getApiKeysCount();
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
java.util.List extends yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>
getApiKeysOrBuilderList();
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeysOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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.iam.v1.ListApiKeysResponse}
*/
public static final class ListApiKeysResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.ListApiKeysResponse)
ListApiKeysResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiKeysResponse.newBuilder() to construct.
private ListApiKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiKeysResponse() {
apiKeys_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiKeysResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiKeysResponse(
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)) {
apiKeys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
apiKeys_.add(
input.readMessage(yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.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)) {
apiKeys_ = java.util.Collections.unmodifiableList(apiKeys_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.Builder.class);
}
public static final int API_KEYS_FIELD_NUMBER = 1;
private java.util.List apiKeys_;
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
@java.lang.Override
public java.util.List getApiKeysList() {
return apiKeys_;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>
getApiKeysOrBuilderList() {
return apiKeys_;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
@java.lang.Override
public int getApiKeysCount() {
return apiKeys_.size();
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKeys(int index) {
return apiKeys_.get(index);
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeysOrBuilder(
int index) {
return apiKeys_.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 < apiKeys_.size(); i++) {
output.writeMessage(1, apiKeys_.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 < apiKeys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, apiKeys_.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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse) obj;
if (!getApiKeysList()
.equals(other.getApiKeysList())) 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 (getApiKeysCount() > 0) {
hash = (37 * hash) + API_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getApiKeysList().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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse 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.iam.v1.ListApiKeysResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.ListApiKeysResponse)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApiKeysFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (apiKeysBuilder_ == null) {
apiKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
apiKeysBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse(this);
int from_bitField0_ = bitField0_;
if (apiKeysBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
apiKeys_ = java.util.Collections.unmodifiableList(apiKeys_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.apiKeys_ = apiKeys_;
} else {
result.apiKeys_ = apiKeysBuilder_.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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse.getDefaultInstance()) return this;
if (apiKeysBuilder_ == null) {
if (!other.apiKeys_.isEmpty()) {
if (apiKeys_.isEmpty()) {
apiKeys_ = other.apiKeys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureApiKeysIsMutable();
apiKeys_.addAll(other.apiKeys_);
}
onChanged();
}
} else {
if (!other.apiKeys_.isEmpty()) {
if (apiKeysBuilder_.isEmpty()) {
apiKeysBuilder_.dispose();
apiKeysBuilder_ = null;
apiKeys_ = other.apiKeys_;
bitField0_ = (bitField0_ & ~0x00000001);
apiKeysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApiKeysFieldBuilder() : null;
} else {
apiKeysBuilder_.addAllMessages(other.apiKeys_);
}
}
}
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List apiKeys_ =
java.util.Collections.emptyList();
private void ensureApiKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
apiKeys_ = new java.util.ArrayList(apiKeys_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder> apiKeysBuilder_;
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public java.util.List getApiKeysList() {
if (apiKeysBuilder_ == null) {
return java.util.Collections.unmodifiableList(apiKeys_);
} else {
return apiKeysBuilder_.getMessageList();
}
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public int getApiKeysCount() {
if (apiKeysBuilder_ == null) {
return apiKeys_.size();
} else {
return apiKeysBuilder_.getCount();
}
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKeys(int index) {
if (apiKeysBuilder_ == null) {
return apiKeys_.get(index);
} else {
return apiKeysBuilder_.getMessage(index);
}
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder setApiKeys(
int index, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey value) {
if (apiKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiKeysIsMutable();
apiKeys_.set(index, value);
onChanged();
} else {
apiKeysBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder setApiKeys(
int index, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder builderForValue) {
if (apiKeysBuilder_ == null) {
ensureApiKeysIsMutable();
apiKeys_.set(index, builderForValue.build());
onChanged();
} else {
apiKeysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder addApiKeys(yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey value) {
if (apiKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiKeysIsMutable();
apiKeys_.add(value);
onChanged();
} else {
apiKeysBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder addApiKeys(
int index, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey value) {
if (apiKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiKeysIsMutable();
apiKeys_.add(index, value);
onChanged();
} else {
apiKeysBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder addApiKeys(
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder builderForValue) {
if (apiKeysBuilder_ == null) {
ensureApiKeysIsMutable();
apiKeys_.add(builderForValue.build());
onChanged();
} else {
apiKeysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder addApiKeys(
int index, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder builderForValue) {
if (apiKeysBuilder_ == null) {
ensureApiKeysIsMutable();
apiKeys_.add(index, builderForValue.build());
onChanged();
} else {
apiKeysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder addAllApiKeys(
java.lang.Iterable extends yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey> values) {
if (apiKeysBuilder_ == null) {
ensureApiKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, apiKeys_);
onChanged();
} else {
apiKeysBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder clearApiKeys() {
if (apiKeysBuilder_ == null) {
apiKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
apiKeysBuilder_.clear();
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public Builder removeApiKeys(int index) {
if (apiKeysBuilder_ == null) {
ensureApiKeysIsMutable();
apiKeys_.remove(index);
onChanged();
} else {
apiKeysBuilder_.remove(index);
}
return this;
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder getApiKeysBuilder(
int index) {
return getApiKeysFieldBuilder().getBuilder(index);
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeysOrBuilder(
int index) {
if (apiKeysBuilder_ == null) {
return apiKeys_.get(index); } else {
return apiKeysBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public java.util.List extends yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>
getApiKeysOrBuilderList() {
if (apiKeysBuilder_ != null) {
return apiKeysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(apiKeys_);
}
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder addApiKeysBuilder() {
return getApiKeysFieldBuilder().addBuilder(
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.getDefaultInstance());
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder addApiKeysBuilder(
int index) {
return getApiKeysFieldBuilder().addBuilder(
index, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.getDefaultInstance());
}
/**
*
* List of API keys.
*
*
* repeated .yandex.cloud.iam.v1.ApiKey api_keys = 1;
*/
public java.util.List
getApiKeysBuilderList() {
return getApiKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>
getApiKeysFieldBuilder() {
if (apiKeysBuilder_ == null) {
apiKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>(
apiKeys_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
apiKeys_ = null;
}
return apiKeysBuilder_;
}
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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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 [ListApiKeysRequest.page_size], use
* the [next_page_token] as the value
* for the [ListApiKeysRequest.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.iam.v1.ListApiKeysResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.ListApiKeysResponse)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiKeysResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiKeysResponse(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.iam.v1.ApiKeyServiceOuterClass.ListApiKeysResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateApiKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.CreateApiKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.CreateApiKeyRequest}
*/
public static final class CreateApiKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.CreateApiKeyRequest)
CreateApiKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateApiKeyRequest.newBuilder() to construct.
private CreateApiKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateApiKeyRequest() {
serviceAccountId_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateApiKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateApiKeyRequest(
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();
serviceAccountId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.Builder.class);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = 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(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
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(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest) obj;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (!getDescription()
.equals(other.getDescription())) 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) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest 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.iam.v1.CreateApiKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.CreateApiKeyRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.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();
serviceAccountId_ = "";
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest(this);
result.serviceAccountId_ = serviceAccountId_;
result.description_ = description_;
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest.getDefaultInstance()) return this;
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account to create an API key for.
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
* If not specified, it defaults to the subject that made the request.
*
*
* string service_account_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the API key.
*
*
* string description = 2 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = 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.iam.v1.CreateApiKeyRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.CreateApiKeyRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateApiKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateApiKeyRequest(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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateApiKeyResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.CreateApiKeyResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return Whether the apiKey field is set.
*/
boolean hasApiKey();
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return The apiKey.
*/
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKey();
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeyOrBuilder();
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The secret.
*/
java.lang.String getSecret();
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The bytes for secret.
*/
com.google.protobuf.ByteString
getSecretBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.CreateApiKeyResponse}
*/
public static final class CreateApiKeyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.CreateApiKeyResponse)
CreateApiKeyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateApiKeyResponse.newBuilder() to construct.
private CreateApiKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateApiKeyResponse() {
secret_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateApiKeyResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateApiKeyResponse(
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: {
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder subBuilder = null;
if (apiKey_ != null) {
subBuilder = apiKey_.toBuilder();
}
apiKey_ = input.readMessage(yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(apiKey_);
apiKey_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
secret_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.Builder.class);
}
public static final int API_KEY_FIELD_NUMBER = 1;
private yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey apiKey_;
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return Whether the apiKey field is set.
*/
@java.lang.Override
public boolean hasApiKey() {
return apiKey_ != null;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return The apiKey.
*/
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKey() {
return apiKey_ == null ? yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.getDefaultInstance() : apiKey_;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeyOrBuilder() {
return getApiKey();
}
public static final int SECRET_FIELD_NUMBER = 2;
private volatile java.lang.Object secret_;
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The secret.
*/
@java.lang.Override
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
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();
secret_ = s;
return s;
}
}
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The bytes for secret.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = 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 (apiKey_ != null) {
output.writeMessage(1, getApiKey());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secret_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (apiKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getApiKey());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secret_);
}
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse) obj;
if (hasApiKey() != other.hasApiKey()) return false;
if (hasApiKey()) {
if (!getApiKey()
.equals(other.getApiKey())) return false;
}
if (!getSecret()
.equals(other.getSecret())) 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 (hasApiKey()) {
hash = (37 * hash) + API_KEY_FIELD_NUMBER;
hash = (53 * hash) + getApiKey().hashCode();
}
hash = (37 * hash) + SECRET_FIELD_NUMBER;
hash = (53 * hash) + getSecret().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse 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.iam.v1.CreateApiKeyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.CreateApiKeyResponse)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (apiKeyBuilder_ == null) {
apiKey_ = null;
} else {
apiKey_ = null;
apiKeyBuilder_ = null;
}
secret_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse(this);
if (apiKeyBuilder_ == null) {
result.apiKey_ = apiKey_;
} else {
result.apiKey_ = apiKeyBuilder_.build();
}
result.secret_ = secret_;
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse.getDefaultInstance()) return this;
if (other.hasApiKey()) {
mergeApiKey(other.getApiKey());
}
if (!other.getSecret().isEmpty()) {
secret_ = other.secret_;
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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey apiKey_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder> apiKeyBuilder_;
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return Whether the apiKey field is set.
*/
public boolean hasApiKey() {
return apiKeyBuilder_ != null || apiKey_ != null;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
* @return The apiKey.
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey getApiKey() {
if (apiKeyBuilder_ == null) {
return apiKey_ == null ? yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.getDefaultInstance() : apiKey_;
} else {
return apiKeyBuilder_.getMessage();
}
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public Builder setApiKey(yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey value) {
if (apiKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
apiKey_ = value;
onChanged();
} else {
apiKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public Builder setApiKey(
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder builderForValue) {
if (apiKeyBuilder_ == null) {
apiKey_ = builderForValue.build();
onChanged();
} else {
apiKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public Builder mergeApiKey(yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey value) {
if (apiKeyBuilder_ == null) {
if (apiKey_ != null) {
apiKey_ =
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.newBuilder(apiKey_).mergeFrom(value).buildPartial();
} else {
apiKey_ = value;
}
onChanged();
} else {
apiKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public Builder clearApiKey() {
if (apiKeyBuilder_ == null) {
apiKey_ = null;
onChanged();
} else {
apiKey_ = null;
apiKeyBuilder_ = null;
}
return this;
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder getApiKeyBuilder() {
onChanged();
return getApiKeyFieldBuilder().getBuilder();
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
public yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder getApiKeyOrBuilder() {
if (apiKeyBuilder_ != null) {
return apiKeyBuilder_.getMessageOrBuilder();
} else {
return apiKey_ == null ?
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.getDefaultInstance() : apiKey_;
}
}
/**
*
* ApiKey resource.
*
*
* .yandex.cloud.iam.v1.ApiKey api_key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>
getApiKeyFieldBuilder() {
if (apiKeyBuilder_ == null) {
apiKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKey.Builder, yandex.cloud.api.iam.v1.ApiKeyOuterClass.ApiKeyOrBuilder>(
getApiKey(),
getParentForChildren(),
isClean());
apiKey_ = null;
}
return apiKeyBuilder_;
}
private java.lang.Object secret_ = "";
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The secret.
*/
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secret_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return The bytes for secret.
*/
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @param value The secret to set.
* @return This builder for chaining.
*/
public Builder setSecret(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
secret_ = value;
onChanged();
return this;
}
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @return This builder for chaining.
*/
public Builder clearSecret() {
secret_ = getDefaultInstance().getSecret();
onChanged();
return this;
}
/**
*
* Secret part of the API key. This secret key you may use in the requests for authentication.
*
*
* string secret = 2;
* @param value The bytes for secret to set.
* @return This builder for chaining.
*/
public Builder setSecretBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
secret_ = 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.iam.v1.CreateApiKeyResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.CreateApiKeyResponse)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateApiKeyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateApiKeyResponse(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.iam.v1.ApiKeyServiceOuterClass.CreateApiKeyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateApiKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.UpdateApiKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.UpdateApiKeyRequest}
*/
public static final class UpdateApiKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.UpdateApiKeyRequest)
UpdateApiKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateApiKeyRequest.newBuilder() to construct.
private UpdateApiKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateApiKeyRequest() {
apiKeyId_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateApiKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateApiKeyRequest(
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();
apiKeyId_ = s;
break;
}
case 18: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = 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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
if (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getDescription()
.equals(other.getDescription())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest 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.iam.v1.UpdateApiKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.UpdateApiKeyRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.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();
apiKeyId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest(this);
result.apiKeyId_ = apiKeyId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.description_ = description_;
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the ApiKey resource to update.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask that specifies which fields of the ApiKey resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the API key.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = 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.iam.v1.UpdateApiKeyRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.UpdateApiKeyRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateApiKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateApiKeyRequest(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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateApiKeyMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.UpdateApiKeyMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.UpdateApiKeyMetadata}
*/
public static final class UpdateApiKeyMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.UpdateApiKeyMetadata)
UpdateApiKeyMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateApiKeyMetadata.newBuilder() to construct.
private UpdateApiKeyMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateApiKeyMetadata() {
apiKeyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateApiKeyMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateApiKeyMetadata(
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();
apiKeyId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata 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.iam.v1.UpdateApiKeyMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.UpdateApiKeyMetadata)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.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();
apiKeyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata(this);
result.apiKeyId_ = apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the ApiKey resource that is being updated.
*
*
* string api_key_id = 1;
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = 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.iam.v1.UpdateApiKeyMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.UpdateApiKeyMetadata)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateApiKeyMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateApiKeyMetadata(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.iam.v1.ApiKeyServiceOuterClass.UpdateApiKeyMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteApiKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.DeleteApiKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.DeleteApiKeyRequest}
*/
public static final class DeleteApiKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.DeleteApiKeyRequest)
DeleteApiKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteApiKeyRequest.newBuilder() to construct.
private DeleteApiKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteApiKeyRequest() {
apiKeyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteApiKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteApiKeyRequest(
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();
apiKeyId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest 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.iam.v1.DeleteApiKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.DeleteApiKeyRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.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();
apiKeyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest(this);
result.apiKeyId_ = apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the API key to delete.
* To get the API key ID, use a [ApiKeyService.List] request.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = 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.iam.v1.DeleteApiKeyRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.DeleteApiKeyRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteApiKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteApiKeyRequest(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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteApiKeyMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.DeleteApiKeyMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.DeleteApiKeyMetadata}
*/
public static final class DeleteApiKeyMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.DeleteApiKeyMetadata)
DeleteApiKeyMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteApiKeyMetadata.newBuilder() to construct.
private DeleteApiKeyMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteApiKeyMetadata() {
apiKeyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteApiKeyMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteApiKeyMetadata(
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();
apiKeyId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata 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.iam.v1.DeleteApiKeyMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.DeleteApiKeyMetadata)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.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();
apiKeyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata(this);
result.apiKeyId_ = apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the API key that is being deleted.
*
*
* string api_key_id = 1;
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = 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.iam.v1.DeleteApiKeyMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.DeleteApiKeyMetadata)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteApiKeyMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteApiKeyMetadata(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.iam.v1.ApiKeyServiceOuterClass.DeleteApiKeyMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiKeyOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.ListApiKeyOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeyOperationsResponse.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) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iam.v1.ListApiKeyOperationsRequest}
*/
public static final class ListApiKeyOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.ListApiKeyOperationsRequest)
ListApiKeyOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiKeyOperationsRequest.newBuilder() to construct.
private ListApiKeyOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiKeyOperationsRequest() {
apiKeyId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiKeyOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiKeyOperationsRequest(
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();
apiKeyId_ = 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.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.Builder.class);
}
public static final int API_KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiKeyId_;
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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 to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeyOperationsResponse.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) = "0-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. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeyId_);
}
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(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeyId_);
}
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest) obj;
if (!getApiKeyId()
.equals(other.getApiKeyId())) 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) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest 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.iam.v1.ListApiKeyOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.ListApiKeyOperationsRequest)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.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();
apiKeyId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest(this);
result.apiKeyId_ = apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest.getDefaultInstance()) return this;
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKeyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
onChanged();
return this;
}
/**
*
* ID of the key to list operations for.
*
*
* string api_key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKeyId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeyOperationsResponse.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) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeyOperationsResponse.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) = "0-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 to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListApiKeyOperationsResponse.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) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListApiKeyOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=2000"];
* @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.iam.v1.ListApiKeyOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.ListApiKeyOperationsRequest)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiKeyOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiKeyOperationsRequest(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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiKeyOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.ListApiKeyOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList();
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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.iam.v1.ListApiKeyOperationsResponse}
*/
public static final class ListApiKeyOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.ListApiKeyOperationsResponse)
ListApiKeyOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiKeyOperationsResponse.newBuilder() to construct.
private ListApiKeyOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiKeyOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiKeyOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiKeyOperationsResponse(
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)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(
input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.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)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
return operations_.get(index);
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 < operations_.size(); i++) {
output.writeMessage(1, operations_.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 < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, operations_.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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse other = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse) obj;
if (!getOperationsList()
.equals(other.getOperationsList())) 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 (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperationsList().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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse 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.iam.v1.ListApiKeyOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.ListApiKeyOperationsResponse)
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.class, yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
operationsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse build() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse buildPartial() {
yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse result = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse(this);
int from_bitField0_ = bitField0_;
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse) {
return mergeFrom((yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse other) {
if (other == yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse.getDefaultInstance()) return this;
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
operationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_;
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addAllOperations(
java.lang.Iterable extends yandex.cloud.api.operation.OperationOuterClass.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified API key.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>(
operations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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 [ListApiKeyOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListApiKeyOperationsRequest.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.iam.v1.ListApiKeyOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.ListApiKeyOperationsResponse)
private static final yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse();
}
public static yandex.cloud.api.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiKeyOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiKeyOperationsResponse(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.iam.v1.ApiKeyServiceOuterClass.ListApiKeyOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_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/iam/v1/api_key_service.pr" +
"oto\022\023yandex.cloud.iam.v1\032\034google/api/ann" +
"otations.proto\032 google/protobuf/field_ma" +
"sk.proto\032 yandex/cloud/api/operation.pro" +
"to\032!yandex/cloud/iam/v1/api_key.proto\032&y" +
"andex/cloud/operation/operation.proto\032\035y" +
"andex/cloud/validation.proto\"4\n\020GetApiKe" +
"yRequest\022 \n\napi_key_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=" +
"50\"y\n\022ListApiKeysRequest\022$\n\022service_acco" +
"unt_id\030\001 \001(\tB\010\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(" +
"\003B\n\372\3071\0060-1000\022\036\n\npage_token\030\003 \001(\tB\n\212\3101\006<" +
"=2000\"]\n\023ListApiKeysResponse\022-\n\010api_keys" +
"\030\001 \003(\0132\033.yandex.cloud.iam.v1.ApiKey\022\027\n\017n" +
"ext_page_token\030\002 \001(\t\"[\n\023CreateApiKeyRequ" +
"est\022$\n\022service_account_id\030\001 \001(\tB\010\212\3101\004<=5" +
"0\022\036\n\013description\030\002 \001(\tB\t\212\3101\005<=256\"T\n\024Cre" +
"ateApiKeyResponse\022,\n\007api_key\030\001 \001(\0132\033.yan" +
"dex.cloud.iam.v1.ApiKey\022\016\n\006secret\030\002 \001(\t\"" +
"\210\001\n\023UpdateApiKeyRequest\022 \n\napi_key_id\030\001 " +
"\001(\tB\014\350\3071\001\212\3101\004<=50\022/\n\013update_mask\030\002 \001(\0132\032" +
".google.protobuf.FieldMask\022\036\n\013descriptio" +
"n\030\003 \001(\tB\t\212\3101\005<=256\"*\n\024UpdateApiKeyMetada" +
"ta\022\022\n\napi_key_id\030\001 \001(\t\"7\n\023DeleteApiKeyRe" +
"quest\022 \n\napi_key_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"" +
"*\n\024DeleteApiKeyMetadata\022\022\n\napi_key_id\030\001 " +
"\001(\t\"~\n\033ListApiKeyOperationsRequest\022 \n\nap" +
"i_key_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035\n\tpage_siz" +
"e\030\002 \001(\003B\n\372\3071\0060-1000\022\036\n\npage_token\030\003 \001(\tB" +
"\n\212\3101\006<=2000\"n\n\034ListApiKeyOperationsRespo" +
"nse\0225\n\noperations\030\001 \003(\0132!.yandex.cloud.o" +
"peration.Operation\022\027\n\017next_page_token\030\002 " +
"\001(\t2\352\006\n\rApiKeyService\022r\n\004List\022\'.yandex.c" +
"loud.iam.v1.ListApiKeysRequest\032(.yandex." +
"cloud.iam.v1.ListApiKeysResponse\"\027\202\323\344\223\002\021" +
"\022\017/iam/v1/apiKeys\022o\n\003Get\022%.yandex.cloud." +
"iam.v1.GetApiKeyRequest\032\033.yandex.cloud.i" +
"am.v1.ApiKey\"$\202\323\344\223\002\036\022\034/iam/v1/apiKeys/{a" +
"pi_key_id}\022y\n\006Create\022(.yandex.cloud.iam." +
"v1.CreateApiKeyRequest\032).yandex.cloud.ia" +
"m.v1.CreateApiKeyResponse\"\032\202\323\344\223\002\024\"\017/iam/" +
"v1/apiKeys:\001*\022\240\001\n\006Update\022(.yandex.cloud." +
"iam.v1.UpdateApiKeyRequest\032!.yandex.clou" +
"d.operation.Operation\"I\202\323\344\223\002!2\034/iam/v1/a" +
"piKeys/{api_key_id}:\001*\262\322*\036\n\024UpdateApiKey" +
"Metadata\022\006ApiKey\022\254\001\n\006Delete\022(.yandex.clo" +
"ud.iam.v1.DeleteApiKeyRequest\032!.yandex.c" +
"loud.operation.Operation\"U\202\323\344\223\002\036*\034/iam/v" +
"1/apiKeys/{api_key_id}\262\322*-\n\024DeleteApiKey" +
"Metadata\022\025google.protobuf.Empty\022\246\001\n\016List" +
"Operations\0220.yandex.cloud.iam.v1.ListApi" +
"KeyOperationsRequest\0321.yandex.cloud.iam." +
"v1.ListApiKeyOperationsResponse\"/\202\323\344\223\002)\022" +
"\'/iam/v1/apiKeys/{api_key_id}/operations" +
"BV\n\027yandex.cloud.api.iam.v1Z;github.com/" +
"yandex-cloud/go-genproto/yandex/cloud/ia" +
"m/v1;iamb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.iam.v1.ApiKeyOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_GetApiKeyRequest_descriptor,
new java.lang.String[] { "ApiKeyId", });
internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_ListApiKeysRequest_descriptor,
new java.lang.String[] { "ServiceAccountId", "PageSize", "PageToken", });
internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_ListApiKeysResponse_descriptor,
new java.lang.String[] { "ApiKeys", "NextPageToken", });
internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_CreateApiKeyRequest_descriptor,
new java.lang.String[] { "ServiceAccountId", "Description", });
internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_CreateApiKeyResponse_descriptor,
new java.lang.String[] { "ApiKey", "Secret", });
internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_UpdateApiKeyRequest_descriptor,
new java.lang.String[] { "ApiKeyId", "UpdateMask", "Description", });
internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_UpdateApiKeyMetadata_descriptor,
new java.lang.String[] { "ApiKeyId", });
internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_DeleteApiKeyRequest_descriptor,
new java.lang.String[] { "ApiKeyId", });
internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_DeleteApiKeyMetadata_descriptor,
new java.lang.String[] { "ApiKeyId", });
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsRequest_descriptor,
new java.lang.String[] { "ApiKeyId", "PageSize", "PageToken", });
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_iam_v1_ListApiKeyOperationsResponse_descriptor,
new java.lang.String[] { "Operations", "NextPageToken", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.iam.v1.ApiKeyOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy