yandex.cloud.api.serverless.apigateway.v1.ApigatewayService Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/serverless/apigateway/v1/apigateway_service.proto
package yandex.cloud.api.serverless.apigateway.v1;
public final class ApigatewayService {
private ApigatewayService() {}
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 GetApiGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.GetApiGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.GetApiGatewayRequest}
*/
public static final class GetApiGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.GetApiGatewayRequest)
GetApiGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetApiGatewayRequest.newBuilder() to construct.
private GetApiGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetApiGatewayRequest() {
apiGatewayId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetApiGatewayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApiGatewayRequest(
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();
apiGatewayId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest 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.serverless.apigateway.v1.GetApiGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.GetApiGatewayRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.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();
apiGatewayId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest(this);
result.apiGatewayId_ = apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway to return.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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.serverless.apigateway.v1.GetApiGatewayRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.GetApiGatewayRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetApiGatewayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApiGatewayRequest(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.serverless.apigateway.v1.ApigatewayService.GetApiGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.ListApiGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `pageSize`, the service returns a [ListApiGatewayResponse.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;
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.ListApiGatewayRequest}
*/
public static final class ListApiGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.ListApiGatewayRequest)
ListApiGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiGatewayRequest.newBuilder() to construct.
private ListApiGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiGatewayRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiGatewayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiGatewayRequest(
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();
folderId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
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();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = 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 `pageSize`, the service returns a [ListApiGatewayResponse.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;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
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();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = 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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().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 = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest 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.serverless.apigateway.v1.ListApiGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.ListApiGatewayRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.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();
folderId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list API gateways in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = 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 `pageSize`, the service returns a [ListApiGatewayResponse.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;
* @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 `pageSize`, the service returns a [ListApiGatewayResponse.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;
* @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 `pageSize`, the service returns a [ListApiGatewayResponse.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;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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 `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListApiGatewayResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3;
* @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;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters functions listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can only be applied to the [ApiGateway.name](index) field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z]([-a-z0-9]{0,61}[a-z0-9])?`.
* Example of a filter: `name=my-apigw`.
*
*
* string filter = 4;
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = 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.serverless.apigateway.v1.ListApiGatewayRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.ListApiGatewayRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiGatewayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiGatewayRequest(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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListApiGatewayResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.ListApiGatewayResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
java.util.List
getApiGatewaysList();
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway getApiGateways(int index);
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
int getApiGatewaysCount();
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder>
getApiGatewaysOrBuilderList();
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder getApiGatewaysOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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.serverless.apigateway.v1.ListApiGatewayResponse}
*/
public static final class ListApiGatewayResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.ListApiGatewayResponse)
ListApiGatewayResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListApiGatewayResponse.newBuilder() to construct.
private ListApiGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListApiGatewayResponse() {
apiGateways_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListApiGatewayResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListApiGatewayResponse(
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)) {
apiGateways_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
apiGateways_.add(
input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.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)) {
apiGateways_ = java.util.Collections.unmodifiableList(apiGateways_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.Builder.class);
}
public static final int API_GATEWAYS_FIELD_NUMBER = 1;
private java.util.List apiGateways_;
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
@java.lang.Override
public java.util.List getApiGatewaysList() {
return apiGateways_;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder>
getApiGatewaysOrBuilderList() {
return apiGateways_;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
@java.lang.Override
public int getApiGatewaysCount() {
return apiGateways_.size();
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway getApiGateways(int index) {
return apiGateways_.get(index);
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder getApiGatewaysOrBuilder(
int index) {
return apiGateways_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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 < apiGateways_.size(); i++) {
output.writeMessage(1, apiGateways_.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 < apiGateways_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, apiGateways_.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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse) obj;
if (!getApiGatewaysList()
.equals(other.getApiGatewaysList())) 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 (getApiGatewaysCount() > 0) {
hash = (37 * hash) + API_GATEWAYS_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewaysList().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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse 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.serverless.apigateway.v1.ListApiGatewayResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.ListApiGatewayResponse)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApiGatewaysFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (apiGatewaysBuilder_ == null) {
apiGateways_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
apiGatewaysBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse(this);
int from_bitField0_ = bitField0_;
if (apiGatewaysBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
apiGateways_ = java.util.Collections.unmodifiableList(apiGateways_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.apiGateways_ = apiGateways_;
} else {
result.apiGateways_ = apiGatewaysBuilder_.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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse.getDefaultInstance()) return this;
if (apiGatewaysBuilder_ == null) {
if (!other.apiGateways_.isEmpty()) {
if (apiGateways_.isEmpty()) {
apiGateways_ = other.apiGateways_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureApiGatewaysIsMutable();
apiGateways_.addAll(other.apiGateways_);
}
onChanged();
}
} else {
if (!other.apiGateways_.isEmpty()) {
if (apiGatewaysBuilder_.isEmpty()) {
apiGatewaysBuilder_.dispose();
apiGatewaysBuilder_ = null;
apiGateways_ = other.apiGateways_;
bitField0_ = (bitField0_ & ~0x00000001);
apiGatewaysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApiGatewaysFieldBuilder() : null;
} else {
apiGatewaysBuilder_.addAllMessages(other.apiGateways_);
}
}
}
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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List apiGateways_ =
java.util.Collections.emptyList();
private void ensureApiGatewaysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
apiGateways_ = new java.util.ArrayList(apiGateways_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder> apiGatewaysBuilder_;
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public java.util.List getApiGatewaysList() {
if (apiGatewaysBuilder_ == null) {
return java.util.Collections.unmodifiableList(apiGateways_);
} else {
return apiGatewaysBuilder_.getMessageList();
}
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public int getApiGatewaysCount() {
if (apiGatewaysBuilder_ == null) {
return apiGateways_.size();
} else {
return apiGatewaysBuilder_.getCount();
}
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway getApiGateways(int index) {
if (apiGatewaysBuilder_ == null) {
return apiGateways_.get(index);
} else {
return apiGatewaysBuilder_.getMessage(index);
}
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder setApiGateways(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway value) {
if (apiGatewaysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiGatewaysIsMutable();
apiGateways_.set(index, value);
onChanged();
} else {
apiGatewaysBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder setApiGateways(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder builderForValue) {
if (apiGatewaysBuilder_ == null) {
ensureApiGatewaysIsMutable();
apiGateways_.set(index, builderForValue.build());
onChanged();
} else {
apiGatewaysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder addApiGateways(yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway value) {
if (apiGatewaysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiGatewaysIsMutable();
apiGateways_.add(value);
onChanged();
} else {
apiGatewaysBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder addApiGateways(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway value) {
if (apiGatewaysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApiGatewaysIsMutable();
apiGateways_.add(index, value);
onChanged();
} else {
apiGatewaysBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder addApiGateways(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder builderForValue) {
if (apiGatewaysBuilder_ == null) {
ensureApiGatewaysIsMutable();
apiGateways_.add(builderForValue.build());
onChanged();
} else {
apiGatewaysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder addApiGateways(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder builderForValue) {
if (apiGatewaysBuilder_ == null) {
ensureApiGatewaysIsMutable();
apiGateways_.add(index, builderForValue.build());
onChanged();
} else {
apiGatewaysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder addAllApiGateways(
java.lang.Iterable extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway> values) {
if (apiGatewaysBuilder_ == null) {
ensureApiGatewaysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, apiGateways_);
onChanged();
} else {
apiGatewaysBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder clearApiGateways() {
if (apiGatewaysBuilder_ == null) {
apiGateways_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
apiGatewaysBuilder_.clear();
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public Builder removeApiGateways(int index) {
if (apiGatewaysBuilder_ == null) {
ensureApiGatewaysIsMutable();
apiGateways_.remove(index);
onChanged();
} else {
apiGatewaysBuilder_.remove(index);
}
return this;
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder getApiGatewaysBuilder(
int index) {
return getApiGatewaysFieldBuilder().getBuilder(index);
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder getApiGatewaysOrBuilder(
int index) {
if (apiGatewaysBuilder_ == null) {
return apiGateways_.get(index); } else {
return apiGatewaysBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder>
getApiGatewaysOrBuilderList() {
if (apiGatewaysBuilder_ != null) {
return apiGatewaysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(apiGateways_);
}
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder addApiGatewaysBuilder() {
return getApiGatewaysFieldBuilder().addBuilder(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.getDefaultInstance());
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder addApiGatewaysBuilder(
int index) {
return getApiGatewaysFieldBuilder().addBuilder(
index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.getDefaultInstance());
}
/**
*
* List of API gateways in the specified folder.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.ApiGateway api_gateways = 1;
*/
public java.util.List
getApiGatewaysBuilderList() {
return getApiGatewaysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder>
getApiGatewaysFieldBuilder() {
if (apiGatewaysBuilder_ == null) {
apiGatewaysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder>(
apiGateways_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
apiGateways_ = null;
}
return apiGatewaysBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListApiGatewayRequest.page_size], use `nextPageToken` as the value
* for the [ListApiGatewayRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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.serverless.apigateway.v1.ListApiGatewayResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.ListApiGatewayResponse)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListApiGatewayResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListApiGatewayResponse(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.serverless.apigateway.v1.ApigatewayService.ListApiGatewayResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateApiGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the API gateway.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the API gateway.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return Whether the openapiSpec field is set.
*/
boolean hasOpenapiSpec();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The openapiSpec.
*/
java.lang.String getOpenapiSpec();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The bytes for openapiSpec.
*/
com.google.protobuf.ByteString
getOpenapiSpecBytes();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return Whether the connectivity field is set.
*/
boolean hasConnectivity();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return The connectivity.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return Whether the logOptions field is set.
*/
boolean hasLogOptions();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return The logOptions.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
int getVariablesCount();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
boolean containsVariables(
java.lang.String key);
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getVariables();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
java.util.Map
getVariablesMap();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue);
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key);
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return Whether the canary field is set.
*/
boolean hasCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return The canary.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder();
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.SpecCase getSpecCase();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.CreateApiGatewayRequest}
*/
public static final class CreateApiGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayRequest)
CreateApiGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateApiGatewayRequest.newBuilder() to construct.
private CreateApiGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateApiGatewayRequest() {
folderId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateApiGatewayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateApiGatewayRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
specCase_ = 5;
spec_ = s;
break;
}
case 50: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder subBuilder = null;
if (connectivity_ != null) {
subBuilder = connectivity_.toBuilder();
}
connectivity_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connectivity_);
connectivity_ = subBuilder.buildPartial();
}
break;
}
case 58: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder subBuilder = null;
if (logOptions_ != null) {
subBuilder = logOptions_.toBuilder();
}
logOptions_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logOptions_);
logOptions_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variables_.getMutableMap().put(
variables__.getKey(), variables__.getValue());
break;
}
case 74: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder subBuilder = null;
if (canary_ != null) {
subBuilder = canary_.toBuilder();
}
canary_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(canary_);
canary_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
case 8:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.Builder.class);
}
private int specCase_ = 0;
private java.lang.Object spec_;
public enum SpecCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OPENAPI_SPEC(5),
SPEC_NOT_SET(0);
private final int value;
private SpecCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpecCase valueOf(int value) {
return forNumber(value);
}
public static SpecCase forNumber(int value) {
switch (value) {
case 5: return OPENAPI_SPEC;
case 0: return SPEC_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
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();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the API gateway.
*
*
* 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 gateway.
*
*
* 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;
}
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int OPENAPI_SPEC_FIELD_NUMBER = 5;
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return Whether the openapiSpec field is set.
*/
public boolean hasOpenapiSpec() {
return specCase_ == 5;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The openapiSpec.
*/
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = "";
if (specCase_ == 5) {
ref = spec_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specCase_ == 5) {
spec_ = s;
}
return s;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The bytes for openapiSpec.
*/
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = "";
if (specCase_ == 5) {
ref = spec_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specCase_ == 5) {
spec_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONNECTIVITY_FIELD_NUMBER = 6;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity connectivity_;
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return Whether the connectivity field is set.
*/
@java.lang.Override
public boolean hasConnectivity() {
return connectivity_ != null;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return The connectivity.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity() {
return connectivity_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder() {
return getConnectivity();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 7;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions logOptions_;
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return Whether the logOptions field is set.
*/
@java.lang.Override
public boolean hasLogOptions() {
return logOptions_ != null;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return The logOptions.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions() {
return logOptions_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder() {
return getLogOptions();
}
public static final int VARIABLES_FIELD_NUMBER = 8;
private static final class VariablesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> variables_;
private com.google.protobuf.MapField
internalGetVariables() {
if (variables_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
return variables_;
}
public int getVariablesCount() {
return internalGetVariables().getMap().size();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public boolean containsVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariables().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariables() {
return getVariablesMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CANARY_FIELD_NUMBER = 9;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary canary_;
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return Whether the canary field is set.
*/
@java.lang.Override
public boolean hasCanary() {
return canary_ != null;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return The canary.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary() {
return canary_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder() {
return getCanary();
}
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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
if (specCase_ == 5) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, spec_);
}
if (connectivity_ != null) {
output.writeMessage(6, getConnectivity());
}
if (logOptions_ != null) {
output.writeMessage(7, getLogOptions());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
8);
if (canary_ != null) {
output.writeMessage(9, getCanary());
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, labels__);
}
if (specCase_ == 5) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, spec_);
}
if (connectivity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getConnectivity());
}
if (logOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLogOptions());
}
for (java.util.Map.Entry entry
: internalGetVariables().getMap().entrySet()) {
com.google.protobuf.MapEntry
variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, variables__);
}
if (canary_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getCanary());
}
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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (hasConnectivity() != other.hasConnectivity()) return false;
if (hasConnectivity()) {
if (!getConnectivity()
.equals(other.getConnectivity())) return false;
}
if (hasLogOptions() != other.hasLogOptions()) return false;
if (hasLogOptions()) {
if (!getLogOptions()
.equals(other.getLogOptions())) return false;
}
if (!internalGetVariables().equals(
other.internalGetVariables())) return false;
if (hasCanary() != other.hasCanary()) return false;
if (hasCanary()) {
if (!getCanary()
.equals(other.getCanary())) return false;
}
if (!getSpecCase().equals(other.getSpecCase())) return false;
switch (specCase_) {
case 5:
if (!getOpenapiSpec()
.equals(other.getOpenapiSpec())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (hasConnectivity()) {
hash = (37 * hash) + CONNECTIVITY_FIELD_NUMBER;
hash = (53 * hash) + getConnectivity().hashCode();
}
if (hasLogOptions()) {
hash = (37 * hash) + LOG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogOptions().hashCode();
}
if (!internalGetVariables().getMap().isEmpty()) {
hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + internalGetVariables().hashCode();
}
if (hasCanary()) {
hash = (37 * hash) + CANARY_FIELD_NUMBER;
hash = (53 * hash) + getCanary().hashCode();
}
switch (specCase_) {
case 5:
hash = (37 * hash) + OPENAPI_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getOpenapiSpec().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest 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.serverless.apigateway.v1.CreateApiGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
case 8:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
case 8:
return internalGetMutableVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.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();
folderId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
if (connectivityBuilder_ == null) {
connectivity_ = null;
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
if (logOptionsBuilder_ == null) {
logOptions_ = null;
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
internalGetMutableVariables().clear();
if (canaryBuilder_ == null) {
canary_ = null;
} else {
canary_ = null;
canaryBuilder_ = null;
}
specCase_ = 0;
spec_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
if (specCase_ == 5) {
result.spec_ = spec_;
}
if (connectivityBuilder_ == null) {
result.connectivity_ = connectivity_;
} else {
result.connectivity_ = connectivityBuilder_.build();
}
if (logOptionsBuilder_ == null) {
result.logOptions_ = logOptions_;
} else {
result.logOptions_ = logOptionsBuilder_.build();
}
result.variables_ = internalGetVariables();
result.variables_.makeImmutable();
if (canaryBuilder_ == null) {
result.canary_ = canary_;
} else {
result.canary_ = canaryBuilder_.build();
}
result.specCase_ = specCase_;
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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.hasConnectivity()) {
mergeConnectivity(other.getConnectivity());
}
if (other.hasLogOptions()) {
mergeLogOptions(other.getLogOptions());
}
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
if (other.hasCanary()) {
mergeCanary(other.getCanary());
}
switch (other.getSpecCase()) {
case OPENAPI_SPEC: {
specCase_ = 5;
spec_ = other.spec_;
onChanged();
break;
}
case SPEC_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int specCase_ = 0;
private java.lang.Object spec_;
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public Builder clearSpec() {
specCase_ = 0;
spec_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create an API gateway in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the API gateway.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the API gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return Whether the openapiSpec field is set.
*/
@java.lang.Override
public boolean hasOpenapiSpec() {
return specCase_ == 5;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The openapiSpec.
*/
@java.lang.Override
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = "";
if (specCase_ == 5) {
ref = spec_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specCase_ == 5) {
spec_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return The bytes for openapiSpec.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = "";
if (specCase_ == 5) {
ref = spec_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specCase_ == 5) {
spec_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @param value The openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
specCase_ = 5;
spec_ = value;
onChanged();
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @return This builder for chaining.
*/
public Builder clearOpenapiSpec() {
if (specCase_ == 5) {
specCase_ = 0;
spec_ = null;
onChanged();
}
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 5;
* @param value The bytes for openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
specCase_ = 5;
spec_ = value;
onChanged();
return this;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity connectivity_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder> connectivityBuilder_;
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return Whether the connectivity field is set.
*/
public boolean hasConnectivity() {
return connectivityBuilder_ != null || connectivity_ != null;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
* @return The connectivity.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity() {
if (connectivityBuilder_ == null) {
return connectivity_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
} else {
return connectivityBuilder_.getMessage();
}
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public Builder setConnectivity(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity value) {
if (connectivityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connectivity_ = value;
onChanged();
} else {
connectivityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public Builder setConnectivity(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder builderForValue) {
if (connectivityBuilder_ == null) {
connectivity_ = builderForValue.build();
onChanged();
} else {
connectivityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public Builder mergeConnectivity(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity value) {
if (connectivityBuilder_ == null) {
if (connectivity_ != null) {
connectivity_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.newBuilder(connectivity_).mergeFrom(value).buildPartial();
} else {
connectivity_ = value;
}
onChanged();
} else {
connectivityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public Builder clearConnectivity() {
if (connectivityBuilder_ == null) {
connectivity_ = null;
onChanged();
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder getConnectivityBuilder() {
onChanged();
return getConnectivityFieldBuilder().getBuilder();
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder() {
if (connectivityBuilder_ != null) {
return connectivityBuilder_.getMessageOrBuilder();
} else {
return connectivity_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
}
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder>
getConnectivityFieldBuilder() {
if (connectivityBuilder_ == null) {
connectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder>(
getConnectivity(),
getParentForChildren(),
isClean());
connectivity_ = null;
}
return connectivityBuilder_;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions logOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder> logOptionsBuilder_;
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return Whether the logOptions field is set.
*/
public boolean hasLogOptions() {
return logOptionsBuilder_ != null || logOptions_ != null;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
* @return The logOptions.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions() {
if (logOptionsBuilder_ == null) {
return logOptions_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
} else {
return logOptionsBuilder_.getMessage();
}
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public Builder setLogOptions(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logOptions_ = value;
onChanged();
} else {
logOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public Builder setLogOptions(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder builderForValue) {
if (logOptionsBuilder_ == null) {
logOptions_ = builderForValue.build();
onChanged();
} else {
logOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public Builder mergeLogOptions(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (logOptions_ != null) {
logOptions_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.newBuilder(logOptions_).mergeFrom(value).buildPartial();
} else {
logOptions_ = value;
}
onChanged();
} else {
logOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public Builder clearLogOptions() {
if (logOptionsBuilder_ == null) {
logOptions_ = null;
onChanged();
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder getLogOptionsBuilder() {
onChanged();
return getLogOptionsFieldBuilder().getBuilder();
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder() {
if (logOptionsBuilder_ != null) {
return logOptionsBuilder_.getMessageOrBuilder();
} else {
return logOptions_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
}
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder>
getLogOptionsFieldBuilder() {
if (logOptionsBuilder_ == null) {
logOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder>(
getLogOptions(),
getParentForChildren(),
isClean());
logOptions_ = null;
}
return logOptionsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> variables_;
private com.google.protobuf.MapField
internalGetVariables() {
if (variables_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
return variables_;
}
private com.google.protobuf.MapField
internalGetMutableVariables() {
onChanged();;
if (variables_ == null) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
if (!variables_.isMutable()) {
variables_ = variables_.copy();
}
return variables_;
}
public int getVariablesCount() {
return internalGetVariables().getMap().size();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public boolean containsVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariables().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariables() {
return getVariablesMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearVariables() {
internalGetMutableVariables().getMutableMap()
.clear();
return this;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
public Builder removeVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableVariables().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableVariables() {
return internalGetMutableVariables().getMutableMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
public Builder putVariables(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableVariables().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 8;
*/
public Builder putAllVariables(
java.util.Map values) {
internalGetMutableVariables().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary canary_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder> canaryBuilder_;
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return Whether the canary field is set.
*/
public boolean hasCanary() {
return canaryBuilder_ != null || canary_ != null;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
* @return The canary.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary() {
if (canaryBuilder_ == null) {
return canary_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
} else {
return canaryBuilder_.getMessage();
}
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public Builder setCanary(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary value) {
if (canaryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
canary_ = value;
onChanged();
} else {
canaryBuilder_.setMessage(value);
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public Builder setCanary(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder builderForValue) {
if (canaryBuilder_ == null) {
canary_ = builderForValue.build();
onChanged();
} else {
canaryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public Builder mergeCanary(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary value) {
if (canaryBuilder_ == null) {
if (canary_ != null) {
canary_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.newBuilder(canary_).mergeFrom(value).buildPartial();
} else {
canary_ = value;
}
onChanged();
} else {
canaryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public Builder clearCanary() {
if (canaryBuilder_ == null) {
canary_ = null;
onChanged();
} else {
canary_ = null;
canaryBuilder_ = null;
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder getCanaryBuilder() {
onChanged();
return getCanaryFieldBuilder().getBuilder();
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder() {
if (canaryBuilder_ != null) {
return canaryBuilder_.getMessageOrBuilder();
} else {
return canary_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
}
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder>
getCanaryFieldBuilder() {
if (canaryBuilder_ == null) {
canaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder>(
getCanary(),
getParentForChildren(),
isClean());
canary_ = null;
}
return canaryBuilder_;
}
@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.serverless.apigateway.v1.CreateApiGatewayRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateApiGatewayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateApiGatewayRequest(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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateApiGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* Field mask that specifies which attributes of the API gateway should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which attributes of the API gateway should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which attributes of the API gateway should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return Whether the openapiSpec field is set.
*/
boolean hasOpenapiSpec();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The openapiSpec.
*/
java.lang.String getOpenapiSpec();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The bytes for openapiSpec.
*/
com.google.protobuf.ByteString
getOpenapiSpecBytes();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return Whether the connectivity field is set.
*/
boolean hasConnectivity();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return The connectivity.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity();
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return Whether the logOptions field is set.
*/
boolean hasLogOptions();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return The logOptions.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
int getVariablesCount();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
boolean containsVariables(
java.lang.String key);
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getVariables();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
java.util.Map
getVariablesMap();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue);
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key);
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return Whether the canary field is set.
*/
boolean hasCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return The canary.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder();
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.SpecCase getSpecCase();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayRequest}
*/
public static final class UpdateApiGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayRequest)
UpdateApiGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateApiGatewayRequest.newBuilder() to construct.
private UpdateApiGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateApiGatewayRequest() {
apiGatewayId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateApiGatewayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateApiGatewayRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
apiGatewayId_ = 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();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
specCase_ = 6;
spec_ = s;
break;
}
case 58: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder subBuilder = null;
if (connectivity_ != null) {
subBuilder = connectivity_.toBuilder();
}
connectivity_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connectivity_);
connectivity_ = subBuilder.buildPartial();
}
break;
}
case 66: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder subBuilder = null;
if (logOptions_ != null) {
subBuilder = logOptions_.toBuilder();
}
logOptions_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logOptions_);
logOptions_ = subBuilder.buildPartial();
}
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variables_.getMutableMap().put(
variables__.getKey(), variables__.getValue());
break;
}
case 82: {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder subBuilder = null;
if (canary_ != null) {
subBuilder = canary_.toBuilder();
}
canary_ = input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(canary_);
canary_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
case 9:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.Builder.class);
}
private int specCase_ = 0;
private java.lang.Object spec_;
public enum SpecCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OPENAPI_SPEC(6),
SPEC_NOT_SET(0);
private final int value;
private SpecCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpecCase valueOf(int value) {
return forNumber(value);
}
public static SpecCase forNumber(int value) {
switch (value) {
case 6: return OPENAPI_SPEC;
case 0: return SPEC_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
}
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
}
public static final int LABELS_FIELD_NUMBER = 5;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int OPENAPI_SPEC_FIELD_NUMBER = 6;
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return Whether the openapiSpec field is set.
*/
public boolean hasOpenapiSpec() {
return specCase_ == 6;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The openapiSpec.
*/
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = "";
if (specCase_ == 6) {
ref = spec_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specCase_ == 6) {
spec_ = s;
}
return s;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The bytes for openapiSpec.
*/
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = "";
if (specCase_ == 6) {
ref = spec_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specCase_ == 6) {
spec_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONNECTIVITY_FIELD_NUMBER = 7;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity connectivity_;
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return Whether the connectivity field is set.
*/
@java.lang.Override
public boolean hasConnectivity() {
return connectivity_ != null;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return The connectivity.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity() {
return connectivity_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder() {
return getConnectivity();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 8;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions logOptions_;
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return Whether the logOptions field is set.
*/
@java.lang.Override
public boolean hasLogOptions() {
return logOptions_ != null;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return The logOptions.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions() {
return logOptions_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder() {
return getLogOptions();
}
public static final int VARIABLES_FIELD_NUMBER = 9;
private static final class VariablesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> variables_;
private com.google.protobuf.MapField
internalGetVariables() {
if (variables_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
return variables_;
}
public int getVariablesCount() {
return internalGetVariables().getMap().size();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public boolean containsVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariables().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariables() {
return getVariablesMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CANARY_FIELD_NUMBER = 10;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary canary_;
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return Whether the canary field is set.
*/
@java.lang.Override
public boolean hasCanary() {
return canary_ != null;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return The canary.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary() {
return canary_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder() {
return getCanary();
}
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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
5);
if (specCase_ == 6) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, spec_);
}
if (connectivity_ != null) {
output.writeMessage(7, getConnectivity());
}
if (logOptions_ != null) {
output.writeMessage(8, getLogOptions());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
9);
if (canary_ != null) {
output.writeMessage(10, getCanary());
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, labels__);
}
if (specCase_ == 6) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, spec_);
}
if (connectivity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getConnectivity());
}
if (logOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLogOptions());
}
for (java.util.Map.Entry entry
: internalGetVariables().getMap().entrySet()) {
com.google.protobuf.MapEntry
variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, variables__);
}
if (canary_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCanary());
}
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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (hasConnectivity() != other.hasConnectivity()) return false;
if (hasConnectivity()) {
if (!getConnectivity()
.equals(other.getConnectivity())) return false;
}
if (hasLogOptions() != other.hasLogOptions()) return false;
if (hasLogOptions()) {
if (!getLogOptions()
.equals(other.getLogOptions())) return false;
}
if (!internalGetVariables().equals(
other.internalGetVariables())) return false;
if (hasCanary() != other.hasCanary()) return false;
if (hasCanary()) {
if (!getCanary()
.equals(other.getCanary())) return false;
}
if (!getSpecCase().equals(other.getSpecCase())) return false;
switch (specCase_) {
case 6:
if (!getOpenapiSpec()
.equals(other.getOpenapiSpec())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + API_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (hasConnectivity()) {
hash = (37 * hash) + CONNECTIVITY_FIELD_NUMBER;
hash = (53 * hash) + getConnectivity().hashCode();
}
if (hasLogOptions()) {
hash = (37 * hash) + LOG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogOptions().hashCode();
}
if (!internalGetVariables().getMap().isEmpty()) {
hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + internalGetVariables().hashCode();
}
if (hasCanary()) {
hash = (37 * hash) + CANARY_FIELD_NUMBER;
hash = (53 * hash) + getCanary().hashCode();
}
switch (specCase_) {
case 6:
hash = (37 * hash) + OPENAPI_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getOpenapiSpec().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest 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.serverless.apigateway.v1.UpdateApiGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
case 9:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
case 9:
return internalGetMutableVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.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();
apiGatewayId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
if (connectivityBuilder_ == null) {
connectivity_ = null;
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
if (logOptionsBuilder_ == null) {
logOptions_ = null;
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
internalGetMutableVariables().clear();
if (canaryBuilder_ == null) {
canary_ = null;
} else {
canary_ = null;
canaryBuilder_ = null;
}
specCase_ = 0;
spec_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest(this);
int from_bitField0_ = bitField0_;
result.apiGatewayId_ = apiGatewayId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
if (specCase_ == 6) {
result.spec_ = spec_;
}
if (connectivityBuilder_ == null) {
result.connectivity_ = connectivity_;
} else {
result.connectivity_ = connectivityBuilder_.build();
}
if (logOptionsBuilder_ == null) {
result.logOptions_ = logOptions_;
} else {
result.logOptions_ = logOptionsBuilder_.build();
}
result.variables_ = internalGetVariables();
result.variables_.makeImmutable();
if (canaryBuilder_ == null) {
result.canary_ = canary_;
} else {
result.canary_ = canaryBuilder_.build();
}
result.specCase_ = specCase_;
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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.hasConnectivity()) {
mergeConnectivity(other.getConnectivity());
}
if (other.hasLogOptions()) {
mergeLogOptions(other.getLogOptions());
}
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
if (other.hasCanary()) {
mergeCanary(other.getCanary());
}
switch (other.getSpecCase()) {
case OPENAPI_SPEC: {
specCase_ = 6;
spec_ = other.spec_;
onChanged();
break;
}
case SPEC_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int specCase_ = 0;
private java.lang.Object spec_;
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public Builder clearSpec() {
specCase_ = 0;
spec_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should 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 attributes of the API gateway should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which attributes of the API gateway should 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 attributes of the API gateway should 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 name_ = "";
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* New name for the API gateway.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
}
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
}
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* New description for the API gateway.
*
*
* string description = 4 [(.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;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* API gateway labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label, request the current set of labels with a [yandex.cloud.serverless.apigateway.v1.ApiGatewayService.Get] request.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return Whether the openapiSpec field is set.
*/
@java.lang.Override
public boolean hasOpenapiSpec() {
return specCase_ == 6;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The openapiSpec.
*/
@java.lang.Override
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = "";
if (specCase_ == 6) {
ref = spec_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specCase_ == 6) {
spec_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return The bytes for openapiSpec.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = "";
if (specCase_ == 6) {
ref = spec_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specCase_ == 6) {
spec_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @param value The openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
specCase_ = 6;
spec_ = value;
onChanged();
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @return This builder for chaining.
*/
public Builder clearOpenapiSpec() {
if (specCase_ == 6) {
specCase_ = 0;
spec_ = null;
onChanged();
}
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 6;
* @param value The bytes for openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
specCase_ = 6;
spec_ = value;
onChanged();
return this;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity connectivity_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder> connectivityBuilder_;
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return Whether the connectivity field is set.
*/
public boolean hasConnectivity() {
return connectivityBuilder_ != null || connectivity_ != null;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
* @return The connectivity.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity() {
if (connectivityBuilder_ == null) {
return connectivity_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
} else {
return connectivityBuilder_.getMessage();
}
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public Builder setConnectivity(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity value) {
if (connectivityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connectivity_ = value;
onChanged();
} else {
connectivityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public Builder setConnectivity(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder builderForValue) {
if (connectivityBuilder_ == null) {
connectivity_ = builderForValue.build();
onChanged();
} else {
connectivityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public Builder mergeConnectivity(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity value) {
if (connectivityBuilder_ == null) {
if (connectivity_ != null) {
connectivity_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.newBuilder(connectivity_).mergeFrom(value).buildPartial();
} else {
connectivity_ = value;
}
onChanged();
} else {
connectivityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public Builder clearConnectivity() {
if (connectivityBuilder_ == null) {
connectivity_ = null;
onChanged();
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
return this;
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder getConnectivityBuilder() {
onChanged();
return getConnectivityFieldBuilder().getBuilder();
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder() {
if (connectivityBuilder_ != null) {
return connectivityBuilder_.getMessageOrBuilder();
} else {
return connectivity_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance() : connectivity_;
}
}
/**
*
* Gateway connectivity. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder>
getConnectivityFieldBuilder() {
if (connectivityBuilder_ == null) {
connectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder>(
getConnectivity(),
getParentForChildren(),
isClean());
connectivity_ = null;
}
return connectivityBuilder_;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions logOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder> logOptionsBuilder_;
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return Whether the logOptions field is set.
*/
public boolean hasLogOptions() {
return logOptionsBuilder_ != null || logOptions_ != null;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
* @return The logOptions.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getLogOptions() {
if (logOptionsBuilder_ == null) {
return logOptions_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
} else {
return logOptionsBuilder_.getMessage();
}
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public Builder setLogOptions(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logOptions_ = value;
onChanged();
} else {
logOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public Builder setLogOptions(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder builderForValue) {
if (logOptionsBuilder_ == null) {
logOptions_ = builderForValue.build();
onChanged();
} else {
logOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public Builder mergeLogOptions(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (logOptions_ != null) {
logOptions_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.newBuilder(logOptions_).mergeFrom(value).buildPartial();
} else {
logOptions_ = value;
}
onChanged();
} else {
logOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public Builder clearLogOptions() {
if (logOptionsBuilder_ == null) {
logOptions_ = null;
onChanged();
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder getLogOptionsBuilder() {
onChanged();
return getLogOptionsFieldBuilder().getBuilder();
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder() {
if (logOptionsBuilder_ != null) {
return logOptionsBuilder_.getMessageOrBuilder();
} else {
return logOptions_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance() : logOptions_;
}
}
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder>
getLogOptionsFieldBuilder() {
if (logOptionsBuilder_ == null) {
logOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder>(
getLogOptions(),
getParentForChildren(),
isClean());
logOptions_ = null;
}
return logOptionsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput> variables_;
private com.google.protobuf.MapField
internalGetVariables() {
if (variables_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
return variables_;
}
private com.google.protobuf.MapField
internalGetMutableVariables() {
onChanged();;
if (variables_ == null) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
if (!variables_.isMutable()) {
variables_ = variables_.copy();
}
return variables_;
}
public int getVariablesCount() {
return internalGetVariables().getMap().size();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public boolean containsVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariables().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariables() {
return getVariablesMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearVariables() {
internalGetMutableVariables().getMutableMap()
.clear();
return this;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
public Builder removeVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableVariables().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableVariables() {
return internalGetMutableVariables().getMutableMap();
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
public Builder putVariables(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableVariables().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 9;
*/
public Builder putAllVariables(
java.util.Map values) {
internalGetMutableVariables().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary canary_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder> canaryBuilder_;
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return Whether the canary field is set.
*/
public boolean hasCanary() {
return canaryBuilder_ != null || canary_ != null;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
* @return The canary.
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary() {
if (canaryBuilder_ == null) {
return canary_ == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
} else {
return canaryBuilder_.getMessage();
}
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public Builder setCanary(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary value) {
if (canaryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
canary_ = value;
onChanged();
} else {
canaryBuilder_.setMessage(value);
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public Builder setCanary(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder builderForValue) {
if (canaryBuilder_ == null) {
canary_ = builderForValue.build();
onChanged();
} else {
canaryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public Builder mergeCanary(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary value) {
if (canaryBuilder_ == null) {
if (canary_ != null) {
canary_ =
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.newBuilder(canary_).mergeFrom(value).buildPartial();
} else {
canary_ = value;
}
onChanged();
} else {
canaryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public Builder clearCanary() {
if (canaryBuilder_ == null) {
canary_ = null;
onChanged();
} else {
canary_ = null;
canaryBuilder_ = null;
}
return this;
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder getCanaryBuilder() {
onChanged();
return getCanaryFieldBuilder().getBuilder();
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder() {
if (canaryBuilder_ != null) {
return canaryBuilder_.getMessageOrBuilder();
} else {
return canary_ == null ?
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance() : canary_;
}
}
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder>
getCanaryFieldBuilder() {
if (canaryBuilder_ == null) {
canaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder>(
getCanary(),
getParentForChildren(),
isClean());
canary_ = null;
}
return canaryBuilder_;
}
@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.serverless.apigateway.v1.UpdateApiGatewayRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateApiGatewayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateApiGatewayRequest(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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteApiGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayRequest}
*/
public static final class DeleteApiGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayRequest)
DeleteApiGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteApiGatewayRequest.newBuilder() to construct.
private DeleteApiGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteApiGatewayRequest() {
apiGatewayId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteApiGatewayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteApiGatewayRequest(
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();
apiGatewayId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest 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.serverless.apigateway.v1.DeleteApiGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.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();
apiGatewayId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest(this);
result.apiGatewayId_ = apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway to update.
* To get a API gateway ID make a [ApiGatewayService.List] request.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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.serverless.apigateway.v1.DeleteApiGatewayRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteApiGatewayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteApiGatewayRequest(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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddDomainRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.AddDomainRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
java.lang.String getDomainName();
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
com.google.protobuf.ByteString
getDomainNameBytes();
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
java.lang.String getCertificateId();
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
com.google.protobuf.ByteString
getCertificateIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.AddDomainRequest}
*/
public static final class AddDomainRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.AddDomainRequest)
AddDomainRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddDomainRequest.newBuilder() to construct.
private AddDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddDomainRequest() {
apiGatewayId_ = "";
domainName_ = "";
certificateId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddDomainRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddDomainRequest(
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();
apiGatewayId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
domainName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
certificateId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object domainName_;
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
@java.lang.Override
public java.lang.String getDomainName() {
java.lang.Object ref = domainName_;
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();
domainName_ = s;
return s;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainNameBytes() {
java.lang.Object ref = domainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CERTIFICATE_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object certificateId_;
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
@java.lang.Override
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
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();
certificateId_ = s;
return s;
}
}
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domainName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, certificateId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domainName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, certificateId_);
}
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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (!getDomainName()
.equals(other.getDomainName())) return false;
if (!getCertificateId()
.equals(other.getCertificateId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDomainName().hashCode();
hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCertificateId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest 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.serverless.apigateway.v1.AddDomainRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.AddDomainRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.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();
apiGatewayId_ = "";
domainName_ = "";
certificateId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest(this);
result.apiGatewayId_ = apiGatewayId_;
result.domainName_ = domainName_;
result.certificateId_ = certificateId_;
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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (!other.getDomainName().isEmpty()) {
domainName_ = other.domainName_;
onChanged();
}
if (!other.getCertificateId().isEmpty()) {
certificateId_ = other.certificateId_;
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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private java.lang.Object domainName_ = "";
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
public java.lang.String getDomainName() {
java.lang.Object ref = domainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
public com.google.protobuf.ByteString
getDomainNameBytes() {
java.lang.Object ref = domainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @param value The domainName to set.
* @return This builder for chaining.
*/
public Builder setDomainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainName_ = value;
onChanged();
return this;
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return This builder for chaining.
*/
public Builder clearDomainName() {
domainName_ = getDefaultInstance().getDomainName();
onChanged();
return this;
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @param value The bytes for domainName to set.
* @return This builder for chaining.
*/
public Builder setDomainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainName_ = value;
onChanged();
return this;
}
private java.lang.Object certificateId_ = "";
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certificateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @param value The certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
certificateId_ = value;
onChanged();
return this;
}
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @return This builder for chaining.
*/
public Builder clearCertificateId() {
certificateId_ = getDefaultInstance().getCertificateId();
onChanged();
return this;
}
/**
*
* ID of certificate for the attaching domain.
*
*
* string certificate_id = 4;
* @param value The bytes for certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
certificateId_ = 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.serverless.apigateway.v1.AddDomainRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.AddDomainRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddDomainRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddDomainRequest(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.serverless.apigateway.v1.ApigatewayService.AddDomainRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDomainRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.RemoveDomainRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.RemoveDomainRequest}
*/
public static final class RemoveDomainRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.RemoveDomainRequest)
RemoveDomainRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDomainRequest.newBuilder() to construct.
private RemoveDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveDomainRequest() {
apiGatewayId_ = "";
domainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDomainRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDomainRequest(
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();
apiGatewayId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
domainId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object domainId_;
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
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();
domainId_ = s;
return s;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainId_);
}
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (!getDomainId()
.equals(other.getDomainId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest 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.serverless.apigateway.v1.RemoveDomainRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.RemoveDomainRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.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();
apiGatewayId_ = "";
domainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest(this);
result.apiGatewayId_ = apiGatewayId_;
result.domainId_ = domainId_;
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2 [(.yandex.cloud.required) = true];
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = 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.serverless.apigateway.v1.RemoveDomainRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.RemoveDomainRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDomainRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDomainRequest(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.serverless.apigateway.v1.ApigatewayService.RemoveDomainRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateApiGatewayMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.CreateApiGatewayMetadata}
*/
public static final class CreateApiGatewayMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayMetadata)
CreateApiGatewayMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateApiGatewayMetadata.newBuilder() to construct.
private CreateApiGatewayMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateApiGatewayMetadata() {
apiGatewayId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateApiGatewayMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateApiGatewayMetadata(
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();
apiGatewayId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata 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.serverless.apigateway.v1.CreateApiGatewayMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayMetadata)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.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();
apiGatewayId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata(this);
result.apiGatewayId_ = apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being created.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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.serverless.apigateway.v1.CreateApiGatewayMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.CreateApiGatewayMetadata)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateApiGatewayMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateApiGatewayMetadata(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.serverless.apigateway.v1.ApigatewayService.CreateApiGatewayMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateApiGatewayMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayMetadata}
*/
public static final class UpdateApiGatewayMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayMetadata)
UpdateApiGatewayMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateApiGatewayMetadata.newBuilder() to construct.
private UpdateApiGatewayMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateApiGatewayMetadata() {
apiGatewayId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateApiGatewayMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateApiGatewayMetadata(
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();
apiGatewayId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata 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.serverless.apigateway.v1.UpdateApiGatewayMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayMetadata)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.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();
apiGatewayId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata(this);
result.apiGatewayId_ = apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being updated.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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.serverless.apigateway.v1.UpdateApiGatewayMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.UpdateApiGatewayMetadata)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateApiGatewayMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateApiGatewayMetadata(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.serverless.apigateway.v1.ApigatewayService.UpdateApiGatewayMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteApiGatewayMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayMetadata}
*/
public static final class DeleteApiGatewayMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayMetadata)
DeleteApiGatewayMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteApiGatewayMetadata.newBuilder() to construct.
private DeleteApiGatewayMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteApiGatewayMetadata() {
apiGatewayId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteApiGatewayMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteApiGatewayMetadata(
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();
apiGatewayId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata 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.serverless.apigateway.v1.DeleteApiGatewayMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayMetadata)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.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();
apiGatewayId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata(this);
result.apiGatewayId_ = apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway that is being deleted.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = 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.serverless.apigateway.v1.DeleteApiGatewayMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.DeleteApiGatewayMetadata)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteApiGatewayMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteApiGatewayMetadata(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.serverless.apigateway.v1.ApigatewayService.DeleteApiGatewayMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddDomainMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.AddDomainMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
java.lang.String getDomainName();
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
com.google.protobuf.ByteString
getDomainNameBytes();
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
java.lang.String getCertificateId();
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
com.google.protobuf.ByteString
getCertificateIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.AddDomainMetadata}
*/
public static final class AddDomainMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.AddDomainMetadata)
AddDomainMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddDomainMetadata.newBuilder() to construct.
private AddDomainMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddDomainMetadata() {
apiGatewayId_ = "";
domainId_ = "";
domainName_ = "";
certificateId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddDomainMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddDomainMetadata(
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();
apiGatewayId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
domainId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
domainName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
certificateId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object domainId_;
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
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();
domainId_ = s;
return s;
}
}
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object domainName_;
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
@java.lang.Override
public java.lang.String getDomainName() {
java.lang.Object ref = domainName_;
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();
domainName_ = s;
return s;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainNameBytes() {
java.lang.Object ref = domainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CERTIFICATE_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object certificateId_;
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
@java.lang.Override
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
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();
certificateId_ = s;
return s;
}
}
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domainName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, certificateId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domainName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, certificateId_);
}
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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (!getDomainId()
.equals(other.getDomainId())) return false;
if (!getDomainName()
.equals(other.getDomainName())) return false;
if (!getCertificateId()
.equals(other.getCertificateId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDomainName().hashCode();
hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCertificateId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata 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.serverless.apigateway.v1.AddDomainMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.AddDomainMetadata)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.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();
apiGatewayId_ = "";
domainId_ = "";
domainName_ = "";
certificateId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata(this);
result.apiGatewayId_ = apiGatewayId_;
result.domainId_ = domainId_;
result.domainName_ = domainName_;
result.certificateId_ = certificateId_;
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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
onChanged();
}
if (!other.getDomainName().isEmpty()) {
domainName_ = other.domainName_;
onChanged();
}
if (!other.getCertificateId().isEmpty()) {
certificateId_ = other.certificateId_;
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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway that the domain is attached to.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* ID of the attached domain.
*
*
* string domain_id = 2;
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = value;
onChanged();
return this;
}
private java.lang.Object domainName_ = "";
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The domainName.
*/
public java.lang.String getDomainName() {
java.lang.Object ref = domainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return The bytes for domainName.
*/
public com.google.protobuf.ByteString
getDomainNameBytes() {
java.lang.Object ref = domainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @param value The domainName to set.
* @return This builder for chaining.
*/
public Builder setDomainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainName_ = value;
onChanged();
return this;
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @return This builder for chaining.
*/
public Builder clearDomainName() {
domainName_ = getDefaultInstance().getDomainName();
onChanged();
return this;
}
/**
*
* Name of the attaching domain.
*
*
* string domain_name = 3;
* @param value The bytes for domainName to set.
* @return This builder for chaining.
*/
public Builder setDomainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainName_ = value;
onChanged();
return this;
}
private java.lang.Object certificateId_ = "";
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The certificateId.
*/
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certificateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return The bytes for certificateId.
*/
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @param value The certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
certificateId_ = value;
onChanged();
return this;
}
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @return This builder for chaining.
*/
public Builder clearCertificateId() {
certificateId_ = getDefaultInstance().getCertificateId();
onChanged();
return this;
}
/**
*
* ID of the certificate for provided domain.
*
*
* string certificate_id = 4;
* @param value The bytes for certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
certificateId_ = 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.serverless.apigateway.v1.AddDomainMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.AddDomainMetadata)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddDomainMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddDomainMetadata(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.serverless.apigateway.v1.ApigatewayService.AddDomainMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDomainMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.RemoveDomainMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.RemoveDomainMetadata}
*/
public static final class RemoveDomainMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.RemoveDomainMetadata)
RemoveDomainMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDomainMetadata.newBuilder() to construct.
private RemoveDomainMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveDomainMetadata() {
apiGatewayId_ = "";
domainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDomainMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDomainMetadata(
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();
apiGatewayId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
domainId_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object domainId_;
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
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();
domainId_ = s;
return s;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainId_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainId_);
}
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (!getDomainId()
.equals(other.getDomainId())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata 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.serverless.apigateway.v1.RemoveDomainMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.RemoveDomainMetadata)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.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();
apiGatewayId_ = "";
domainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata(this);
result.apiGatewayId_ = apiGatewayId_;
result.domainId_ = domainId_;
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway from which the domain is being detached.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* ID of the detaching domain.
*
*
* string domain_id = 2;
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = 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.serverless.apigateway.v1.RemoveDomainMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.RemoveDomainMetadata)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDomainMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDomainMetadata(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.serverless.apigateway.v1.ApigatewayService.RemoveDomainMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.ListOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `pageSize`, the service returns a [ListOperationsResponse.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 `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.ListOperationsRequest}
*/
public static final class ListOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.ListOperationsRequest)
ListOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListOperationsRequest.newBuilder() to construct.
private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListOperationsRequest() {
apiGatewayId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListOperationsRequest(
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();
apiGatewayId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `pageSize`, the service returns a [ListOperationsResponse.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 `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
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();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().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 = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest 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.serverless.apigateway.v1.ListOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.ListOperationsRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.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();
apiGatewayId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest(this);
result.apiGatewayId_ = apiGatewayId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway to list operations for.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `pageSize`, the service returns a [ListOperationsResponse.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 that should be returned. If the number of available
* results is larger than `pageSize`, the service returns a [ListOperationsResponse.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 that should be returned. If the number of available
* results is larger than `pageSize`, the service returns a [ListOperationsResponse.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 `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `pageToken` to the
* [ListOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Examples of a filter: `done=false`, `created_by='John.Doe'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = 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.serverless.apigateway.v1.ListOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.ListOperationsRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListOperationsRequest(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.serverless.apigateway.v1.ApigatewayService.ListOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.ListOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified API gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified API gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified API gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified API gateway.
*
*
* 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 gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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.serverless.apigateway.v1.ListOperationsResponse}
*/
public static final class ListOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.ListOperationsResponse)
ListOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListOperationsResponse.newBuilder() to construct.
private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListOperationsResponse(
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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified API gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified API gateway.
*
*
* 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 gateway.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified API gateway.
*
*
* 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 gateway.
*
*
* 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_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse) 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse 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.serverless.apigateway.v1.ListOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.ListOperationsResponse)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse(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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse.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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse) 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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 gateway.
*
*
* 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_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListOperationsRequest.page_size], use `nextPageToken` as the value
* for the [ListOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `nextPageToken` 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.serverless.apigateway.v1.ListOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.ListOperationsResponse)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListOperationsResponse(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.serverless.apigateway.v1.ApigatewayService.ListOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetOpenapiSpecRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The format.
*/
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format getFormat();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest}
*/
public static final class GetOpenapiSpecRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest)
GetOpenapiSpecRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetOpenapiSpecRequest.newBuilder() to construct.
private GetOpenapiSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetOpenapiSpecRequest() {
apiGatewayId_ = "";
format_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetOpenapiSpecRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetOpenapiSpecRequest(
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();
apiGatewayId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
format_ = rawValue;
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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format}
*/
public enum Format
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FORMAT_UNSPECIFIED = 0;
*/
FORMAT_UNSPECIFIED(0),
/**
* JSON = 1;
*/
JSON(1),
/**
* YAML = 2;
*/
YAML(2),
UNRECOGNIZED(-1),
;
/**
* FORMAT_UNSPECIFIED = 0;
*/
public static final int FORMAT_UNSPECIFIED_VALUE = 0;
/**
* JSON = 1;
*/
public static final int JSON_VALUE = 1;
/**
* YAML = 2;
*/
public static final int YAML_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Format valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Format forNumber(int value) {
switch (value) {
case 0: return FORMAT_UNSPECIFIED;
case 1: return JSON;
case 2: return YAML;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Format> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Format findValueByNumber(int number) {
return Format.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.getDescriptor().getEnumTypes().get(0);
}
private static final Format[] VALUES = values();
public static Format valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Format(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format)
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_FIELD_NUMBER = 2;
private int format_;
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The format.
*/
@java.lang.Override public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format getFormat() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format result = yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.valueOf(format_);
return result == null ? yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.UNRECOGNIZED : result;
}
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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (format_ != yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, format_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (format_ != yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, format_);
}
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (format_ != other.format_) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest 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.serverless.apigateway.v1.GetOpenapiSpecRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.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();
apiGatewayId_ = "";
format_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest(this);
result.apiGatewayId_ = apiGatewayId_;
result.format_ = format_;
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway to get specification from.
*
*
* string api_gateway_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private int format_ = 0;
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
format_ = value;
onChanged();
return this;
}
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return The format.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format getFormat() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format result = yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.valueOf(format_);
return result == null ? yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format.UNRECOGNIZED : result;
}
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest.Format value) {
if (value == null) {
throw new NullPointerException();
}
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Format of returned specification. Default is the original format used in [CreateApiGatewayRequest].
*
*
* .yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest.Format format = 2;
* @return This builder for chaining.
*/
public Builder clearFormat() {
format_ = 0;
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.serverless.apigateway.v1.GetOpenapiSpecRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecRequest)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetOpenapiSpecRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetOpenapiSpecRequest(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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetOpenapiSpecResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
java.lang.String getApiGatewayId();
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
com.google.protobuf.ByteString
getApiGatewayIdBytes();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The openapiSpec.
*/
java.lang.String getOpenapiSpec();
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The bytes for openapiSpec.
*/
com.google.protobuf.ByteString
getOpenapiSpecBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecResponse}
*/
public static final class GetOpenapiSpecResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecResponse)
GetOpenapiSpecResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetOpenapiSpecResponse.newBuilder() to construct.
private GetOpenapiSpecResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetOpenapiSpecResponse() {
apiGatewayId_ = "";
openapiSpec_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetOpenapiSpecResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetOpenapiSpecResponse(
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();
apiGatewayId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
openapiSpec_ = 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.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.Builder.class);
}
public static final int API_GATEWAY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object apiGatewayId_;
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
@java.lang.Override
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
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();
apiGatewayId_ = s;
return s;
}
}
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPENAPI_SPEC_FIELD_NUMBER = 2;
private volatile java.lang.Object openapiSpec_;
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The openapiSpec.
*/
@java.lang.Override
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = openapiSpec_;
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();
openapiSpec_ = s;
return s;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The bytes for openapiSpec.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = openapiSpec_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
openapiSpec_ = 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(apiGatewayId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openapiSpec_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, openapiSpec_);
}
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(apiGatewayId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGatewayId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openapiSpec_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, openapiSpec_);
}
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse other = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse) obj;
if (!getApiGatewayId()
.equals(other.getApiGatewayId())) return false;
if (!getOpenapiSpec()
.equals(other.getOpenapiSpec())) 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_GATEWAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiGatewayId().hashCode();
hash = (37 * hash) + OPENAPI_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getOpenapiSpec().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse 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.serverless.apigateway.v1.GetOpenapiSpecResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecResponse)
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.class, yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.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();
apiGatewayId_ = "";
openapiSpec_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse build() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse result = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse(this);
result.apiGatewayId_ = apiGatewayId_;
result.openapiSpec_ = openapiSpec_;
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse.getDefaultInstance()) return this;
if (!other.getApiGatewayId().isEmpty()) {
apiGatewayId_ = other.apiGatewayId_;
onChanged();
}
if (!other.getOpenapiSpec().isEmpty()) {
openapiSpec_ = other.openapiSpec_;
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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object apiGatewayId_ = "";
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The apiGatewayId.
*/
public java.lang.String getApiGatewayId() {
java.lang.Object ref = apiGatewayId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiGatewayId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return The bytes for apiGatewayId.
*/
public com.google.protobuf.ByteString
getApiGatewayIdBytes() {
java.lang.Object ref = apiGatewayId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiGatewayId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @param value The apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiGatewayId_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @return This builder for chaining.
*/
public Builder clearApiGatewayId() {
apiGatewayId_ = getDefaultInstance().getApiGatewayId();
onChanged();
return this;
}
/**
*
* ID of the API gateway.
*
*
* string api_gateway_id = 1;
* @param value The bytes for apiGatewayId to set.
* @return This builder for chaining.
*/
public Builder setApiGatewayIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiGatewayId_ = value;
onChanged();
return this;
}
private java.lang.Object openapiSpec_ = "";
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The openapiSpec.
*/
public java.lang.String getOpenapiSpec() {
java.lang.Object ref = openapiSpec_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
openapiSpec_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return The bytes for openapiSpec.
*/
public com.google.protobuf.ByteString
getOpenapiSpecBytes() {
java.lang.Object ref = openapiSpec_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
openapiSpec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @param value The openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
openapiSpec_ = value;
onChanged();
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @return This builder for chaining.
*/
public Builder clearOpenapiSpec() {
openapiSpec_ = getDefaultInstance().getOpenapiSpec();
onChanged();
return this;
}
/**
*
* The text of specification, JSON or YAML.
*
*
* string openapi_spec = 2;
* @param value The bytes for openapiSpec to set.
* @return This builder for chaining.
*/
public Builder setOpenapiSpecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
openapiSpec_ = 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.serverless.apigateway.v1.GetOpenapiSpecResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.GetOpenapiSpecResponse)
private static final yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse();
}
public static yandex.cloud.api.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetOpenapiSpecResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetOpenapiSpecResponse(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.serverless.apigateway.v1.ApigatewayService.GetOpenapiSpecResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_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/serverless/apigateway/v1/" +
"apigateway_service.proto\022%yandex.cloud.s" +
"erverless.apigateway.v1\032\034google/api/anno" +
"tations.proto\032 google/protobuf/field_mas" +
"k.proto\032 yandex/cloud/api/operation.prot" +
"o\032 yandex/cloud/access/access.proto\0326yan" +
"dex/cloud/serverless/apigateway/v1/apiga" +
"teway.proto\032&yandex/cloud/operation/oper" +
"ation.proto\032\035yandex/cloud/validation.pro" +
"to\"4\n\024GetApiGatewayRequest\022\034\n\016api_gatewa" +
"y_id\030\001 \001(\tB\004\350\3071\001\"g\n\025ListApiGatewayReques" +
"t\022\027\n\tfolder_id\030\001 \001(\tB\004\350\3071\001\022\021\n\tpage_size\030" +
"\002 \001(\003\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(" +
"\t\"z\n\026ListApiGatewayResponse\022G\n\014api_gatew" +
"ays\030\001 \003(\01321.yandex.cloud.serverless.apig" +
"ateway.v1.ApiGateway\022\027\n\017next_page_token\030" +
"\002 \001(\t\"\235\006\n\027CreateApiGatewayRequest\022\027\n\tfol" +
"der_id\030\001 \001(\tB\004\350\3071\001\0222\n\004name\030\002 \001(\tB$\362\3071 |[" +
"a-z]([-a-z0-9]{0,61}[a-z0-9])?\022\036\n\013descri" +
"ption\030\003 \001(\tB\t\212\3101\005<=256\022\243\001\n\006labels\030\004 \003(\0132" +
"J.yandex.cloud.serverless.apigateway.v1." +
"CreateApiGatewayRequest.LabelsEntryBG\202\3101" +
"\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*\262\3101\006\032\0041-" +
"63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*\022\026\n\014openapi_" +
"spec\030\005 \001(\tH\000\022I\n\014connectivity\030\006 \001(\01323.yan" +
"dex.cloud.serverless.apigateway.v1.Conne" +
"ctivity\022F\n\013log_options\030\007 \001(\01321.yandex.cl" +
"oud.serverless.apigateway.v1.LogOptions\022" +
"`\n\tvariables\030\010 \003(\0132M.yandex.cloud.server" +
"less.apigateway.v1.CreateApiGatewayReque" +
"st.VariablesEntry\022=\n\006canary\030\t \001(\0132-.yand" +
"ex.cloud.serverless.apigateway.v1.Canary" +
"\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
"\001(\t:\0028\001\032f\n\016VariablesEntry\022\013\n\003key\030\001 \001(\t\022C" +
"\n\005value\030\002 \001(\01324.yandex.cloud.serverless." +
"apigateway.v1.VariableInput:\0028\001B\014\n\004spec\022" +
"\004\300\3011\001\"\323\006\n\027UpdateApiGatewayRequest\022\034\n\016api" +
"_gateway_id\030\001 \001(\tB\004\350\3071\001\022/\n\013update_mask\030\002" +
" \001(\0132\032.google.protobuf.FieldMask\0222\n\004name" +
"\030\003 \001(\tB$\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-" +
"9])?\022\036\n\013description\030\004 \001(\tB\t\212\3101\005<=256\022\243\001\n" +
"\006labels\030\005 \003(\0132J.yandex.cloud.serverless." +
"apigateway.v1.UpdateApiGatewayRequest.La" +
"belsEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-" +
"9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z" +
"]*\022\026\n\014openapi_spec\030\006 \001(\tH\000\022I\n\014connectivi" +
"ty\030\007 \001(\01323.yandex.cloud.serverless.apiga" +
"teway.v1.Connectivity\022F\n\013log_options\030\010 \001" +
"(\01321.yandex.cloud.serverless.apigateway." +
"v1.LogOptions\022`\n\tvariables\030\t \003(\0132M.yande" +
"x.cloud.serverless.apigateway.v1.UpdateA" +
"piGatewayRequest.VariablesEntry\022=\n\006canar" +
"y\030\n \001(\0132-.yandex.cloud.serverless.apigat" +
"eway.v1.Canary\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" +
"(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032f\n\016VariablesEntry\022" +
"\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.yandex.clo" +
"ud.serverless.apigateway.v1.VariableInpu" +
"t:\0028\001B\014\n\004spec\022\004\300\3011\001\"7\n\027DeleteApiGatewayR" +
"equest\022\034\n\016api_gateway_id\030\001 \001(\tB\004\350\3071\001\"]\n\020" +
"AddDomainRequest\022\034\n\016api_gateway_id\030\001 \001(\t" +
"B\004\350\3071\001\022\023\n\013domain_name\030\003 \001(\t\022\026\n\016certifica" +
"te_id\030\004 \001(\t\"L\n\023RemoveDomainRequest\022\034\n\016ap" +
"i_gateway_id\030\001 \001(\tB\004\350\3071\001\022\027\n\tdomain_id\030\002 " +
"\001(\tB\004\350\3071\001\"2\n\030CreateApiGatewayMetadata\022\026\n" +
"\016api_gateway_id\030\001 \001(\t\"2\n\030UpdateApiGatewa" +
"yMetadata\022\026\n\016api_gateway_id\030\001 \001(\t\"2\n\030Del" +
"eteApiGatewayMetadata\022\026\n\016api_gateway_id\030" +
"\001 \001(\t\"k\n\021AddDomainMetadata\022\026\n\016api_gatewa" +
"y_id\030\001 \001(\t\022\021\n\tdomain_id\030\002 \001(\t\022\023\n\013domain_" +
"name\030\003 \001(\t\022\026\n\016certificate_id\030\004 \001(\t\"A\n\024Re" +
"moveDomainMetadata\022\026\n\016api_gateway_id\030\001 \001" +
"(\t\022\021\n\tdomain_id\030\002 \001(\t\"\217\001\n\025ListOperations" +
"Request\022\034\n\016api_gateway_id\030\001 \001(\tB\004\350\3071\001\022\035\n" +
"\tpage_size\030\002 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_tok" +
"en\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006filter\030\004 \001(\tB\n\212\3101" +
"\006<=1000\"h\n\026ListOperationsResponse\0225\n\nope" +
"rations\030\001 \003(\0132!.yandex.cloud.operation.O" +
"peration\022\027\n\017next_page_token\030\002 \001(\t\"\300\001\n\025Ge" +
"tOpenapiSpecRequest\022\034\n\016api_gateway_id\030\001 " +
"\001(\tB\004\350\3071\001\022S\n\006format\030\002 \001(\0162C.yandex.cloud" +
".serverless.apigateway.v1.GetOpenapiSpec" +
"Request.Format\"4\n\006Format\022\026\n\022FORMAT_UNSPE" +
"CIFIED\020\000\022\010\n\004JSON\020\001\022\010\n\004YAML\020\002\"F\n\026GetOpena" +
"piSpecResponse\022\026\n\016api_gateway_id\030\001 \001(\t\022\024" +
"\n\014openapi_spec\030\002 \001(\t2\332\023\n\021ApiGatewayServi" +
"ce\022\253\001\n\003Get\022;.yandex.cloud.serverless.api" +
"gateway.v1.GetApiGatewayRequest\0321.yandex" +
".cloud.serverless.apigateway.v1.ApiGatew" +
"ay\"4\202\323\344\223\002.\022,/apigateways/v1/apigateways/" +
"{api_gateway_id}\022\250\001\n\004List\022<.yandex.cloud" +
".serverless.apigateway.v1.ListApiGateway" +
"Request\032=.yandex.cloud.serverless.apigat" +
"eway.v1.ListApiGatewayResponse\"#\202\323\344\223\002\035\022\033" +
"/apigateways/v1/apigateways\022\275\001\n\006Create\022>" +
".yandex.cloud.serverless.apigateway.v1.C" +
"reateApiGatewayRequest\032!.yandex.cloud.op" +
"eration.Operation\"P\202\323\344\223\002 \"\033/apigateways/" +
"v1/apigateways:\001*\262\322*&\n\030CreateApiGatewayM" +
"etadata\022\nApiGateway\022\316\001\n\006Update\022>.yandex." +
"cloud.serverless.apigateway.v1.UpdateApi" +
"GatewayRequest\032!.yandex.cloud.operation." +
"Operation\"a\202\323\344\223\00212,/apigateways/v1/apiga" +
"teways/{api_gateway_id}:\001*\262\322*&\n\030UpdateAp" +
"iGatewayMetadata\022\nApiGateway\022\326\001\n\006Delete\022" +
">.yandex.cloud.serverless.apigateway.v1." +
"DeleteApiGatewayRequest\032!.yandex.cloud.o" +
"peration.Operation\"i\202\323\344\223\002.*,/apigateways" +
"/v1/apigateways/{api_gateway_id}\262\322*1\n\030De" +
"leteApiGatewayMetadata\022\025google.protobuf." +
"Empty\022\330\001\n\tAddDomain\0227.yandex.cloud.serve" +
"rless.apigateway.v1.AddDomainRequest\032!.y" +
"andex.cloud.operation.Operation\"o\202\323\344\223\002;\"" +
"6/apigateways/v1/apigateways/{api_gatewa" +
"y_id}:addDomain:\001*\262\322**\n\021AddDomainMetadat" +
"a\022\025google.protobuf.Empty\022\344\001\n\014RemoveDomai" +
"n\022:.yandex.cloud.serverless.apigateway.v" +
"1.RemoveDomainRequest\032!.yandex.cloud.ope" +
"ration.Operation\"u\202\323\344\223\002>\"9/apigateways/v" +
"1/apigateways/{api_gateway_id}:removeDom" +
"ain:\001*\262\322*-\n\024RemoveDomainMetadata\022\025google" +
".protobuf.Empty\022\310\001\n\016GetOpenapiSpec\022<.yan" +
"dex.cloud.serverless.apigateway.v1.GetOp" +
"enapiSpecRequest\032=.yandex.cloud.serverle" +
"ss.apigateway.v1.GetOpenapiSpecResponse\"" +
"9\202\323\344\223\0023\0221/apigateways/v1/apigateways/{ap" +
"i_gateway_id}:spec\022\316\001\n\016ListOperations\022<." +
"yandex.cloud.serverless.apigateway.v1.Li" +
"stOperationsRequest\032=.yandex.cloud.serve" +
"rless.apigateway.v1.ListOperationsRespon" +
"se\"?\202\323\344\223\0029\0227/apigateways/v1/apigateways/" +
"{api_gateway_id}/operations\022\273\001\n\022ListAcce" +
"ssBindings\022..yandex.cloud.access.ListAcc" +
"essBindingsRequest\032/.yandex.cloud.access" +
".ListAccessBindingsResponse\"D\202\323\344\223\002>\022/apigateways/v1/apigatew" +
"ays/{resource_id}:updateAccessBindings:\001" +
"*\262\322*<\n#access.UpdateAccessBindingsMetada" +
"ta\022\025google.protobuf.EmptyB\201\001\n)yandex.clo" +
"ud.api.serverless.apigateway.v1ZTgithub." +
"com/yandex-cloud/go-genproto/yandex/clou" +
"d/serverless/apigateway/v1;apigatewayb\006p" +
"roto3"
};
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.access.Access.getDescriptor(),
yandex.cloud.api.serverless.apigateway.v1.Apigateway.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_GetApiGatewayRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", });
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayRequest_descriptor,
new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ListApiGatewayResponse_descriptor,
new java.lang.String[] { "ApiGateways", "NextPageToken", });
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor,
new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "OpenapiSpec", "Connectivity", "LogOptions", "Variables", "Canary", "Spec", });
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayRequest_VariablesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", "UpdateMask", "Name", "Description", "Labels", "OpenapiSpec", "Connectivity", "LogOptions", "Variables", "Canary", "Spec", });
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayRequest_VariablesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", });
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", "DomainName", "CertificateId", });
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", "DomainId", });
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_CreateApiGatewayMetadata_descriptor,
new java.lang.String[] { "ApiGatewayId", });
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_UpdateApiGatewayMetadata_descriptor,
new java.lang.String[] { "ApiGatewayId", });
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_DeleteApiGatewayMetadata_descriptor,
new java.lang.String[] { "ApiGatewayId", });
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_AddDomainMetadata_descriptor,
new java.lang.String[] { "ApiGatewayId", "DomainId", "DomainName", "CertificateId", });
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_RemoveDomainMetadata_descriptor,
new java.lang.String[] { "ApiGatewayId", "DomainId", });
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ListOperationsResponse_descriptor,
new java.lang.String[] { "Operations", "NextPageToken", });
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecRequest_descriptor,
new java.lang.String[] { "ApiGatewayId", "Format", });
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_GetOpenapiSpecResponse_descriptor,
new java.lang.String[] { "ApiGatewayId", "OpenapiSpec", });
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.exactlyOne);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.mapKey);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.size);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.access.Access.getDescriptor();
yandex.cloud.api.serverless.apigateway.v1.Apigateway.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