yandex.cloud.api.serverless.apigateway.v1.Apigateway Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/serverless/apigateway/v1/apigateway.proto
package yandex.cloud.api.serverless.apigateway.v1;
public final class Apigateway {
private Apigateway() {}
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 ApiGatewayOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.ApiGateway)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the API gateway belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the API gateway belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the API gateway. The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the API gateway. The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the API gateway.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the API gateway.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
int getLabelsCount();
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
java.util.Map
getLabelsMap();
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The status.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status getStatus();
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The domain.
*/
java.lang.String getDomain();
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The bytes for domain.
*/
com.google.protobuf.ByteString
getDomainBytes();
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The logGroupId.
*/
java.lang.String getLogGroupId();
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The bytes for logGroupId.
*/
com.google.protobuf.ByteString
getLogGroupIdBytes();
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
java.util.List
getAttachedDomainsList();
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain getAttachedDomains(int index);
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
int getAttachedDomainsCount();
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder>
getAttachedDomainsOrBuilderList();
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder getAttachedDomainsOrBuilder(
int index);
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
boolean hasConnectivity();
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @return The connectivity.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getConnectivity();
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 13;
* @return Whether the logOptions field is set.
*/
boolean hasLogOptions();
/**
*
* Options for logging from the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.LogOptions log_options = 13;
* @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 = 13;
*/
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 = 14;
*/
int getVariablesCount();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 14;
*/
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 = 14;
*/
java.util.Map
getVariablesMap();
/**
*
* Values of variables defined in the specification.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 14;
*/
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 = 14;
*/
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 = 15;
* @return Whether the canary field is set.
*/
boolean hasCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 15;
* @return The canary.
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getCanary();
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 15;
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder getCanaryOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.ApiGateway}
*/
public static final class ApiGateway extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.ApiGateway)
ApiGatewayOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiGateway.newBuilder() to construct.
private ApiGateway(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiGateway() {
id_ = "";
folderId_ = "";
name_ = "";
description_ = "";
status_ = 0;
domain_ = "";
logGroupId_ = "";
attachedDomains_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ApiGateway();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiGateway(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 58: {
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 64: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
domain_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
logGroupId_ = s;
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
attachedDomains_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
attachedDomains_.add(
input.readMessage(yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.parser(), extensionRegistry));
break;
}
case 98: {
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 106: {
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 114: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variables_.getMutableMap().put(
variables__.getKey(), variables__.getValue());
break;
}
case 122: {
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 {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
attachedDomains_ = java.util.Collections.unmodifiableList(attachedDomains_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetLabels();
case 14:
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.serverless.apigateway.v1.ApiGateway.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* API gateway is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
* API gateway is ready for use.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
* API gateway is being deleted.
*
*
* DELETING = 3;
*/
DELETING(3),
/**
*
* API gateway failed. The only allowed action is delete.
*
*
* ERROR = 4;
*/
ERROR(4),
/**
*
* API gateway is being updated.
*
*
* UPDATING = 5;
*/
UPDATING(5),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* API gateway is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
* API gateway is ready for use.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
* API gateway is being deleted.
*
*
* DELETING = 3;
*/
public static final int DELETING_VALUE = 3;
/**
*
* API gateway failed. The only allowed action is delete.
*
*
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
/**
*
* API gateway is being updated.
*
*
* UPDATING = 5;
*/
public static final int UPDATING_VALUE = 5;
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 Status 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 Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return CREATING;
case 2: return ACTIVE;
case 3: return DELETING;
case 4: return ERROR;
case 5: return UPDATING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.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.Apigateway.ApiGateway.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status 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 Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.apigateway.v1.ApiGateway.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 CREATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the API gateway. The name is unique within the folder.
*
*
* string name = 4;
* @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 is unique within the folder.
*
*
* string name = 4;
* @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 = 5;
private volatile java.lang.Object description_;
/**
*
* Description of the API gateway.
*
*
* string description = 5;
* @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 = 5;
* @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 = 7;
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_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.
*
*
* map<string, string> labels = 7;
*/
@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.
*
*
* map<string, string> labels = 7;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
@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.
*
*
* map<string, string> labels = 7;
*/
@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 STATUS_FIELD_NUMBER = 8;
private int status_;
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status result = yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.UNRECOGNIZED : result;
}
public static final int DOMAIN_FIELD_NUMBER = 9;
private volatile java.lang.Object domain_;
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The domain.
*/
@java.lang.Override
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
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();
domain_ = s;
return s;
}
}
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The bytes for domain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOG_GROUP_ID_FIELD_NUMBER = 10;
private volatile java.lang.Object logGroupId_;
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The logGroupId.
*/
@java.lang.Override
public java.lang.String getLogGroupId() {
java.lang.Object ref = logGroupId_;
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();
logGroupId_ = s;
return s;
}
}
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The bytes for logGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = logGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTACHED_DOMAINS_FIELD_NUMBER = 11;
private java.util.List attachedDomains_;
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
@java.lang.Override
public java.util.List getAttachedDomainsList() {
return attachedDomains_;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder>
getAttachedDomainsOrBuilderList() {
return attachedDomains_;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
@java.lang.Override
public int getAttachedDomainsCount() {
return attachedDomains_.size();
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain getAttachedDomains(int index) {
return attachedDomains_.get(index);
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder getAttachedDomainsOrBuilder(
int index) {
return attachedDomains_.get(index);
}
public static final int CONNECTIVITY_FIELD_NUMBER = 12;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity connectivity_;
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
@java.lang.Override
public boolean hasConnectivity() {
return connectivity_ != null;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @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_;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder getConnectivityOrBuilder() {
return getConnectivity();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 13;
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 = 13;
* @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 = 13;
* @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 = 13;
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder getLogOptionsOrBuilder() {
return getLogOptions();
}
public static final int VARIABLES_FIELD_NUMBER = 14;
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_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 = 14;
*/
@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 = 14;
*/
@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 = 14;
*/
@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 = 14;
*/
@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 = 15;
private yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary canary_;
/**
*
* Canary release of the gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.Canary canary = 15;
* @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 = 15;
* @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 = 15;
*/
@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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_);
}
if (createdAt_ != null) {
output.writeMessage(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
7);
if (status_ != yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(8, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, domain_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, logGroupId_);
}
for (int i = 0; i < attachedDomains_.size(); i++) {
output.writeMessage(11, attachedDomains_.get(i));
}
if (connectivity_ != null) {
output.writeMessage(12, getConnectivity());
}
if (logOptions_ != null) {
output.writeMessage(13, getLogOptions());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
14);
if (canary_ != null) {
output.writeMessage(15, 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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(7, labels__);
}
if (status_ != yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, domain_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, logGroupId_);
}
for (int i = 0; i < attachedDomains_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, attachedDomains_.get(i));
}
if (connectivity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getConnectivity());
}
if (logOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, 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(14, variables__);
}
if (canary_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, 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.Apigateway.ApiGateway)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (status_ != other.status_) return false;
if (!getDomain()
.equals(other.getDomain())) return false;
if (!getLogGroupId()
.equals(other.getLogGroupId())) return false;
if (!getAttachedDomainsList()
.equals(other.getAttachedDomainsList())) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().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();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
hash = (53 * hash) + getDomain().hashCode();
hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getLogGroupId().hashCode();
if (getAttachedDomainsCount() > 0) {
hash = (37 * hash) + ATTACHED_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getAttachedDomainsList().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway 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.Apigateway.ApiGateway parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway 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.Apigateway.ApiGateway parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.Apigateway.ApiGateway 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.ApiGateway}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.ApiGateway)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGatewayOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetLabels();
case 14:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
return internalGetMutableLabels();
case 14:
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttachedDomainsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
status_ = 0;
domain_ = "";
logGroupId_ = "";
if (attachedDomainsBuilder_ == null) {
attachedDomains_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
attachedDomainsBuilder_.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.folderId_ = folderId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.status_ = status_;
result.domain_ = domain_;
result.logGroupId_ = logGroupId_;
if (attachedDomainsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
attachedDomains_ = java.util.Collections.unmodifiableList(attachedDomains_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.attachedDomains_ = attachedDomains_;
} else {
result.attachedDomains_ = attachedDomainsBuilder_.build();
}
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();
}
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.Apigateway.ApiGateway) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getDomain().isEmpty()) {
domain_ = other.domain_;
onChanged();
}
if (!other.getLogGroupId().isEmpty()) {
logGroupId_ = other.logGroupId_;
onChanged();
}
if (attachedDomainsBuilder_ == null) {
if (!other.attachedDomains_.isEmpty()) {
if (attachedDomains_.isEmpty()) {
attachedDomains_ = other.attachedDomains_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAttachedDomainsIsMutable();
attachedDomains_.addAll(other.attachedDomains_);
}
onChanged();
}
} else {
if (!other.attachedDomains_.isEmpty()) {
if (attachedDomainsBuilder_.isEmpty()) {
attachedDomainsBuilder_.dispose();
attachedDomainsBuilder_ = null;
attachedDomains_ = other.attachedDomains_;
bitField0_ = (bitField0_ & ~0x00000002);
attachedDomainsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttachedDomainsFieldBuilder() : null;
} else {
attachedDomainsBuilder_.addAllMessages(other.attachedDomains_);
}
}
}
if (other.hasConnectivity()) {
mergeConnectivity(other.getConnectivity());
}
if (other.hasLogOptions()) {
mergeLogOptions(other.getLogOptions());
}
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
if (other.hasCanary()) {
mergeCanary(other.getCanary());
}
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.Apigateway.ApiGateway parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the API gateway. Generated at creation time.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 that the API gateway belongs to.
*
*
* string folder_id = 2;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder that the API gateway belongs to.
*
*
* string folder_id = 2;
* @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 com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Creation timestamp for the API-gateway.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the API gateway. The name is unique within the folder.
*
*
* string name = 4;
* @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 is unique within the folder.
*
*
* string name = 4;
* @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 is unique within the folder.
*
*
* string name = 4;
* @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 is unique within the folder.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the API gateway. The name is unique within the folder.
*
*
* string name = 4;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the API gateway.
*
*
* string description = 5;
* @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.
*
*
* map<string, string> labels = 7;
*/
@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.
*
*
* map<string, string> labels = 7;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* API gateway labels as `key:value` pairs.
*
*
* map<string, string> labels = 7;
*/
@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.
*
*
* map<string, string> labels = 7;
*/
@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.
*
*
* map<string, string> labels = 7;
*/
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.
*
*
* map<string, string> labels = 7;
*/
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.
*
*
* map<string, string> labels = 7;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private int status_ = 0;
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status result = yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status.UNRECOGNIZED : result;
}
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the API gateway.
*
*
* .yandex.cloud.serverless.apigateway.v1.ApiGateway.Status status = 8;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object domain_ = "";
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The domain.
*/
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return The bytes for domain.
*/
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @param value The domain to set.
* @return This builder for chaining.
*/
public Builder setDomain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domain_ = value;
onChanged();
return this;
}
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @return This builder for chaining.
*/
public Builder clearDomain() {
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
*
* Default domain for the API gateway. Generated at creation time.
*
*
* string domain = 9;
* @param value The bytes for domain to set.
* @return This builder for chaining.
*/
public Builder setDomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domain_ = value;
onChanged();
return this;
}
private java.lang.Object logGroupId_ = "";
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The logGroupId.
*/
public java.lang.String getLogGroupId() {
java.lang.Object ref = logGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return The bytes for logGroupId.
*/
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = logGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @param value The logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @return This builder for chaining.
*/
public Builder clearLogGroupId() {
logGroupId_ = getDefaultInstance().getLogGroupId();
onChanged();
return this;
}
/**
*
* ID of the log group for the API gateway.
*
*
* string log_group_id = 10;
* @param value The bytes for logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logGroupId_ = value;
onChanged();
return this;
}
private java.util.List attachedDomains_ =
java.util.Collections.emptyList();
private void ensureAttachedDomainsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
attachedDomains_ = new java.util.ArrayList(attachedDomains_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder> attachedDomainsBuilder_;
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public java.util.List getAttachedDomainsList() {
if (attachedDomainsBuilder_ == null) {
return java.util.Collections.unmodifiableList(attachedDomains_);
} else {
return attachedDomainsBuilder_.getMessageList();
}
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public int getAttachedDomainsCount() {
if (attachedDomainsBuilder_ == null) {
return attachedDomains_.size();
} else {
return attachedDomainsBuilder_.getCount();
}
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain getAttachedDomains(int index) {
if (attachedDomainsBuilder_ == null) {
return attachedDomains_.get(index);
} else {
return attachedDomainsBuilder_.getMessage(index);
}
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder setAttachedDomains(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain value) {
if (attachedDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachedDomainsIsMutable();
attachedDomains_.set(index, value);
onChanged();
} else {
attachedDomainsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder setAttachedDomains(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder builderForValue) {
if (attachedDomainsBuilder_ == null) {
ensureAttachedDomainsIsMutable();
attachedDomains_.set(index, builderForValue.build());
onChanged();
} else {
attachedDomainsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder addAttachedDomains(yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain value) {
if (attachedDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachedDomainsIsMutable();
attachedDomains_.add(value);
onChanged();
} else {
attachedDomainsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder addAttachedDomains(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain value) {
if (attachedDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachedDomainsIsMutable();
attachedDomains_.add(index, value);
onChanged();
} else {
attachedDomainsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder addAttachedDomains(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder builderForValue) {
if (attachedDomainsBuilder_ == null) {
ensureAttachedDomainsIsMutable();
attachedDomains_.add(builderForValue.build());
onChanged();
} else {
attachedDomainsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder addAttachedDomains(
int index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder builderForValue) {
if (attachedDomainsBuilder_ == null) {
ensureAttachedDomainsIsMutable();
attachedDomains_.add(index, builderForValue.build());
onChanged();
} else {
attachedDomainsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder addAllAttachedDomains(
java.lang.Iterable extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain> values) {
if (attachedDomainsBuilder_ == null) {
ensureAttachedDomainsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attachedDomains_);
onChanged();
} else {
attachedDomainsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder clearAttachedDomains() {
if (attachedDomainsBuilder_ == null) {
attachedDomains_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
attachedDomainsBuilder_.clear();
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public Builder removeAttachedDomains(int index) {
if (attachedDomainsBuilder_ == null) {
ensureAttachedDomainsIsMutable();
attachedDomains_.remove(index);
onChanged();
} else {
attachedDomainsBuilder_.remove(index);
}
return this;
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder getAttachedDomainsBuilder(
int index) {
return getAttachedDomainsFieldBuilder().getBuilder(index);
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder getAttachedDomainsOrBuilder(
int index) {
if (attachedDomainsBuilder_ == null) {
return attachedDomains_.get(index); } else {
return attachedDomainsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public java.util.List extends yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder>
getAttachedDomainsOrBuilderList() {
if (attachedDomainsBuilder_ != null) {
return attachedDomainsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attachedDomains_);
}
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder addAttachedDomainsBuilder() {
return getAttachedDomainsFieldBuilder().addBuilder(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.getDefaultInstance());
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder addAttachedDomainsBuilder(
int index) {
return getAttachedDomainsFieldBuilder().addBuilder(
index, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.getDefaultInstance());
}
/**
*
* List of domains attached to API gateway.
*
*
* repeated .yandex.cloud.serverless.apigateway.v1.AttachedDomain attached_domains = 11;
*/
public java.util.List
getAttachedDomainsBuilderList() {
return getAttachedDomainsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder>
getAttachedDomainsFieldBuilder() {
if (attachedDomainsBuilder_ == null) {
attachedDomainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder>(
attachedDomains_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
attachedDomains_ = null;
}
return attachedDomainsBuilder_;
}
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_;
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
public boolean hasConnectivity() {
return connectivityBuilder_ != null || connectivity_ != null;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
* @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();
}
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
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;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
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;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
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;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
public Builder clearConnectivity() {
if (connectivityBuilder_ == null) {
connectivity_ = null;
onChanged();
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
return this;
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder getConnectivityBuilder() {
onChanged();
return getConnectivityFieldBuilder().getBuilder();
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
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_;
}
}
/**
*
* Network access. If specified the gateway will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.apigateway.v1.Connectivity connectivity = 12;
*/
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 = 13;
* @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 = 13;
* @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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 14;
*/
@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 = 14;
*/
@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 = 14;
*/
@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 = 14;
*/
@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 = 14;
*/
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 = 14;
*/
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 = 14;
*/
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 = 15;
* @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 = 15;
* @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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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 = 15;
*/
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.ApiGateway)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.ApiGateway)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.ApiGateway getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApiGateway parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApiGateway(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.Apigateway.ApiGateway getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachedDomainOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.AttachedDomain)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the domain.
*
*
* string domain_id = 1;
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* ID of the domain.
*
*
* string domain_id = 1;
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
/**
*
* ID of the domain certificate.
*
*
* string certificate_id = 2;
* @return The certificateId.
*/
java.lang.String getCertificateId();
/**
*
* ID of the domain certificate.
*
*
* string certificate_id = 2;
* @return The bytes for certificateId.
*/
com.google.protobuf.ByteString
getCertificateIdBytes();
/**
*
* Enabling flag.
*
*
* bool enabled = 3;
* @return The enabled.
*/
boolean getEnabled();
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The domain.
*/
java.lang.String getDomain();
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The bytes for domain.
*/
com.google.protobuf.ByteString
getDomainBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.AttachedDomain}
*/
public static final class AttachedDomain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.AttachedDomain)
AttachedDomainOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachedDomain.newBuilder() to construct.
private AttachedDomain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachedDomain() {
domainId_ = "";
certificateId_ = "";
domain_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachedDomain();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachedDomain(
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();
domainId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
certificateId_ = s;
break;
}
case 24: {
enabled_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
domain_ = 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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder.class);
}
public static final int DOMAIN_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object domainId_;
/**
*
* ID of the domain.
*
*
* string domain_id = 1;
* @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 domain.
*
*
* string domain_id = 1;
* @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 CERTIFICATE_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object certificateId_;
/**
*
* ID of the domain certificate.
*
*
* string certificate_id = 2;
* @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 domain certificate.
*
*
* string certificate_id = 2;
* @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;
}
}
public static final int ENABLED_FIELD_NUMBER = 3;
private boolean enabled_;
/**
*
* Enabling flag.
*
*
* bool enabled = 3;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int DOMAIN_FIELD_NUMBER = 5;
private volatile java.lang.Object domain_;
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The domain.
*/
@java.lang.Override
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
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();
domain_ = s;
return s;
}
}
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The bytes for domain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = 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(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateId_);
}
if (enabled_ != false) {
output.writeBool(3, enabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, domain_);
}
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(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, enabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, domain_);
}
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.Apigateway.AttachedDomain)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain) obj;
if (!getDomainId()
.equals(other.getDomainId())) return false;
if (!getCertificateId()
.equals(other.getCertificateId())) return false;
if (getEnabled()
!= other.getEnabled()) return false;
if (!getDomain()
.equals(other.getDomain())) 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) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCertificateId().hashCode();
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
hash = (53 * hash) + getDomain().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.Apigateway.AttachedDomain 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.AttachedDomain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.AttachedDomain)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.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();
domainId_ = "";
certificateId_ = "";
enabled_ = false;
domain_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain(this);
result.domainId_ = domainId_;
result.certificateId_ = certificateId_;
result.enabled_ = enabled_;
result.domain_ = domain_;
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.Apigateway.AttachedDomain) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain.getDefaultInstance()) return this;
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
onChanged();
}
if (!other.getCertificateId().isEmpty()) {
certificateId_ = other.certificateId_;
onChanged();
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.getDomain().isEmpty()) {
domain_ = other.domain_;
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.Apigateway.AttachedDomain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* ID of the domain.
*
*
* string domain_id = 1;
* @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 domain.
*
*
* string domain_id = 1;
* @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 domain.
*
*
* string domain_id = 1;
* @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 domain.
*
*
* string domain_id = 1;
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* ID of the domain.
*
*
* string domain_id = 1;
* @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 certificateId_ = "";
/**
*
* ID of the domain certificate.
*
*
* string certificate_id = 2;
* @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 domain certificate.
*
*
* string certificate_id = 2;
* @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 domain certificate.
*
*
* string certificate_id = 2;
* @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 domain certificate.
*
*
* string certificate_id = 2;
* @return This builder for chaining.
*/
public Builder clearCertificateId() {
certificateId_ = getDefaultInstance().getCertificateId();
onChanged();
return this;
}
/**
*
* ID of the domain certificate.
*
*
* string certificate_id = 2;
* @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;
}
private boolean enabled_ ;
/**
*
* Enabling flag.
*
*
* bool enabled = 3;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
*
* Enabling flag.
*
*
* bool enabled = 3;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
*
* Enabling flag.
*
*
* bool enabled = 3;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private java.lang.Object domain_ = "";
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The domain.
*/
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return The bytes for domain.
*/
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @param value The domain to set.
* @return This builder for chaining.
*/
public Builder setDomain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domain_ = value;
onChanged();
return this;
}
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @return This builder for chaining.
*/
public Builder clearDomain() {
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
*
* Name of the domain.
*
*
* string domain = 5;
* @param value The bytes for domain to set.
* @return This builder for chaining.
*/
public Builder setDomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domain_ = 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.AttachedDomain)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.AttachedDomain)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.AttachedDomain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachedDomain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachedDomain(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.Apigateway.AttachedDomain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectivityOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.Connectivity)
com.google.protobuf.MessageOrBuilder {
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The networkId.
*/
java.lang.String getNetworkId();
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
com.google.protobuf.ByteString
getNetworkIdBytes();
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return A list containing the subnetId.
*/
java.util.List
getSubnetIdList();
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return The count of subnetId.
*/
int getSubnetIdCount();
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the element to return.
* @return The subnetId at the given index.
*/
java.lang.String getSubnetId(int index);
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the value to return.
* @return The bytes of the subnetId at the given index.
*/
com.google.protobuf.ByteString
getSubnetIdBytes(int index);
}
/**
*
* Gateway connectivity specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.Connectivity}
*/
public static final class Connectivity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.Connectivity)
ConnectivityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Connectivity.newBuilder() to construct.
private Connectivity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Connectivity() {
networkId_ = "";
subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Connectivity();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Connectivity(
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();
networkId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
subnetId_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
subnetId_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
subnetId_ = subnetId_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder.class);
}
public static final int NETWORK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object networkId_;
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The networkId.
*/
@java.lang.Override
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
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();
networkId_ = s;
return s;
}
}
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNET_ID_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList subnetId_;
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return A list containing the subnetId.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdList() {
return subnetId_;
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return The count of subnetId.
*/
public int getSubnetIdCount() {
return subnetId_.size();
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the element to return.
* @return The subnetId at the given index.
*/
public java.lang.String getSubnetId(int index) {
return subnetId_.get(index);
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the value to return.
* @return The bytes of the subnetId at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdBytes(int index) {
return subnetId_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_);
}
for (int i = 0; i < subnetId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetId_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_);
}
{
int dataSize = 0;
for (int i = 0; i < subnetId_.size(); i++) {
dataSize += computeStringSizeNoTag(subnetId_.getRaw(i));
}
size += dataSize;
size += 1 * getSubnetIdList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity) obj;
if (!getNetworkId()
.equals(other.getNetworkId())) return false;
if (!getSubnetIdList()
.equals(other.getSubnetIdList())) 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) + NETWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getNetworkId().hashCode();
if (getSubnetIdCount() > 0) {
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity 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.Apigateway.Connectivity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity 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.Apigateway.Connectivity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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.Apigateway.Connectivity 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;
}
/**
*
* Gateway connectivity specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.Connectivity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.Connectivity)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.ConnectivityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.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();
networkId_ = "";
subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity(this);
int from_bitField0_ = bitField0_;
result.networkId_ = networkId_;
if (((bitField0_ & 0x00000001) != 0)) {
subnetId_ = subnetId_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.subnetId_ = subnetId_;
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.Apigateway.Connectivity) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity.getDefaultInstance()) return this;
if (!other.getNetworkId().isEmpty()) {
networkId_ = other.networkId_;
onChanged();
}
if (!other.subnetId_.isEmpty()) {
if (subnetId_.isEmpty()) {
subnetId_ = other.subnetId_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSubnetIdIsMutable();
subnetId_.addAll(other.subnetId_);
}
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.Apigateway.Connectivity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object networkId_ = "";
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The networkId.
*/
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
networkId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @param value The networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
networkId_ = value;
onChanged();
return this;
}
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @return This builder for chaining.
*/
public Builder clearNetworkId() {
networkId_ = getDefaultInstance().getNetworkId();
onChanged();
return this;
}
/**
*
* Network the gateway will have access to.
* It's essential to specify network with subnets in all availability zones.
*
*
* string network_id = 1;
* @param value The bytes for networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
networkId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSubnetIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
subnetId_ = new com.google.protobuf.LazyStringArrayList(subnetId_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return A list containing the subnetId.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdList() {
return subnetId_.getUnmodifiableView();
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return The count of subnetId.
*/
public int getSubnetIdCount() {
return subnetId_.size();
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the element to return.
* @return The subnetId at the given index.
*/
public java.lang.String getSubnetId(int index) {
return subnetId_.get(index);
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index of the value to return.
* @return The bytes of the subnetId at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdBytes(int index) {
return subnetId_.getByteString(index);
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param index The index to set the value at.
* @param value The subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdIsMutable();
subnetId_.set(index, value);
onChanged();
return this;
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param value The subnetId to add.
* @return This builder for chaining.
*/
public Builder addSubnetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdIsMutable();
subnetId_.add(value);
onChanged();
return this;
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param values The subnetId to add.
* @return This builder for chaining.
*/
public Builder addAllSubnetId(
java.lang.Iterable values) {
ensureSubnetIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subnetId_);
onChanged();
return this;
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Complete list of subnets (from the same network) the gateway can be attached to.
* It's essential to specify at least one subnet for each availability zones.
*
*
* repeated string subnet_id = 2;
* @param value The bytes of the subnetId to add.
* @return This builder for chaining.
*/
public Builder addSubnetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSubnetIdIsMutable();
subnetId_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.apigateway.v1.Connectivity)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.Connectivity)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Connectivity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Connectivity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Connectivity(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.Apigateway.Connectivity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LogOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.LogOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Is logging from API gateway disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
boolean getDisabled();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return Whether the logGroupId field is set.
*/
boolean hasLogGroupId();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The logGroupId.
*/
java.lang.String getLogGroupId();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The bytes for logGroupId.
*/
com.google.protobuf.ByteString
getLogGroupIdBytes();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return Whether the folderId field is set.
*/
boolean hasFolderId();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
int getMinLevelValue();
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel();
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.DestinationCase getDestinationCase();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.LogOptions}
*/
public static final class LogOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.LogOptions)
LogOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogOptions.newBuilder() to construct.
private LogOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogOptions() {
minLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LogOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LogOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
disabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
destinationCase_ = 2;
destination_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
destinationCase_ = 3;
destination_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
minLevel_ = 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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder.class);
}
private int destinationCase_ = 0;
private java.lang.Object destination_;
public enum DestinationCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOG_GROUP_ID(2),
FOLDER_ID(3),
DESTINATION_NOT_SET(0);
private final int value;
private DestinationCase(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 DestinationCase valueOf(int value) {
return forNumber(value);
}
public static DestinationCase forNumber(int value) {
switch (value) {
case 2: return LOG_GROUP_ID;
case 3: return FOLDER_ID;
case 0: return DESTINATION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DestinationCase
getDestinationCase() {
return DestinationCase.forNumber(
destinationCase_);
}
public static final int DISABLED_FIELD_NUMBER = 1;
private boolean disabled_;
/**
*
* Is logging from API gateway disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int LOG_GROUP_ID_FIELD_NUMBER = 2;
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return Whether the logGroupId field is set.
*/
public boolean hasLogGroupId() {
return destinationCase_ == 2;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The logGroupId.
*/
public java.lang.String getLogGroupId() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
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 (destinationCase_ == 2) {
destination_ = s;
}
return s;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The bytes for logGroupId.
*/
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 2) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 3;
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return Whether the folderId field is set.
*/
public boolean hasFolderId() {
return destinationCase_ == 3;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
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 (destinationCase_ == 3) {
destination_ = s;
}
return s;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 3) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MIN_LEVEL_FIELD_NUMBER = 4;
private int minLevel_;
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
@java.lang.Override public int getMinLevelValue() {
return minLevel_;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
@java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() {
@SuppressWarnings("deprecation")
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_);
return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.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 (disabled_ != false) {
output.writeBool(1, disabled_);
}
if (destinationCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_);
}
if (destinationCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_);
}
if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(4, minLevel_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, disabled_);
}
if (destinationCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_);
}
if (destinationCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_);
}
if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, minLevel_);
}
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.Apigateway.LogOptions)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions) obj;
if (getDisabled()
!= other.getDisabled()) return false;
if (minLevel_ != other.minLevel_) return false;
if (!getDestinationCase().equals(other.getDestinationCase())) return false;
switch (destinationCase_) {
case 2:
if (!getLogGroupId()
.equals(other.getLogGroupId())) return false;
break;
case 3:
if (!getFolderId()
.equals(other.getFolderId())) 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) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisabled());
hash = (37 * hash) + MIN_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + minLevel_;
switch (destinationCase_) {
case 2:
hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getLogGroupId().hashCode();
break;
case 3:
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions 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.Apigateway.LogOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions 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.Apigateway.LogOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.Apigateway.LogOptions 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.LogOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.LogOptions)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.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();
disabled_ = false;
minLevel_ = 0;
destinationCase_ = 0;
destination_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions(this);
result.disabled_ = disabled_;
if (destinationCase_ == 2) {
result.destination_ = destination_;
}
if (destinationCase_ == 3) {
result.destination_ = destination_;
}
result.minLevel_ = minLevel_;
result.destinationCase_ = destinationCase_;
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.Apigateway.LogOptions) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions.getDefaultInstance()) return this;
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (other.minLevel_ != 0) {
setMinLevelValue(other.getMinLevelValue());
}
switch (other.getDestinationCase()) {
case LOG_GROUP_ID: {
destinationCase_ = 2;
destination_ = other.destination_;
onChanged();
break;
}
case FOLDER_ID: {
destinationCase_ = 3;
destination_ = other.destination_;
onChanged();
break;
}
case DESTINATION_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.Apigateway.LogOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int destinationCase_ = 0;
private java.lang.Object destination_;
public DestinationCase
getDestinationCase() {
return DestinationCase.forNumber(
destinationCase_);
}
public Builder clearDestination() {
destinationCase_ = 0;
destination_ = null;
onChanged();
return this;
}
private boolean disabled_ ;
/**
*
* Is logging from API gateway disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
* Is logging from API gateway disabled.
*
*
* bool disabled = 1;
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
onChanged();
return this;
}
/**
*
* Is logging from API gateway disabled.
*
*
* bool disabled = 1;
* @return This builder for chaining.
*/
public Builder clearDisabled() {
disabled_ = false;
onChanged();
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return Whether the logGroupId field is set.
*/
@java.lang.Override
public boolean hasLogGroupId() {
return destinationCase_ == 2;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The logGroupId.
*/
@java.lang.Override
public java.lang.String getLogGroupId() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 2) {
destination_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return The bytes for logGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 2) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @param value The logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationCase_ = 2;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @return This builder for chaining.
*/
public Builder clearLogGroupId() {
if (destinationCase_ == 2) {
destinationCase_ = 0;
destination_ = null;
onChanged();
}
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2;
* @param value The bytes for logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationCase_ = 2;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return Whether the folderId field is set.
*/
@java.lang.Override
public boolean hasFolderId() {
return destinationCase_ == 3;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 3) {
destination_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 3) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationCase_ = 3;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
if (destinationCase_ == 3) {
destinationCase_ = 0;
destination_ = null;
onChanged();
}
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3;
* @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);
destinationCase_ = 3;
destination_ = value;
onChanged();
return this;
}
private int minLevel_ = 0;
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
@java.lang.Override public int getMinLevelValue() {
return minLevel_;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @param value The enum numeric value on the wire for minLevel to set.
* @return This builder for chaining.
*/
public Builder setMinLevelValue(int value) {
minLevel_ = value;
onChanged();
return this;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
@java.lang.Override
public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() {
@SuppressWarnings("deprecation")
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_);
return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @param value The minLevel to set.
* @return This builder for chaining.
*/
public Builder setMinLevel(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value) {
if (value == null) {
throw new NullPointerException();
}
minLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return This builder for chaining.
*/
public Builder clearMinLevel() {
minLevel_ = 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.LogOptions)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.LogOptions)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.LogOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LogOptions(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.Apigateway.LogOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CanaryOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.Canary)
com.google.protobuf.MessageOrBuilder {
/**
*
* It describes percentage of requests, which will be processed by canary.
*
*
* int64 weight = 1 [(.yandex.cloud.value) = "1-99"];
* @return The weight.
*/
long getWeight();
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
int getVariablesCount();
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
boolean containsVariables(
java.lang.String key);
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getVariables();
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
java.util.Map
getVariablesMap();
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrDefault(
java.lang.String key,
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput defaultValue);
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getVariablesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.Canary}
*/
public static final class Canary extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.Canary)
CanaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Canary.newBuilder() to construct.
private Canary(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Canary() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Canary();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Canary(
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 8: {
weight_ = input.readInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variables_.getMutableMap().put(
variables__.getKey(), variables__.getValue());
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder.class);
}
public static final int WEIGHT_FIELD_NUMBER = 1;
private long weight_;
/**
*
* It describes percentage of requests, which will be processed by canary.
*
*
* int64 weight = 1 [(.yandex.cloud.value) = "1-99"];
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
public static final int VARIABLES_FIELD_NUMBER = 2;
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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);
}
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 (weight_ != 0L) {
output.writeInt64(1, weight_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (weight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, weight_);
}
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(2, variables__);
}
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.Apigateway.Canary)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary) obj;
if (getWeight()
!= other.getWeight()) return false;
if (!internalGetVariables().equals(
other.internalGetVariables())) 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) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWeight());
if (!internalGetVariables().getMap().isEmpty()) {
hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + internalGetVariables().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary 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.Apigateway.Canary parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary 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.Apigateway.Canary parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Apigateway.Canary 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.Canary}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.Canary)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.CanaryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.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();
weight_ = 0L;
internalGetMutableVariables().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary(this);
int from_bitField0_ = bitField0_;
result.weight_ = weight_;
result.variables_ = internalGetVariables();
result.variables_.makeImmutable();
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.Apigateway.Canary) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary.getDefaultInstance()) return this;
if (other.getWeight() != 0L) {
setWeight(other.getWeight());
}
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
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.Apigateway.Canary parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long weight_ ;
/**
*
* It describes percentage of requests, which will be processed by canary.
*
*
* int64 weight = 1 [(.yandex.cloud.value) = "1-99"];
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
/**
*
* It describes percentage of requests, which will be processed by canary.
*
*
* int64 weight = 1 [(.yandex.cloud.value) = "1-99"];
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(long value) {
weight_ = value;
onChanged();
return this;
}
/**
*
* It describes percentage of requests, which will be processed by canary.
*
*
* int64 weight = 1 [(.yandex.cloud.value) = "1-99"];
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0L;
onChanged();
return this;
}
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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* Values specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
@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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
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 specification variables, associated with canary.
*
*
* map<string, .yandex.cloud.serverless.apigateway.v1.VariableInput> variables = 2 [(.yandex.cloud.size) = ">0"];
*/
public Builder putAllVariables(
java.util.Map values) {
internalGetMutableVariables().getMutableMap()
.putAll(values);
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.Canary)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.Canary)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.Canary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Canary parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Canary(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.Apigateway.Canary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VariableInputOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.apigateway.v1.VariableInput)
com.google.protobuf.MessageOrBuilder {
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
boolean hasStringValue();
/**
* string string_value = 1;
* @return The stringValue.
*/
java.lang.String getStringValue();
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
com.google.protobuf.ByteString
getStringValueBytes();
/**
* int64 int_value = 2;
* @return Whether the intValue field is set.
*/
boolean hasIntValue();
/**
* int64 int_value = 2;
* @return The intValue.
*/
long getIntValue();
/**
* double double_value = 3;
* @return Whether the doubleValue field is set.
*/
boolean hasDoubleValue();
/**
* double double_value = 3;
* @return The doubleValue.
*/
double getDoubleValue();
/**
* bool bool_value = 4;
* @return Whether the boolValue field is set.
*/
boolean hasBoolValue();
/**
* bool bool_value = 4;
* @return The boolValue.
*/
boolean getBoolValue();
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.VariableValueCase getVariableValueCase();
}
/**
* Protobuf type {@code yandex.cloud.serverless.apigateway.v1.VariableInput}
*/
public static final class VariableInput extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.apigateway.v1.VariableInput)
VariableInputOrBuilder {
private static final long serialVersionUID = 0L;
// Use VariableInput.newBuilder() to construct.
private VariableInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VariableInput() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VariableInput();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VariableInput(
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();
variableValueCase_ = 1;
variableValue_ = s;
break;
}
case 16: {
variableValue_ = input.readInt64();
variableValueCase_ = 2;
break;
}
case 25: {
variableValue_ = input.readDouble();
variableValueCase_ = 3;
break;
}
case 32: {
variableValue_ = input.readBool();
variableValueCase_ = 4;
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.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.Builder.class);
}
private int variableValueCase_ = 0;
private java.lang.Object variableValue_;
public enum VariableValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STRING_VALUE(1),
INT_VALUE(2),
DOUBLE_VALUE(3),
BOOL_VALUE(4),
VARIABLEVALUE_NOT_SET(0);
private final int value;
private VariableValueCase(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 VariableValueCase valueOf(int value) {
return forNumber(value);
}
public static VariableValueCase forNumber(int value) {
switch (value) {
case 1: return STRING_VALUE;
case 2: return INT_VALUE;
case 3: return DOUBLE_VALUE;
case 4: return BOOL_VALUE;
case 0: return VARIABLEVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VariableValueCase
getVariableValueCase() {
return VariableValueCase.forNumber(
variableValueCase_);
}
public static final int STRING_VALUE_FIELD_NUMBER = 1;
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
public boolean hasStringValue() {
return variableValueCase_ == 1;
}
/**
* string string_value = 1;
* @return The stringValue.
*/
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (variableValueCase_ == 1) {
ref = variableValue_;
}
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 (variableValueCase_ == 1) {
variableValue_ = s;
}
return s;
}
}
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (variableValueCase_ == 1) {
ref = variableValue_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (variableValueCase_ == 1) {
variableValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INT_VALUE_FIELD_NUMBER = 2;
/**
* int64 int_value = 2;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return variableValueCase_ == 2;
}
/**
* int64 int_value = 2;
* @return The intValue.
*/
@java.lang.Override
public long getIntValue() {
if (variableValueCase_ == 2) {
return (java.lang.Long) variableValue_;
}
return 0L;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
/**
* double double_value = 3;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return variableValueCase_ == 3;
}
/**
* double double_value = 3;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
if (variableValueCase_ == 3) {
return (java.lang.Double) variableValue_;
}
return 0D;
}
public static final int BOOL_VALUE_FIELD_NUMBER = 4;
/**
* bool bool_value = 4;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return variableValueCase_ == 4;
}
/**
* bool bool_value = 4;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
if (variableValueCase_ == 4) {
return (java.lang.Boolean) variableValue_;
}
return false;
}
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 (variableValueCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, variableValue_);
}
if (variableValueCase_ == 2) {
output.writeInt64(
2, (long)((java.lang.Long) variableValue_));
}
if (variableValueCase_ == 3) {
output.writeDouble(
3, (double)((java.lang.Double) variableValue_));
}
if (variableValueCase_ == 4) {
output.writeBool(
4, (boolean)((java.lang.Boolean) variableValue_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (variableValueCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, variableValue_);
}
if (variableValueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
2, (long)((java.lang.Long) variableValue_));
}
if (variableValueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
3, (double)((java.lang.Double) variableValue_));
}
if (variableValueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
4, (boolean)((java.lang.Boolean) variableValue_));
}
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.Apigateway.VariableInput)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput other = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput) obj;
if (!getVariableValueCase().equals(other.getVariableValueCase())) return false;
switch (variableValueCase_) {
case 1:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 2:
if (getIntValue()
!= other.getIntValue()) return false;
break;
case 3:
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
break;
case 4:
if (getBoolValue()
!= other.getBoolValue()) 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();
switch (variableValueCase_) {
case 1:
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 2:
hash = (37 * hash) + INT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIntValue());
break;
case 3:
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
break;
case 4:
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput 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.Apigateway.VariableInput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput 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.Apigateway.VariableInput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.Apigateway.VariableInput 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.VariableInput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.apigateway.v1.VariableInput)
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.class, yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.Builder.class);
}
// Construct using yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.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();
variableValueCase_ = 0;
variableValue_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getDefaultInstanceForType() {
return yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput build() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput buildPartial() {
yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput result = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput(this);
if (variableValueCase_ == 1) {
result.variableValue_ = variableValue_;
}
if (variableValueCase_ == 2) {
result.variableValue_ = variableValue_;
}
if (variableValueCase_ == 3) {
result.variableValue_ = variableValue_;
}
if (variableValueCase_ == 4) {
result.variableValue_ = variableValue_;
}
result.variableValueCase_ = variableValueCase_;
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.Apigateway.VariableInput) {
return mergeFrom((yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput other) {
if (other == yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput.getDefaultInstance()) return this;
switch (other.getVariableValueCase()) {
case STRING_VALUE: {
variableValueCase_ = 1;
variableValue_ = other.variableValue_;
onChanged();
break;
}
case INT_VALUE: {
setIntValue(other.getIntValue());
break;
}
case DOUBLE_VALUE: {
setDoubleValue(other.getDoubleValue());
break;
}
case BOOL_VALUE: {
setBoolValue(other.getBoolValue());
break;
}
case VARIABLEVALUE_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.Apigateway.VariableInput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int variableValueCase_ = 0;
private java.lang.Object variableValue_;
public VariableValueCase
getVariableValueCase() {
return VariableValueCase.forNumber(
variableValueCase_);
}
public Builder clearVariableValue() {
variableValueCase_ = 0;
variableValue_ = null;
onChanged();
return this;
}
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return variableValueCase_ == 1;
}
/**
* string string_value = 1;
* @return The stringValue.
*/
@java.lang.Override
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (variableValueCase_ == 1) {
ref = variableValue_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (variableValueCase_ == 1) {
variableValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (variableValueCase_ == 1) {
ref = variableValue_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (variableValueCase_ == 1) {
variableValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string string_value = 1;
* @param value The stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
variableValueCase_ = 1;
variableValue_ = value;
onChanged();
return this;
}
/**
* string string_value = 1;
* @return This builder for chaining.
*/
public Builder clearStringValue() {
if (variableValueCase_ == 1) {
variableValueCase_ = 0;
variableValue_ = null;
onChanged();
}
return this;
}
/**
* string string_value = 1;
* @param value The bytes for stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
variableValueCase_ = 1;
variableValue_ = value;
onChanged();
return this;
}
/**
* int64 int_value = 2;
* @return Whether the intValue field is set.
*/
public boolean hasIntValue() {
return variableValueCase_ == 2;
}
/**
* int64 int_value = 2;
* @return The intValue.
*/
public long getIntValue() {
if (variableValueCase_ == 2) {
return (java.lang.Long) variableValue_;
}
return 0L;
}
/**
* int64 int_value = 2;
* @param value The intValue to set.
* @return This builder for chaining.
*/
public Builder setIntValue(long value) {
variableValueCase_ = 2;
variableValue_ = value;
onChanged();
return this;
}
/**
* int64 int_value = 2;
* @return This builder for chaining.
*/
public Builder clearIntValue() {
if (variableValueCase_ == 2) {
variableValueCase_ = 0;
variableValue_ = null;
onChanged();
}
return this;
}
/**
* double double_value = 3;
* @return Whether the doubleValue field is set.
*/
public boolean hasDoubleValue() {
return variableValueCase_ == 3;
}
/**
* double double_value = 3;
* @return The doubleValue.
*/
public double getDoubleValue() {
if (variableValueCase_ == 3) {
return (java.lang.Double) variableValue_;
}
return 0D;
}
/**
* double double_value = 3;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
variableValueCase_ = 3;
variableValue_ = value;
onChanged();
return this;
}
/**
* double double_value = 3;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
if (variableValueCase_ == 3) {
variableValueCase_ = 0;
variableValue_ = null;
onChanged();
}
return this;
}
/**
* bool bool_value = 4;
* @return Whether the boolValue field is set.
*/
public boolean hasBoolValue() {
return variableValueCase_ == 4;
}
/**
* bool bool_value = 4;
* @return The boolValue.
*/
public boolean getBoolValue() {
if (variableValueCase_ == 4) {
return (java.lang.Boolean) variableValue_;
}
return false;
}
/**
* bool bool_value = 4;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
variableValueCase_ = 4;
variableValue_ = value;
onChanged();
return this;
}
/**
* bool bool_value = 4;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
if (variableValueCase_ == 4) {
variableValueCase_ = 0;
variableValue_ = null;
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.VariableInput)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.apigateway.v1.VariableInput)
private static final yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput();
}
public static yandex.cloud.api.serverless.apigateway.v1.Apigateway.VariableInput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VariableInput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VariableInput(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.Apigateway.VariableInput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_VariablesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_VariablesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_VariablesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_VariablesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n6yandex/cloud/serverless/apigateway/v1/" +
"apigateway.proto\022%yandex.cloud.serverles" +
"s.apigateway.v1\032\037google/protobuf/timesta" +
"mp.proto\032\'yandex/cloud/logging/v1/log_en" +
"try.proto\032\035yandex/cloud/validation.proto" +
"\"\257\007\n\nApiGateway\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id" +
"\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google.prot" +
"obuf.Timestamp\022\014\n\004name\030\004 \001(\t\022\023\n\013descript" +
"ion\030\005 \001(\t\022M\n\006labels\030\007 \003(\0132=.yandex.cloud" +
".serverless.apigateway.v1.ApiGateway.Lab" +
"elsEntry\022H\n\006status\030\010 \001(\01628.yandex.cloud." +
"serverless.apigateway.v1.ApiGateway.Stat" +
"us\022\016\n\006domain\030\t \001(\t\022\024\n\014log_group_id\030\n \001(\t" +
"\022O\n\020attached_domains\030\013 \003(\01325.yandex.clou" +
"d.serverless.apigateway.v1.AttachedDomai" +
"n\022I\n\014connectivity\030\014 \001(\01323.yandex.cloud.s" +
"erverless.apigateway.v1.Connectivity\022F\n\013" +
"log_options\030\r \001(\01321.yandex.cloud.serverl" +
"ess.apigateway.v1.LogOptions\022S\n\tvariable" +
"s\030\016 \003(\[email protected]" +
"eway.v1.ApiGateway.VariablesEntry\022=\n\006can" +
"ary\030\017 \001(\0132-.yandex.cloud.serverless.apig" +
"ateway.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\016VariablesEntr" +
"y\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.yandex.c" +
"loud.serverless.apigateway.v1.VariableIn" +
"put:\0028\001\"a\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020" +
"\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020" +
"\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005\"\\\n\016AttachedDo" +
"main\022\021\n\tdomain_id\030\001 \001(\t\022\026\n\016certificate_i" +
"d\030\002 \001(\t\022\017\n\007enabled\030\003 \001(\010\022\016\n\006domain\030\005 \001(\t" +
"\"5\n\014Connectivity\022\022\n\nnetwork_id\030\001 \001(\t\022\021\n\t" +
"subnet_id\030\002 \003(\t\"\226\001\n\nLogOptions\022\020\n\010disabl" +
"ed\030\001 \001(\010\022\026\n\014log_group_id\030\002 \001(\tH\000\022\023\n\tfold" +
"er_id\030\003 \001(\tH\000\022:\n\tmin_level\030\004 \001(\0162\'.yande" +
"x.cloud.logging.v1.LogLevel.LevelB\r\n\013des" +
"tination\"\343\001\n\006Canary\022\030\n\006weight\030\001 \001(\003B\010\372\3071" +
"\0041-99\022W\n\tvariables\030\002 \003(\0132<.yandex.cloud." +
"serverless.apigateway.v1.Canary.Variable" +
"sEntryB\006\202\3101\002>0\032f\n\016VariablesEntry\022\013\n\003key\030" +
"\001 \001(\t\022C\n\005value\030\002 \001(\01324.yandex.cloud.serv" +
"erless.apigateway.v1.VariableInput:\0028\001\"|" +
"\n\rVariableInput\022\026\n\014string_value\030\001 \001(\tH\000\022" +
"\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001" +
"(\001H\000\022\024\n\nbool_value\030\004 \001(\010H\000B\020\n\016variable_v" +
"alueB\201\001\n)yandex.cloud.api.serverless.api" +
"gateway.v1ZTgithub.com/yandex-cloud/go-g" +
"enproto/yandex/cloud/serverless/apigatew" +
"ay/v1;apigatewayb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Status", "Domain", "LogGroupId", "AttachedDomains", "Connectivity", "LogOptions", "Variables", "Canary", });
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_LabelsEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_VariablesEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_VariablesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_ApiGateway_VariablesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_AttachedDomain_descriptor,
new java.lang.String[] { "DomainId", "CertificateId", "Enabled", "Domain", });
internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_Connectivity_descriptor,
new java.lang.String[] { "NetworkId", "SubnetId", });
internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_LogOptions_descriptor,
new java.lang.String[] { "Disabled", "LogGroupId", "FolderId", "MinLevel", "Destination", });
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor,
new java.lang.String[] { "Weight", "Variables", });
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_VariablesEntry_descriptor =
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_VariablesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_Canary_VariablesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_apigateway_v1_VariableInput_descriptor,
new java.lang.String[] { "StringValue", "IntValue", "DoubleValue", "BoolValue", "VariableValue", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.size);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy