Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* ID of the application load balancer to return.
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer to return.
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer to return.
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer to return.
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.GetLoadBalancerRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.GetLoadBalancerRequest)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.GetLoadBalancerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.GetLoadBalancerRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.GetLoadBalancerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLoadBalancerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLoadBalancerRequest(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.GetLoadBalancerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListLoadBalancersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListLoadBalancersResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest}
*/
public static final class ListLoadBalancersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest)
ListLoadBalancersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListLoadBalancersRequest.newBuilder() to construct.
private ListLoadBalancersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListLoadBalancersRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListLoadBalancersRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListLoadBalancersRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListLoadBalancersResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest 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.apploadbalancer.v1.ListLoadBalancersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list application load balancers in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListLoadBalancersResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListLoadBalancersResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListLoadBalancersResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListLoadBalancersResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters application load balancers listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on [LoadBalancer.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-load-balancer`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.ListLoadBalancersRequest)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListLoadBalancersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListLoadBalancersRequest(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListLoadBalancersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of application load balancers in the specified folder.
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse}
*/
public static final class ListLoadBalancersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse)
ListLoadBalancersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListLoadBalancersResponse.newBuilder() to construct.
private ListLoadBalancersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListLoadBalancersResponse() {
loadBalancers_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListLoadBalancersResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListLoadBalancersResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
loadBalancers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
loadBalancers_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.LoadBalancer.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
loadBalancers_ = java.util.Collections.unmodifiableList(loadBalancers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.Builder.class);
}
public static final int LOAD_BALANCERS_FIELD_NUMBER = 1;
private java.util.List loadBalancers_;
/**
*
* List of application load balancers in the specified folder.
*
* List of application load balancers in the specified folder.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.LoadBalancer load_balancers = 1;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.LoadBalancerOrBuilder getLoadBalancersOrBuilder(
int index) {
return loadBalancers_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < loadBalancers_.size(); i++) {
output.writeMessage(1, loadBalancers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < loadBalancers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, loadBalancers_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse) obj;
if (!getLoadBalancersList()
.equals(other.getLoadBalancersList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLoadBalancersCount() > 0) {
hash = (37 * hash) + LOAD_BALANCERS_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancersList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse 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.apploadbalancer.v1.ListLoadBalancersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLoadBalancersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (loadBalancersBuilder_ == null) {
loadBalancers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
loadBalancersBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListLoadBalancersResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse(this);
int from_bitField0_ = bitField0_;
if (loadBalancersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
loadBalancers_ = java.util.Collections.unmodifiableList(loadBalancers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.loadBalancers_ = loadBalancers_;
} else {
result.loadBalancers_ = loadBalancersBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse.getDefaultInstance()) return this;
if (loadBalancersBuilder_ == null) {
if (!other.loadBalancers_.isEmpty()) {
if (loadBalancers_.isEmpty()) {
loadBalancers_ = other.loadBalancers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLoadBalancersIsMutable();
loadBalancers_.addAll(other.loadBalancers_);
}
onChanged();
}
} else {
if (!other.loadBalancers_.isEmpty()) {
if (loadBalancersBuilder_.isEmpty()) {
loadBalancersBuilder_.dispose();
loadBalancersBuilder_ = null;
loadBalancers_ = other.loadBalancers_;
bitField0_ = (bitField0_ & ~0x00000001);
loadBalancersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLoadBalancersFieldBuilder() : null;
} else {
loadBalancersBuilder_.addAllMessages(other.loadBalancers_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List loadBalancers_ =
java.util.Collections.emptyList();
private void ensureLoadBalancersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
loadBalancers_ = new java.util.ArrayList(loadBalancers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.LoadBalancer, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.LoadBalancer.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.LoadBalancerOrBuilder> loadBalancersBuilder_;
/**
*
* List of application load balancers in the specified folder.
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListLoadBalancersRequest.page_size], use `next_page_token` as the value
* for the [ListLoadBalancersRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.ListLoadBalancersResponse)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListLoadBalancersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListLoadBalancersResponse(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListLoadBalancersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteLoadBalancerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.DeleteLoadBalancerRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer to delete.
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 7;
* @return Whether the allocationPolicy field is set.
*/
boolean hasAllocationPolicy();
/**
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 9;
* @return Whether the autoScalePolicy field is set.
*/
boolean hasAutoScalePolicy();
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 5;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateLoadBalancerRequest_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();
}
/**
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int LISTENER_SPECS_FIELD_NUMBER = 6;
private java.util.List listenerSpecs_;
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
@java.lang.Override
public int getListenerSpecsCount() {
return listenerSpecs_.size();
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder getListenerSpecsOrBuilder(
int index) {
return listenerSpecs_.get(index);
}
public static final int ALLOCATION_POLICY_FIELD_NUMBER = 7;
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy allocationPolicy_;
/**
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 7;
* @return Whether the allocationPolicy field is set.
*/
@java.lang.Override
public boolean hasAllocationPolicy() {
return allocationPolicy_ != null;
}
/**
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
return getAllocationPolicy();
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
public static final int AUTO_SCALE_POLICY_FIELD_NUMBER = 9;
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy autoScalePolicy_;
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 9;
* @return Whether the autoScalePolicy field is set.
*/
@java.lang.Override
public boolean hasAutoScalePolicy() {
return autoScalePolicy_ != null;
}
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 9;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicyOrBuilder getAutoScalePolicyOrBuilder() {
return getAutoScalePolicy();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 10;
private yandex.cloud.api.apploadbalancer.v1.Logging.LogOptions logOptions_;
/**
*
* Cloud logging settings of the application load balancer.
*
*
* .yandex.cloud.apploadbalancer.v1.LogOptions log_options = 10;
* @return Whether the logOptions field is set.
*/
@java.lang.Override
public boolean hasLogOptions() {
return logOptions_ != null;
}
/**
*
* Cloud logging settings of the application load balancer.
*
* New name for the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New name for the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* New name for the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* New name for the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* New description of the application load balancer.
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* New description of the application load balancer.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [LoadBalancerService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public int getListenerSpecsCount() {
if (listenerSpecsBuilder_ == null) {
return listenerSpecs_.size();
} else {
return listenerSpecsBuilder_.getCount();
}
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public Builder setListenerSpecs(
int index, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.set(index, value);
onChanged();
} else {
listenerSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public Builder addListenerSpecs(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.add(value);
onChanged();
} else {
listenerSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public Builder addListenerSpecs(
int index, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.add(index, value);
onChanged();
} else {
listenerSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.Builder getListenerSpecsBuilder(
int index) {
return getListenerSpecsFieldBuilder().getBuilder(index);
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder getListenerSpecsOrBuilder(
int index) {
if (listenerSpecsBuilder_ == null) {
return listenerSpecs_.get(index); } else {
return listenerSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New listeners for the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
* Existing list of listeners is completely replaced by the specified list, so if you just want to add, update,
* or remove a listener, make a [LoadBalancerService.AddListener] request,
* a [LoadBalancerService.UpdateListener] request, or a [LoadBalancerService.RemoveListener] request.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 7;
* @return Whether the allocationPolicy field is set.
*/
public boolean hasAllocationPolicy() {
return allocationPolicyBuilder_ != null || allocationPolicy_ != null;
}
/**
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 7;
*/
public Builder setAllocationPolicy(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy value) {
if (allocationPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allocationPolicy_ = value;
onChanged();
} else {
allocationPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* New locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
* Existing locality settings are completely replaced by the specified settings,
* so if you just want to add or remove an allocation policy:
* 1. Get the current settings with a [LoadBalancerService.Get] request.
* 2. Add or remove a policy in this set.
* 3. Send the new set in this field.
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
* ID's of new security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
* Existing list of security groups is completely replaced by the specified list,
* so if you just want to add or remove an allocation policy:
* 1. Get the current set of security groups with a [LoadBalancerService.Get] request.
* 2. Add or remove a group in this set.
* 3. Send the new set in this field.
*
*
* repeated string security_group_ids = 8;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy autoScalePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicyOrBuilder> autoScalePolicyBuilder_;
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 9;
* @return Whether the autoScalePolicy field is set.
*/
public boolean hasAutoScalePolicy() {
return autoScalePolicyBuilder_ != null || autoScalePolicy_ != null;
}
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 9;
*/
public Builder setAutoScalePolicy(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy value) {
if (autoScalePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoScalePolicy_ = value;
onChanged();
} else {
autoScalePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* New scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* ID of the application load balancer that is being updated.
*
*
* string load_balancer_id = 1;
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer that is being updated.
*
*
* string load_balancer_id = 1;
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being updated.
*
*
* string load_balancer_id = 1;
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being updated.
*
*
* string load_balancer_id = 1;
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.UpdateLoadBalancerMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.UpdateLoadBalancerMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.UpdateLoadBalancerMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.UpdateLoadBalancerMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.UpdateLoadBalancerMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateLoadBalancerMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateLoadBalancerMetadata(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.UpdateLoadBalancerMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateLoadBalancerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.CreateLoadBalancerRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @return The bytes for networkId.
*/
com.google.protobuf.ByteString
getNetworkIdBytes();
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 8;
* @return Whether the allocationPolicy field is set.
*/
boolean hasAllocationPolicy();
/**
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 10;
* @return Whether the autoScalePolicy field is set.
*/
boolean hasAutoScalePolicy();
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Cloud logging settings of the application load balancer.
*
*
* .yandex.cloud.apploadbalancer.v1.LogOptions log_options = 11;
*/
yandex.cloud.api.apploadbalancer.v1.Logging.LogOptionsOrBuilder getLogOptionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.CreateLoadBalancerRequest}
*/
public static final class CreateLoadBalancerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.CreateLoadBalancerRequest)
CreateLoadBalancerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLoadBalancerRequest.newBuilder() to construct.
private CreateLoadBalancerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateLoadBalancerRequest() {
folderId_ = "";
name_ = "";
description_ = "";
regionId_ = "";
networkId_ = "";
listenerSpecs_ = java.util.Collections.emptyList();
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateLoadBalancerRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateLoadBalancerRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
regionId_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
networkId_ = s;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
listenerSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
listenerSpecs_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.parser(), extensionRegistry));
break;
}
case 66: {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy.Builder subBuilder = null;
if (allocationPolicy_ != null) {
subBuilder = allocationPolicy_.toBuilder();
}
allocationPolicy_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(allocationPolicy_);
allocationPolicy_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
securityGroupIds_.add(s);
break;
}
case 82: {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy.Builder subBuilder = null;
if (autoScalePolicy_ != null) {
subBuilder = autoScalePolicy_.toBuilder();
}
autoScalePolicy_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoScalePolicy_);
autoScalePolicy_ = subBuilder.buildPartial();
}
break;
}
case 90: {
yandex.cloud.api.apploadbalancer.v1.Logging.LogOptions.Builder subBuilder = null;
if (logOptions_ != null) {
subBuilder = logOptions_.toBuilder();
}
logOptions_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.Logging.LogOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logOptions_);
logOptions_ = 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)) {
listenerSpecs_ = java.util.Collections.unmodifiableList(listenerSpecs_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_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();
}
/**
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int REGION_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object regionId_;
/**
*
* ID of the region that the application load balancer is located at.
* The only supported value is `ru-central1`.
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @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 LISTENER_SPECS_FIELD_NUMBER = 7;
private java.util.List listenerSpecs_;
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
@java.lang.Override
public int getListenerSpecsCount() {
return listenerSpecs_.size();
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder getListenerSpecsOrBuilder(
int index) {
return listenerSpecs_.get(index);
}
public static final int ALLOCATION_POLICY_FIELD_NUMBER = 8;
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy allocationPolicy_;
/**
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 8;
* @return Whether the allocationPolicy field is set.
*/
@java.lang.Override
public boolean hasAllocationPolicy() {
return allocationPolicy_ != null;
}
/**
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 8;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
return getAllocationPolicy();
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
public static final int AUTO_SCALE_POLICY_FIELD_NUMBER = 10;
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy autoScalePolicy_;
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 10;
* @return Whether the autoScalePolicy field is set.
*/
@java.lang.Override
public boolean hasAutoScalePolicy() {
return autoScalePolicy_ != null;
}
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 10;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicyOrBuilder getAutoScalePolicyOrBuilder() {
return getAutoScalePolicy();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 11;
private yandex.cloud.api.apploadbalancer.v1.Logging.LogOptions logOptions_;
/**
*
* Cloud logging settings of the application load balancer.
*
*
* .yandex.cloud.apploadbalancer.v1.LogOptions log_options = 11;
* @return Whether the logOptions field is set.
*/
@java.lang.Override
public boolean hasLogOptions() {
return logOptions_ != null;
}
/**
*
* Cloud logging settings of the application load balancer.
*
* Cloud logging settings of the application load balancer.
*
*
* .yandex.cloud.apploadbalancer.v1.LogOptions log_options = 11;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.Logging.LogOptionsOrBuilder getLogOptionsOrBuilder() {
return getLogOptions();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, networkId_);
}
for (int i = 0; i < listenerSpecs_.size(); i++) {
output.writeMessage(7, listenerSpecs_.get(i));
}
if (allocationPolicy_ != null) {
output.writeMessage(8, getAllocationPolicy());
}
for (int i = 0; i < securityGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, securityGroupIds_.getRaw(i));
}
if (autoScalePolicy_ != null) {
output.writeMessage(10, getAutoScalePolicy());
}
if (logOptions_ != null) {
output.writeMessage(11, getLogOptions());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, networkId_);
}
for (int i = 0; i < listenerSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, listenerSpecs_.get(i));
}
if (allocationPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAllocationPolicy());
}
{
int dataSize = 0;
for (int i = 0; i < securityGroupIds_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupIdsList().size();
}
if (autoScalePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAutoScalePolicy());
}
if (logOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getLogOptions());
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getRegionId()
.equals(other.getRegionId())) return false;
if (!getNetworkId()
.equals(other.getNetworkId())) return false;
if (!getListenerSpecsList()
.equals(other.getListenerSpecsList())) return false;
if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false;
if (hasAllocationPolicy()) {
if (!getAllocationPolicy()
.equals(other.getAllocationPolicy())) return false;
}
if (!getSecurityGroupIdsList()
.equals(other.getSecurityGroupIdsList())) return false;
if (hasAutoScalePolicy() != other.hasAutoScalePolicy()) return false;
if (hasAutoScalePolicy()) {
if (!getAutoScalePolicy()
.equals(other.getAutoScalePolicy())) return false;
}
if (hasLogOptions() != other.hasLogOptions()) return false;
if (hasLogOptions()) {
if (!getLogOptions()
.equals(other.getLogOptions())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + 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) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegionId().hashCode();
hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getNetworkId().hashCode();
if (getListenerSpecsCount() > 0) {
hash = (37 * hash) + LISTENER_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getListenerSpecsList().hashCode();
}
if (hasAllocationPolicy()) {
hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getAllocationPolicy().hashCode();
}
if (getSecurityGroupIdsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupIdsList().hashCode();
}
if (hasAutoScalePolicy()) {
hash = (37 * hash) + AUTO_SCALE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getAutoScalePolicy().hashCode();
}
if (hasLogOptions()) {
hash = (37 * hash) + LOG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest 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.apploadbalancer.v1.CreateLoadBalancerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.CreateLoadBalancerRequest)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getListenerSpecsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
regionId_ = "";
networkId_ = "";
if (listenerSpecsBuilder_ == null) {
listenerSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
listenerSpecsBuilder_.clear();
}
if (allocationPolicyBuilder_ == null) {
allocationPolicy_ = null;
} else {
allocationPolicy_ = null;
allocationPolicyBuilder_ = null;
}
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (autoScalePolicyBuilder_ == null) {
autoScalePolicy_ = null;
} else {
autoScalePolicy_ = null;
autoScalePolicyBuilder_ = null;
}
if (logOptionsBuilder_ == null) {
logOptions_ = null;
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateLoadBalancerRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.regionId_ = regionId_;
result.networkId_ = networkId_;
if (listenerSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
listenerSpecs_ = java.util.Collections.unmodifiableList(listenerSpecs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.listenerSpecs_ = listenerSpecs_;
} else {
result.listenerSpecs_ = listenerSpecsBuilder_.build();
}
if (allocationPolicyBuilder_ == null) {
result.allocationPolicy_ = allocationPolicy_;
} else {
result.allocationPolicy_ = allocationPolicyBuilder_.build();
}
if (((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.securityGroupIds_ = securityGroupIds_;
if (autoScalePolicyBuilder_ == null) {
result.autoScalePolicy_ = autoScalePolicy_;
} else {
result.autoScalePolicy_ = autoScalePolicyBuilder_.build();
}
if (logOptionsBuilder_ == null) {
result.logOptions_ = logOptions_;
} else {
result.logOptions_ = logOptionsBuilder_.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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getRegionId().isEmpty()) {
regionId_ = other.regionId_;
onChanged();
}
if (!other.getNetworkId().isEmpty()) {
networkId_ = other.networkId_;
onChanged();
}
if (listenerSpecsBuilder_ == null) {
if (!other.listenerSpecs_.isEmpty()) {
if (listenerSpecs_.isEmpty()) {
listenerSpecs_ = other.listenerSpecs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureListenerSpecsIsMutable();
listenerSpecs_.addAll(other.listenerSpecs_);
}
onChanged();
}
} else {
if (!other.listenerSpecs_.isEmpty()) {
if (listenerSpecsBuilder_.isEmpty()) {
listenerSpecsBuilder_.dispose();
listenerSpecsBuilder_ = null;
listenerSpecs_ = other.listenerSpecs_;
bitField0_ = (bitField0_ & ~0x00000002);
listenerSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getListenerSpecsFieldBuilder() : null;
} else {
listenerSpecsBuilder_.addAllMessages(other.listenerSpecs_);
}
}
}
if (other.hasAllocationPolicy()) {
mergeAllocationPolicy(other.getAllocationPolicy());
}
if (!other.securityGroupIds_.isEmpty()) {
if (securityGroupIds_.isEmpty()) {
securityGroupIds_ = other.securityGroupIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.addAll(other.securityGroupIds_);
}
onChanged();
}
if (other.hasAutoScalePolicy()) {
mergeAutoScalePolicy(other.getAutoScalePolicy());
}
if (other.hasLogOptions()) {
mergeLogOptions(other.getLogOptions());
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create an application load balancer in.
* To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the application load balancer.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the application load balancer.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the application load balancer.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the application load balancer.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* Application load balancer labels as `key:value` pairs.
* For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @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;
}
}
/**
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @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;
}
/**
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearNetworkId() {
networkId_ = getDefaultInstance().getNetworkId();
onChanged();
return this;
}
/**
*
* ID of the network that the application load balancer belongs to.
*
*
* string network_id = 6 [(.yandex.cloud.required) = true];
* @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 java.util.List listenerSpecs_ =
java.util.Collections.emptyList();
private void ensureListenerSpecsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
listenerSpecs_ = new java.util.ArrayList(listenerSpecs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder> listenerSpecsBuilder_;
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public int getListenerSpecsCount() {
if (listenerSpecsBuilder_ == null) {
return listenerSpecs_.size();
} else {
return listenerSpecsBuilder_.getCount();
}
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public Builder setListenerSpecs(
int index, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.set(index, value);
onChanged();
} else {
listenerSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public Builder addListenerSpecs(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.add(value);
onChanged();
} else {
listenerSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public Builder addListenerSpecs(
int index, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec value) {
if (listenerSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerSpecsIsMutable();
listenerSpecs_.add(index, value);
onChanged();
} else {
listenerSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.Builder getListenerSpecsBuilder(
int index) {
return getListenerSpecsFieldBuilder().getBuilder(index);
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
*
* repeated .yandex.cloud.apploadbalancer.v1.ListenerSpec listener_specs = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder getListenerSpecsOrBuilder(
int index) {
if (listenerSpecsBuilder_ == null) {
return listenerSpecs_.get(index); } else {
return listenerSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Listeners that belong to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#listener).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 8;
* @return Whether the allocationPolicy field is set.
*/
public boolean hasAllocationPolicy() {
return allocationPolicyBuilder_ != null || allocationPolicy_ != null;
}
/**
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
*
* .yandex.cloud.apploadbalancer.v1.AllocationPolicy allocation_policy = 8;
*/
public Builder setAllocationPolicy(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AllocationPolicy value) {
if (allocationPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allocationPolicy_ = value;
onChanged();
} else {
allocationPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* Locality settings of the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lb-location).
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
* ID's of the security groups attributed to the application load balancer.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#security-groups).
*
*
* repeated string security_group_ids = 9;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy autoScalePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicyOrBuilder> autoScalePolicyBuilder_;
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 10;
* @return Whether the autoScalePolicy field is set.
*/
public boolean hasAutoScalePolicy() {
return autoScalePolicyBuilder_ != null || autoScalePolicy_ != null;
}
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
*
* .yandex.cloud.apploadbalancer.v1.AutoScalePolicy auto_scale_policy = 10;
*/
public Builder setAutoScalePolicy(yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.AutoScalePolicy value) {
if (autoScalePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoScalePolicy_ = value;
onChanged();
} else {
autoScalePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* Scaling settings of the application load balancer.
* The scaling settings relate to a special internal instance group which facilitates the balancer's work.
* Instances in this group are called _resource units_. The group is scaled automatically based on incoming load
* and within limitations specified in these settings.
* For details about the concept,
* see [documentation](/docs/application-load-balancer/concepts/application-load-balancer#lcu-scaling).
*
* ID of the application load balancer that is being created.
*
*
* string load_balancer_id = 1;
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer that is being created.
*
*
* string load_balancer_id = 1;
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being created.
*
*
* string load_balancer_id = 1;
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being created.
*
*
* string load_balancer_id = 1;
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.CreateLoadBalancerMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.CreateLoadBalancerMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateLoadBalancerMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateLoadBalancerMetadata(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.CreateLoadBalancerMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StartLoadBalancerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.StartLoadBalancerRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
com.google.protobuf.ByteString
getLoadBalancerIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.StartLoadBalancerRequest}
*/
public static final class StartLoadBalancerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.StartLoadBalancerRequest)
StartLoadBalancerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartLoadBalancerRequest.newBuilder() to construct.
private StartLoadBalancerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartLoadBalancerRequest() {
loadBalancerId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartLoadBalancerRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartLoadBalancerRequest(
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();
loadBalancerId_ = 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StartLoadBalancerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StartLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.Builder.class);
}
public static final int LOAD_BALANCER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object loadBalancerId_;
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = 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(loadBalancerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loadBalancerId_);
}
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(loadBalancerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loadBalancerId_);
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest) obj;
if (!getLoadBalancerId()
.equals(other.getLoadBalancerId())) 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) + LOAD_BALANCER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancerId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest 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.apploadbalancer.v1.StartLoadBalancerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.StartLoadBalancerRequest)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StartLoadBalancerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StartLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.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();
loadBalancerId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StartLoadBalancerRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest(this);
result.loadBalancerId_ = loadBalancerId_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest.getDefaultInstance()) return this;
if (!other.getLoadBalancerId().isEmpty()) {
loadBalancerId_ = other.loadBalancerId_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object loadBalancerId_ = "";
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer to start.
* The application load balancer must have a `STOPPED` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.StartLoadBalancerRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.StartLoadBalancerRequest)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartLoadBalancerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartLoadBalancerRequest(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StartLoadBalancerMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.StartLoadBalancerMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer that is being started.
*
* ID of the application load balancer that is being started.
*
*
* string load_balancer_id = 1;
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer that is being started.
*
*
* string load_balancer_id = 1;
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being started.
*
*
* string load_balancer_id = 1;
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer that is being started.
*
*
* string load_balancer_id = 1;
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.StartLoadBalancerMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.StartLoadBalancerMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartLoadBalancerMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartLoadBalancerMetadata(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StartLoadBalancerMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopLoadBalancerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.StopLoadBalancerRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
com.google.protobuf.ByteString
getLoadBalancerIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.StopLoadBalancerRequest}
*/
public static final class StopLoadBalancerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.StopLoadBalancerRequest)
StopLoadBalancerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StopLoadBalancerRequest.newBuilder() to construct.
private StopLoadBalancerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StopLoadBalancerRequest() {
loadBalancerId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StopLoadBalancerRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StopLoadBalancerRequest(
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();
loadBalancerId_ = 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StopLoadBalancerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StopLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.Builder.class);
}
public static final int LOAD_BALANCER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object loadBalancerId_;
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = 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(loadBalancerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loadBalancerId_);
}
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(loadBalancerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loadBalancerId_);
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest) obj;
if (!getLoadBalancerId()
.equals(other.getLoadBalancerId())) 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) + LOAD_BALANCER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancerId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest 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.apploadbalancer.v1.StopLoadBalancerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.StopLoadBalancerRequest)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StopLoadBalancerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StopLoadBalancerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.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();
loadBalancerId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_StopLoadBalancerRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest(this);
result.loadBalancerId_ = loadBalancerId_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest.getDefaultInstance()) return this;
if (!other.getLoadBalancerId().isEmpty()) {
loadBalancerId_ = other.loadBalancerId_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object loadBalancerId_ = "";
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for loadBalancerId.
*/
public com.google.protobuf.ByteString
getLoadBalancerIdBytes() {
java.lang.Object ref = loadBalancerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadBalancerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearLoadBalancerId() {
loadBalancerId_ = getDefaultInstance().getLoadBalancerId();
onChanged();
return this;
}
/**
*
* ID of the application load balancer to stop.
* The application load balancer must have an `ACTIVE` status ([LoadBalancer.status]).
* To get the application load balancer ID, make a [LoadBalancerService.List] request.
*
*
* string load_balancer_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for loadBalancerId to set.
* @return This builder for chaining.
*/
public Builder setLoadBalancerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadBalancerId_ = 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.apploadbalancer.v1.StopLoadBalancerRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.StopLoadBalancerRequest)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StopLoadBalancerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopLoadBalancerRequest(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.StopLoadBalancerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopLoadBalancerMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.StopLoadBalancerMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer that is being stopped.
*
* Name of the listener to remove from the application load balancer.
*
*
* string name = 2 [(.yandex.cloud.required) = true];
* @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 listener to remove from the application load balancer.
*
*
* string name = 2 [(.yandex.cloud.required) = true];
* @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 listener to remove from the application load balancer.
*
*
* string name = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the listener to remove from the application load balancer.
*
*
* string name = 2 [(.yandex.cloud.required) = true];
* @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;
}
@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.apploadbalancer.v1.RemoveListenerRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.RemoveListenerRequest)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.RemoveListenerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.RemoveListenerRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.RemoveListenerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveListenerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveListenerRequest(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.RemoveListenerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveListenerMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.RemoveListenerMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the application load balancer that the listener is being removed from.
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
* @return Whether the internalIpv4AddressSpec field is set.
*/
boolean hasInternalIpv4AddressSpec();
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressSpec external_ipv6_address_spec = 3;
*/
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpecOrBuilder getExternalIpv6AddressSpecOrBuilder();
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.AddressSpecCase getAddressSpecCase();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.AddressSpec}
*/
public static final class AddressSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.AddressSpec)
AddressSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressSpec.newBuilder() to construct.
private AddressSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddressSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.Builder subBuilder = null;
if (addressSpecCase_ == 1) {
subBuilder = ((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_).toBuilder();
}
addressSpec_ =
input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_);
addressSpec_ = subBuilder.buildPartial();
}
addressSpecCase_ = 1;
break;
}
case 18: {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.Builder subBuilder = null;
if (addressSpecCase_ == 2) {
subBuilder = ((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_).toBuilder();
}
addressSpec_ =
input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_);
addressSpec_ = subBuilder.buildPartial();
}
addressSpecCase_ = 2;
break;
}
case 26: {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec.Builder subBuilder = null;
if (addressSpecCase_ == 3) {
subBuilder = ((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_).toBuilder();
}
addressSpec_ =
input.readMessage(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_);
addressSpec_ = subBuilder.buildPartial();
}
addressSpecCase_ = 3;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_AddressSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_AddressSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.Builder.class);
}
private int addressSpecCase_ = 0;
private java.lang.Object addressSpec_;
public enum AddressSpecCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
EXTERNAL_IPV4_ADDRESS_SPEC(1),
INTERNAL_IPV4_ADDRESS_SPEC(2),
EXTERNAL_IPV6_ADDRESS_SPEC(3),
ADDRESSSPEC_NOT_SET(0);
private final int value;
private AddressSpecCase(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 AddressSpecCase valueOf(int value) {
return forNumber(value);
}
public static AddressSpecCase forNumber(int value) {
switch (value) {
case 1: return EXTERNAL_IPV4_ADDRESS_SPEC;
case 2: return INTERNAL_IPV4_ADDRESS_SPEC;
case 3: return EXTERNAL_IPV6_ADDRESS_SPEC;
case 0: return ADDRESSSPEC_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public AddressSpecCase
getAddressSpecCase() {
return AddressSpecCase.forNumber(
addressSpecCase_);
}
public static final int EXTERNAL_IPV4_ADDRESS_SPEC_FIELD_NUMBER = 1;
/**
*
* Public IPv4 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressSpec external_ipv4_address_spec = 1;
* @return Whether the externalIpv4AddressSpec field is set.
*/
@java.lang.Override
public boolean hasExternalIpv4AddressSpec() {
return addressSpecCase_ == 1;
}
/**
*
* Public IPv4 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressSpec external_ipv4_address_spec = 1;
* @return The externalIpv4AddressSpec.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec getExternalIpv4AddressSpec() {
if (addressSpecCase_ == 1) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.getDefaultInstance();
}
/**
*
* Public IPv4 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressSpec external_ipv4_address_spec = 1;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpecOrBuilder getExternalIpv4AddressSpecOrBuilder() {
if (addressSpecCase_ == 1) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.getDefaultInstance();
}
public static final int INTERNAL_IPV4_ADDRESS_SPEC_FIELD_NUMBER = 2;
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
* @return Whether the internalIpv4AddressSpec field is set.
*/
@java.lang.Override
public boolean hasInternalIpv4AddressSpec() {
return addressSpecCase_ == 2;
}
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
* @return The internalIpv4AddressSpec.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec getInternalIpv4AddressSpec() {
if (addressSpecCase_ == 2) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.getDefaultInstance();
}
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpecOrBuilder getInternalIpv4AddressSpecOrBuilder() {
if (addressSpecCase_ == 2) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.getDefaultInstance();
}
public static final int EXTERNAL_IPV6_ADDRESS_SPEC_FIELD_NUMBER = 3;
/**
*
* Public IPv6 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressSpec external_ipv6_address_spec = 3;
* @return Whether the externalIpv6AddressSpec field is set.
*/
@java.lang.Override
public boolean hasExternalIpv6AddressSpec() {
return addressSpecCase_ == 3;
}
/**
*
* Public IPv6 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressSpec external_ipv6_address_spec = 3;
* @return The externalIpv6AddressSpec.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec getExternalIpv6AddressSpec() {
if (addressSpecCase_ == 3) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec.getDefaultInstance();
}
/**
*
* Public IPv6 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressSpec external_ipv6_address_spec = 3;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpecOrBuilder getExternalIpv6AddressSpecOrBuilder() {
if (addressSpecCase_ == 3) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec.getDefaultInstance();
}
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 (addressSpecCase_ == 1) {
output.writeMessage(1, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_);
}
if (addressSpecCase_ == 2) {
output.writeMessage(2, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_);
}
if (addressSpecCase_ == 3) {
output.writeMessage(3, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (addressSpecCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_);
}
if (addressSpecCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_);
}
if (addressSpecCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv6AddressSpec) addressSpec_);
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec) obj;
if (!getAddressSpecCase().equals(other.getAddressSpecCase())) return false;
switch (addressSpecCase_) {
case 1:
if (!getExternalIpv4AddressSpec()
.equals(other.getExternalIpv4AddressSpec())) return false;
break;
case 2:
if (!getInternalIpv4AddressSpec()
.equals(other.getInternalIpv4AddressSpec())) return false;
break;
case 3:
if (!getExternalIpv6AddressSpec()
.equals(other.getExternalIpv6AddressSpec())) 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 (addressSpecCase_) {
case 1:
hash = (37 * hash) + EXTERNAL_IPV4_ADDRESS_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getExternalIpv4AddressSpec().hashCode();
break;
case 2:
hash = (37 * hash) + INTERNAL_IPV4_ADDRESS_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getInternalIpv4AddressSpec().hashCode();
break;
case 3:
hash = (37 * hash) + EXTERNAL_IPV6_ADDRESS_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getExternalIpv6AddressSpec().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec 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.apploadbalancer.v1.AddressSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.AddressSpec)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_AddressSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_AddressSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.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();
addressSpecCase_ = 0;
addressSpec_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_AddressSpec_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec(this);
if (addressSpecCase_ == 1) {
if (externalIpv4AddressSpecBuilder_ == null) {
result.addressSpec_ = addressSpec_;
} else {
result.addressSpec_ = externalIpv4AddressSpecBuilder_.build();
}
}
if (addressSpecCase_ == 2) {
if (internalIpv4AddressSpecBuilder_ == null) {
result.addressSpec_ = addressSpec_;
} else {
result.addressSpec_ = internalIpv4AddressSpecBuilder_.build();
}
}
if (addressSpecCase_ == 3) {
if (externalIpv6AddressSpecBuilder_ == null) {
result.addressSpec_ = addressSpec_;
} else {
result.addressSpec_ = externalIpv6AddressSpecBuilder_.build();
}
}
result.addressSpecCase_ = addressSpecCase_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec.getDefaultInstance()) return this;
switch (other.getAddressSpecCase()) {
case EXTERNAL_IPV4_ADDRESS_SPEC: {
mergeExternalIpv4AddressSpec(other.getExternalIpv4AddressSpec());
break;
}
case INTERNAL_IPV4_ADDRESS_SPEC: {
mergeInternalIpv4AddressSpec(other.getInternalIpv4AddressSpec());
break;
}
case EXTERNAL_IPV6_ADDRESS_SPEC: {
mergeExternalIpv6AddressSpec(other.getExternalIpv6AddressSpec());
break;
}
case ADDRESSSPEC_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.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.AddressSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int addressSpecCase_ = 0;
private java.lang.Object addressSpec_;
public AddressSpecCase
getAddressSpecCase() {
return AddressSpecCase.forNumber(
addressSpecCase_);
}
public Builder clearAddressSpec() {
addressSpecCase_ = 0;
addressSpec_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpecOrBuilder> externalIpv4AddressSpecBuilder_;
/**
*
* Public IPv4 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressSpec external_ipv4_address_spec = 1;
* @return Whether the externalIpv4AddressSpec field is set.
*/
@java.lang.Override
public boolean hasExternalIpv4AddressSpec() {
return addressSpecCase_ == 1;
}
/**
*
* Public IPv4 endpoint address.
*
*
* .yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressSpec external_ipv4_address_spec = 1;
* @return The externalIpv4AddressSpec.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec getExternalIpv4AddressSpec() {
if (externalIpv4AddressSpecBuilder_ == null) {
if (addressSpecCase_ == 1) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.getDefaultInstance();
} else {
if (addressSpecCase_ == 1) {
return externalIpv4AddressSpecBuilder_.getMessage();
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ExternalIpv4AddressSpec.getDefaultInstance();
}
}
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
* @return Whether the internalIpv4AddressSpec field is set.
*/
@java.lang.Override
public boolean hasInternalIpv4AddressSpec() {
return addressSpecCase_ == 2;
}
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* .yandex.cloud.apploadbalancer.v1.InternalIpv4AddressSpec internal_ipv4_address_spec = 2;
* @return The internalIpv4AddressSpec.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec getInternalIpv4AddressSpec() {
if (internalIpv4AddressSpecBuilder_ == null) {
if (addressSpecCase_ == 2) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec) addressSpec_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.getDefaultInstance();
} else {
if (addressSpecCase_ == 2) {
return internalIpv4AddressSpecBuilder_.getMessage();
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.InternalIpv4AddressSpec.getDefaultInstance();
}
}
/**
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
* Internal IPv4 endpoint address.
* To enable the use of listeners with internal addresses, [contact support](https://console.cloud.yandex.ru/support).
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @return A list containing the ports.
*/
public java.util.List
getPortsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(ports_) : ports_;
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @return The count of ports.
*/
public int getPortsCount() {
return ports_.size();
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @param index The index of the element to return.
* @return The ports at the given index.
*/
public long getPorts(int index) {
return ports_.getLong(index);
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @param index The index to set the value at.
* @param value The ports to set.
* @return This builder for chaining.
*/
public Builder setPorts(
int index, long value) {
ensurePortsIsMutable();
ports_.setLong(index, value);
onChanged();
return this;
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @param value The ports to add.
* @return This builder for chaining.
*/
public Builder addPorts(long value) {
ensurePortsIsMutable();
ports_.addLong(value);
onChanged();
return this;
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @param values The ports to add.
* @return This builder for chaining.
*/
public Builder addAllPorts(
java.lang.Iterable extends java.lang.Long> values) {
ensurePortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ports_);
onChanged();
return this;
}
/**
*
* Endpoint ports.
*
*
* repeated int64 ports = 2 [(.yandex.cloud.value) = "1-65535", (.yandex.cloud.size) = ">0"];
* @return This builder for chaining.
*/
public Builder clearPorts() {
ports_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
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.apploadbalancer.v1.EndpointSpec)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.EndpointSpec)
private static final yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec();
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EndpointSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EndpointSpec(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.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListenerSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.ListenerSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the listener. The name is unique within the application load balancer.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
* @return Whether the tls field is set.
*/
boolean hasTls();
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* Endpoints of the listener.
* Endpoints are defined by their IP addresses and ports.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.EndpointSpec endpoint_specs = 2 [(.yandex.cloud.size) = ">0"];
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpecOrBuilder getEndpointSpecsOrBuilder(
int index) {
return endpointSpecs_.get(index);
}
public static final int HTTP_FIELD_NUMBER = 3;
/**
*
* Unencrypted HTTP listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpListener http = 3;
* @return Whether the http field is set.
*/
@java.lang.Override
public boolean hasHttp() {
return listenerCase_ == 3;
}
/**
*
* Unencrypted HTTP listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpListener http = 3;
* @return The http.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener getHttp() {
if (listenerCase_ == 3) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener.getDefaultInstance();
}
/**
*
* Unencrypted HTTP listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpListener http = 3;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListenerOrBuilder getHttpOrBuilder() {
if (listenerCase_ == 3) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener.getDefaultInstance();
}
public static final int TLS_FIELD_NUMBER = 4;
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
* @return Whether the tls field is set.
*/
@java.lang.Override
public boolean hasTls() {
return listenerCase_ == 4;
}
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
* @return The tls.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener getTls() {
if (listenerCase_ == 4) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener.getDefaultInstance();
}
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListenerOrBuilder getTlsOrBuilder() {
if (listenerCase_ == 4) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener.getDefaultInstance();
}
public static final int STREAM_FIELD_NUMBER = 5;
/**
*
* Unencrypted stream (TCP) listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.StreamListener stream = 5;
* @return Whether the stream field is set.
*/
@java.lang.Override
public boolean hasStream() {
return listenerCase_ == 5;
}
/**
*
* Unencrypted stream (TCP) listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.StreamListener stream = 5;
* @return The stream.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener getStream() {
if (listenerCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener.getDefaultInstance();
}
/**
*
* Unencrypted stream (TCP) listener settings.
*
*
* .yandex.cloud.apploadbalancer.v1.StreamListener stream = 5;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListenerOrBuilder getStreamOrBuilder() {
if (listenerCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < endpointSpecs_.size(); i++) {
output.writeMessage(2, endpointSpecs_.get(i));
}
if (listenerCase_ == 3) {
output.writeMessage(3, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener) listener_);
}
if (listenerCase_ == 4) {
output.writeMessage(4, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener) listener_);
}
if (listenerCase_ == 5) {
output.writeMessage(5, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener) listener_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < endpointSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, endpointSpecs_.get(i));
}
if (listenerCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.HttpListener) listener_);
}
if (listenerCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener) listener_);
}
if (listenerCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.StreamListener) listener_);
}
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec other = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getEndpointSpecsList()
.equals(other.getEndpointSpecsList())) return false;
if (!getListenerCase().equals(other.getListenerCase())) return false;
switch (listenerCase_) {
case 3:
if (!getHttp()
.equals(other.getHttp())) return false;
break;
case 4:
if (!getTls()
.equals(other.getTls())) return false;
break;
case 5:
if (!getStream()
.equals(other.getStream())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getEndpointSpecsCount() > 0) {
hash = (37 * hash) + ENDPOINT_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getEndpointSpecsList().hashCode();
}
switch (listenerCase_) {
case 3:
hash = (37 * hash) + HTTP_FIELD_NUMBER;
hash = (53 * hash) + getHttp().hashCode();
break;
case 4:
hash = (37 * hash) + TLS_FIELD_NUMBER;
hash = (53 * hash) + getTls().hashCode();
break;
case 5:
hash = (37 * hash) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec 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.apploadbalancer.v1.ListenerSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.ListenerSpec)
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListenerSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListenerSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.class, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEndpointSpecsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (endpointSpecsBuilder_ == null) {
endpointSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
endpointSpecsBuilder_.clear();
}
listenerCase_ = 0;
listener_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListenerSpec_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec build() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec buildPartial() {
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec result = new yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
if (endpointSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
endpointSpecs_ = java.util.Collections.unmodifiableList(endpointSpecs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.endpointSpecs_ = endpointSpecs_;
} else {
result.endpointSpecs_ = endpointSpecsBuilder_.build();
}
if (listenerCase_ == 3) {
if (httpBuilder_ == null) {
result.listener_ = listener_;
} else {
result.listener_ = httpBuilder_.build();
}
}
if (listenerCase_ == 4) {
if (tlsBuilder_ == null) {
result.listener_ = listener_;
} else {
result.listener_ = tlsBuilder_.build();
}
}
if (listenerCase_ == 5) {
if (streamBuilder_ == null) {
result.listener_ = listener_;
} else {
result.listener_ = streamBuilder_.build();
}
}
result.listenerCase_ = listenerCase_;
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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec other) {
if (other == yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (endpointSpecsBuilder_ == null) {
if (!other.endpointSpecs_.isEmpty()) {
if (endpointSpecs_.isEmpty()) {
endpointSpecs_ = other.endpointSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEndpointSpecsIsMutable();
endpointSpecs_.addAll(other.endpointSpecs_);
}
onChanged();
}
} else {
if (!other.endpointSpecs_.isEmpty()) {
if (endpointSpecsBuilder_.isEmpty()) {
endpointSpecsBuilder_.dispose();
endpointSpecsBuilder_ = null;
endpointSpecs_ = other.endpointSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
endpointSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEndpointSpecsFieldBuilder() : null;
} else {
endpointSpecsBuilder_.addAllMessages(other.endpointSpecs_);
}
}
}
switch (other.getListenerCase()) {
case HTTP: {
mergeHttp(other.getHttp());
break;
}
case TLS: {
mergeTls(other.getTls());
break;
}
case STREAM: {
mergeStream(other.getStream());
break;
}
case LISTENER_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.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.ListenerSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int listenerCase_ = 0;
private java.lang.Object listener_;
public ListenerCase
getListenerCase() {
return ListenerCase.forNumber(
listenerCase_);
}
public Builder clearListener() {
listenerCase_ = 0;
listener_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the listener. The name is unique within the application load balancer.
*
* Name of the listener. The name is unique within the application load balancer.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the listener. The name is unique within the application load balancer.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the listener. The name is unique within the application load balancer.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the listener. The name is unique within the application load balancer.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List endpointSpecs_ =
java.util.Collections.emptyList();
private void ensureEndpointSpecsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
endpointSpecs_ = new java.util.ArrayList(endpointSpecs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpec.Builder, yandex.cloud.api.apploadbalancer.v1.LoadBalancerServiceOuterClass.EndpointSpecOrBuilder> endpointSpecsBuilder_;
/**
*
* Endpoints of the listener.
* Endpoints are defined by their IP addresses and ports.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
* @return Whether the tls field is set.
*/
@java.lang.Override
public boolean hasTls() {
return listenerCase_ == 4;
}
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsListener tls = 4;
* @return The tls.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener getTls() {
if (tlsBuilder_ == null) {
if (listenerCase_ == 4) {
return (yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener) listener_;
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener.getDefaultInstance();
} else {
if (listenerCase_ == 4) {
return tlsBuilder_.getMessage();
}
return yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsListener.getDefaultInstance();
}
}
/**
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
* TLS-encrypted HTTP or TCP stream listener settings.
* All handlers within a listener ([TlsListener.default_handler] and [TlsListener.sni_handlers]) must be of one
* type, [HttpHandler] or [StreamHandler]. Mixing HTTP and TCP stream traffic in a TLS-encrypted listener is not
* supported.
*
*
* string listener_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for listenerName.
*/
com.google.protobuf.ByteString
getListenerNameBytes();
/**
*
* Name of the SNI handler to add.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the SNI handler to add.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return A list containing the serverNames.
*/
java.util.List
getServerNamesList();
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return The count of serverNames.
*/
int getServerNamesCount();
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the element to return.
* @return The serverNames at the given index.
*/
java.lang.String getServerNames(int index);
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the value to return.
* @return The bytes of the serverNames at the given index.
*/
com.google.protobuf.ByteString
getServerNamesBytes(int index);
/**
*
* Settings for handling requests with Server Name Indication (SNI) matching one of [server_names] values.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsHandler handler = 5 [(.yandex.cloud.required) = true];
* @return Whether the handler field is set.
*/
boolean hasHandler();
/**
*
* Settings for handling requests with Server Name Indication (SNI) matching one of [server_names] values.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @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 SERVER_NAMES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList serverNames_;
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return A list containing the serverNames.
*/
public com.google.protobuf.ProtocolStringList
getServerNamesList() {
return serverNames_;
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return The count of serverNames.
*/
public int getServerNamesCount() {
return serverNames_.size();
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the element to return.
* @return The serverNames at the given index.
*/
public java.lang.String getServerNames(int index) {
return serverNames_.get(index);
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the value to return.
* @return The bytes of the serverNames at the given index.
*/
public com.google.protobuf.ByteString
getServerNamesBytes(int index) {
return serverNames_.getByteString(index);
}
public static final int HANDLER_FIELD_NUMBER = 5;
private yandex.cloud.api.apploadbalancer.v1.LoadBalancerOuterClass.TlsHandler handler_;
/**
*
* Settings for handling requests with Server Name Indication (SNI) matching one of [server_names] values.
*
*
* .yandex.cloud.apploadbalancer.v1.TlsHandler handler = 5 [(.yandex.cloud.required) = true];
* @return Whether the handler field is set.
*/
@java.lang.Override
public boolean hasHandler() {
return handler_ != null;
}
/**
*
* Settings for handling requests with Server Name Indication (SNI) matching one of [server_names] values.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @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 SNI handler to add.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @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 SNI handler to add.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the SNI handler to add.
*
*
* string name = 3 [(.yandex.cloud.required) = true];
* @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 com.google.protobuf.LazyStringList serverNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureServerNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
serverNames_ = new com.google.protobuf.LazyStringArrayList(serverNames_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return A list containing the serverNames.
*/
public com.google.protobuf.ProtocolStringList
getServerNamesList() {
return serverNames_.getUnmodifiableView();
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @return The count of serverNames.
*/
public int getServerNamesCount() {
return serverNames_.size();
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the element to return.
* @return The serverNames at the given index.
*/
public java.lang.String getServerNames(int index) {
return serverNames_.get(index);
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index of the value to return.
* @return The bytes of the serverNames at the given index.
*/
public com.google.protobuf.ByteString
getServerNamesBytes(int index) {
return serverNames_.getByteString(index);
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param index The index to set the value at.
* @param value The serverNames to set.
* @return This builder for chaining.
*/
public Builder setServerNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureServerNamesIsMutable();
serverNames_.set(index, value);
onChanged();
return this;
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param value The serverNames to add.
* @return This builder for chaining.
*/
public Builder addServerNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureServerNamesIsMutable();
serverNames_.add(value);
onChanged();
return this;
}
/**
*
* Server names that are matched by the SNI handler.
*
*
* repeated string server_names = 4 [(.yandex.cloud.size) = ">0"];
* @param values The serverNames to add.
* @return This builder for chaining.
*/
public Builder addAllServerNames(
java.lang.Iterable values) {
ensureServerNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serverNames_);
onChanged();
return this;
}
/**
*
* Server names that are matched by the SNI handler.
*