yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/apploadbalancer/v1/virtual_host_service.proto
package yandex.cloud.api.apploadbalancer.v1;
public final class VirtualHostServiceOuterClass {
private VirtualHostServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface GetVirtualHostRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.GetVirtualHostRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.GetVirtualHostRequest}
*/
public static final class GetVirtualHostRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.GetVirtualHostRequest)
GetVirtualHostRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetVirtualHostRequest.newBuilder() to construct.
private GetVirtualHostRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetVirtualHostRequest() {
httpRouterId_ = "";
virtualHostName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetVirtualHostRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVirtualHostRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
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.VirtualHostServiceOuterClass.GetVirtualHostRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.VirtualHostServiceOuterClass.GetVirtualHostRequest 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.GetVirtualHostRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.GetVirtualHostRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.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();
httpRouterId_ = "";
virtualHostName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
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.VirtualHostServiceOuterClass.GetVirtualHostRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
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.VirtualHostServiceOuterClass.GetVirtualHostRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host belongs to.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host to return.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = 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.GetVirtualHostRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.GetVirtualHostRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.GetVirtualHostRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetVirtualHostRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVirtualHostRequest(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.VirtualHostServiceOuterClass.GetVirtualHostRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListVirtualHostsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.ListVirtualHostsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListVirtualHostsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.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();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.ListVirtualHostsRequest}
*/
public static final class ListVirtualHostsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.ListVirtualHostsRequest)
ListVirtualHostsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListVirtualHostsRequest.newBuilder() to construct.
private ListVirtualHostsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListVirtualHostsRequest() {
httpRouterId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListVirtualHostsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListVirtualHostsRequest(
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();
httpRouterId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = 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 [ListVirtualHostsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.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;
}
}
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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.VirtualHostServiceOuterClass.ListVirtualHostsRequest 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.ListVirtualHostsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.ListVirtualHostsRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.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();
httpRouterId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest(this);
result.httpRouterId_ = httpRouterId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to list virtual hosts in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = 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 [ListVirtualHostsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListVirtualHostsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListVirtualHostsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListVirtualHostsResponse.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
* [ListVirtualHostsResponse.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
* [ListVirtualHostsResponse.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
* [ListVirtualHostsResponse.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;
}
@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.ListVirtualHostsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.ListVirtualHostsRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListVirtualHostsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListVirtualHostsRequest(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.VirtualHostServiceOuterClass.ListVirtualHostsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListVirtualHostsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.ListVirtualHostsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
java.util.List
getVirtualHostsList();
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index);
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
int getVirtualHostsCount();
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>
getVirtualHostsOrBuilderList();
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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.ListVirtualHostsResponse}
*/
public static final class ListVirtualHostsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.ListVirtualHostsResponse)
ListVirtualHostsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListVirtualHostsResponse.newBuilder() to construct.
private ListVirtualHostsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListVirtualHostsResponse() {
virtualHosts_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListVirtualHostsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListVirtualHostsResponse(
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)) {
virtualHosts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
virtualHosts_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.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)) {
virtualHosts_ = java.util.Collections.unmodifiableList(virtualHosts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.Builder.class);
}
public static final int VIRTUAL_HOSTS_FIELD_NUMBER = 1;
private java.util.List virtualHosts_;
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
@java.lang.Override
public java.util.List getVirtualHostsList() {
return virtualHosts_;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>
getVirtualHostsOrBuilderList() {
return virtualHosts_;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
@java.lang.Override
public int getVirtualHostsCount() {
return virtualHosts_.size();
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index) {
return virtualHosts_.get(index);
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder(
int index) {
return virtualHosts_.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 [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 < virtualHosts_.size(); i++) {
output.writeMessage(1, virtualHosts_.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 < virtualHosts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, virtualHosts_.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.VirtualHostServiceOuterClass.ListVirtualHostsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse) obj;
if (!getVirtualHostsList()
.equals(other.getVirtualHostsList())) 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 (getVirtualHostsCount() > 0) {
hash = (37 * hash) + VIRTUAL_HOSTS_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostsList().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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.VirtualHostServiceOuterClass.ListVirtualHostsResponse 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.ListVirtualHostsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.ListVirtualHostsResponse)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVirtualHostsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (virtualHostsBuilder_ == null) {
virtualHosts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
virtualHostsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse(this);
int from_bitField0_ = bitField0_;
if (virtualHostsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
virtualHosts_ = java.util.Collections.unmodifiableList(virtualHosts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.virtualHosts_ = virtualHosts_;
} else {
result.virtualHosts_ = virtualHostsBuilder_.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.VirtualHostServiceOuterClass.ListVirtualHostsResponse) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse.getDefaultInstance()) return this;
if (virtualHostsBuilder_ == null) {
if (!other.virtualHosts_.isEmpty()) {
if (virtualHosts_.isEmpty()) {
virtualHosts_ = other.virtualHosts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVirtualHostsIsMutable();
virtualHosts_.addAll(other.virtualHosts_);
}
onChanged();
}
} else {
if (!other.virtualHosts_.isEmpty()) {
if (virtualHostsBuilder_.isEmpty()) {
virtualHostsBuilder_.dispose();
virtualHostsBuilder_ = null;
virtualHosts_ = other.virtualHosts_;
bitField0_ = (bitField0_ & ~0x00000001);
virtualHostsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVirtualHostsFieldBuilder() : null;
} else {
virtualHostsBuilder_.addAllMessages(other.virtualHosts_);
}
}
}
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.VirtualHostServiceOuterClass.ListVirtualHostsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List virtualHosts_ =
java.util.Collections.emptyList();
private void ensureVirtualHostsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
virtualHosts_ = new java.util.ArrayList(virtualHosts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder> virtualHostsBuilder_;
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public java.util.List getVirtualHostsList() {
if (virtualHostsBuilder_ == null) {
return java.util.Collections.unmodifiableList(virtualHosts_);
} else {
return virtualHostsBuilder_.getMessageList();
}
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public int getVirtualHostsCount() {
if (virtualHostsBuilder_ == null) {
return virtualHosts_.size();
} else {
return virtualHostsBuilder_.getCount();
}
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index) {
if (virtualHostsBuilder_ == null) {
return virtualHosts_.get(index);
} else {
return virtualHostsBuilder_.getMessage(index);
}
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder setVirtualHosts(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) {
if (virtualHostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualHostsIsMutable();
virtualHosts_.set(index, value);
onChanged();
} else {
virtualHostsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder setVirtualHosts(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) {
if (virtualHostsBuilder_ == null) {
ensureVirtualHostsIsMutable();
virtualHosts_.set(index, builderForValue.build());
onChanged();
} else {
virtualHostsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder addVirtualHosts(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) {
if (virtualHostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualHostsIsMutable();
virtualHosts_.add(value);
onChanged();
} else {
virtualHostsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder addVirtualHosts(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) {
if (virtualHostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualHostsIsMutable();
virtualHosts_.add(index, value);
onChanged();
} else {
virtualHostsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder addVirtualHosts(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) {
if (virtualHostsBuilder_ == null) {
ensureVirtualHostsIsMutable();
virtualHosts_.add(builderForValue.build());
onChanged();
} else {
virtualHostsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder addVirtualHosts(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) {
if (virtualHostsBuilder_ == null) {
ensureVirtualHostsIsMutable();
virtualHosts_.add(index, builderForValue.build());
onChanged();
} else {
virtualHostsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder addAllVirtualHosts(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost> values) {
if (virtualHostsBuilder_ == null) {
ensureVirtualHostsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, virtualHosts_);
onChanged();
} else {
virtualHostsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder clearVirtualHosts() {
if (virtualHostsBuilder_ == null) {
virtualHosts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
virtualHostsBuilder_.clear();
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public Builder removeVirtualHosts(int index) {
if (virtualHostsBuilder_ == null) {
ensureVirtualHostsIsMutable();
virtualHosts_.remove(index);
onChanged();
} else {
virtualHostsBuilder_.remove(index);
}
return this;
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder getVirtualHostsBuilder(
int index) {
return getVirtualHostsFieldBuilder().getBuilder(index);
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder(
int index) {
if (virtualHostsBuilder_ == null) {
return virtualHosts_.get(index); } else {
return virtualHostsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>
getVirtualHostsOrBuilderList() {
if (virtualHostsBuilder_ != null) {
return virtualHostsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(virtualHosts_);
}
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder addVirtualHostsBuilder() {
return getVirtualHostsFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.getDefaultInstance());
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder addVirtualHostsBuilder(
int index) {
return getVirtualHostsFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.getDefaultInstance());
}
/**
*
* List of virtual hosts of the specified HTTP router.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 1;
*/
public java.util.List
getVirtualHostsBuilderList() {
return getVirtualHostsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>
getVirtualHostsFieldBuilder() {
if (virtualHostsBuilder_ == null) {
virtualHostsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>(
virtualHosts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
virtualHosts_ = null;
}
return virtualHostsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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 [ListVirtualHostsRequest.page_size], use `next_page_token` as the value
* for the [ListVirtualHostsRequest.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.ListVirtualHostsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.ListVirtualHostsResponse)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.ListVirtualHostsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListVirtualHostsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListVirtualHostsResponse(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.VirtualHostServiceOuterClass.ListVirtualHostsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateVirtualHostRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.CreateVirtualHostRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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 virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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();
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return A list containing the authority.
*/
java.util.List
getAuthorityList();
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return The count of authority.
*/
int getAuthorityCount();
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
java.lang.String getAuthority(int index);
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
com.google.protobuf.ByteString
getAuthorityBytes(int index);
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
java.util.List
getRoutesList();
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index);
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
int getRoutesCount();
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList();
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index);
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
java.util.List
getModifyRequestHeadersList();
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index);
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
int getModifyRequestHeadersCount();
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList();
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index);
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
java.util.List
getModifyResponseHeadersList();
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index);
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
int getModifyResponseHeadersCount();
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList();
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index);
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return Whether the routeOptions field is set.
*/
boolean hasRouteOptions();
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return The routeOptions.
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions();
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.CreateVirtualHostRequest}
*/
public static final class CreateVirtualHostRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.CreateVirtualHostRequest)
CreateVirtualHostRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateVirtualHostRequest.newBuilder() to construct.
private CreateVirtualHostRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateVirtualHostRequest() {
httpRouterId_ = "";
name_ = "";
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
routes_ = java.util.Collections.emptyList();
modifyRequestHeaders_ = java.util.Collections.emptyList();
modifyResponseHeaders_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateVirtualHostRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateVirtualHostRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
authority_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
authority_.add(s);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
routes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
routes_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
modifyRequestHeaders_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
modifyResponseHeaders_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.parser(), extensionRegistry));
break;
}
case 66: {
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder subBuilder = null;
if (routeOptions_ != null) {
subBuilder = routeOptions_.toBuilder();
}
routeOptions_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(routeOptions_);
routeOptions_ = 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_ & 0x00000001) != 0)) {
authority_ = authority_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
routes_ = java.util.Collections.unmodifiableList(routes_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = java.util.Collections.unmodifiableList(modifyRequestHeaders_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = java.util.Collections.unmodifiableList(modifyResponseHeaders_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = 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 virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHORITY_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList authority_;
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return A list containing the authority.
*/
public com.google.protobuf.ProtocolStringList
getAuthorityList() {
return authority_;
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return The count of authority.
*/
public int getAuthorityCount() {
return authority_.size();
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
public java.lang.String getAuthority(int index) {
return authority_.get(index);
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
public com.google.protobuf.ByteString
getAuthorityBytes(int index) {
return authority_.getByteString(index);
}
public static final int ROUTES_FIELD_NUMBER = 5;
private java.util.List routes_;
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
@java.lang.Override
public java.util.List getRoutesList() {
return routes_;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList() {
return routes_;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
@java.lang.Override
public int getRoutesCount() {
return routes_.size();
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index) {
return routes_.get(index);
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index) {
return routes_.get(index);
}
public static final int MODIFY_REQUEST_HEADERS_FIELD_NUMBER = 6;
private java.util.List modifyRequestHeaders_;
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
@java.lang.Override
public java.util.List getModifyRequestHeadersList() {
return modifyRequestHeaders_;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList() {
return modifyRequestHeaders_;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
@java.lang.Override
public int getModifyRequestHeadersCount() {
return modifyRequestHeaders_.size();
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index) {
return modifyRequestHeaders_.get(index);
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index) {
return modifyRequestHeaders_.get(index);
}
public static final int MODIFY_RESPONSE_HEADERS_FIELD_NUMBER = 7;
private java.util.List modifyResponseHeaders_;
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
@java.lang.Override
public java.util.List getModifyResponseHeadersList() {
return modifyResponseHeaders_;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList() {
return modifyResponseHeaders_;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
@java.lang.Override
public int getModifyResponseHeadersCount() {
return modifyResponseHeaders_.size();
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index) {
return modifyResponseHeaders_.get(index);
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index) {
return modifyResponseHeaders_.get(index);
}
public static final int ROUTE_OPTIONS_FIELD_NUMBER = 8;
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return Whether the routeOptions field is set.
*/
@java.lang.Override
public boolean hasRouteOptions() {
return routeOptions_ != null;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return The routeOptions.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
return getRouteOptions();
}
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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
for (int i = 0; i < authority_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authority_.getRaw(i));
}
for (int i = 0; i < routes_.size(); i++) {
output.writeMessage(5, routes_.get(i));
}
for (int i = 0; i < modifyRequestHeaders_.size(); i++) {
output.writeMessage(6, modifyRequestHeaders_.get(i));
}
for (int i = 0; i < modifyResponseHeaders_.size(); i++) {
output.writeMessage(7, modifyResponseHeaders_.get(i));
}
if (routeOptions_ != null) {
output.writeMessage(8, getRouteOptions());
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
{
int dataSize = 0;
for (int i = 0; i < authority_.size(); i++) {
dataSize += computeStringSizeNoTag(authority_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthorityList().size();
}
for (int i = 0; i < routes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, routes_.get(i));
}
for (int i = 0; i < modifyRequestHeaders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, modifyRequestHeaders_.get(i));
}
for (int i = 0; i < modifyResponseHeaders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, modifyResponseHeaders_.get(i));
}
if (routeOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getRouteOptions());
}
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.VirtualHostServiceOuterClass.CreateVirtualHostRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getAuthorityList()
.equals(other.getAuthorityList())) return false;
if (!getRoutesList()
.equals(other.getRoutesList())) return false;
if (!getModifyRequestHeadersList()
.equals(other.getModifyRequestHeadersList())) return false;
if (!getModifyResponseHeadersList()
.equals(other.getModifyResponseHeadersList())) return false;
if (hasRouteOptions() != other.hasRouteOptions()) return false;
if (hasRouteOptions()) {
if (!getRouteOptions()
.equals(other.getRouteOptions())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getAuthorityCount() > 0) {
hash = (37 * hash) + AUTHORITY_FIELD_NUMBER;
hash = (53 * hash) + getAuthorityList().hashCode();
}
if (getRoutesCount() > 0) {
hash = (37 * hash) + ROUTES_FIELD_NUMBER;
hash = (53 * hash) + getRoutesList().hashCode();
}
if (getModifyRequestHeadersCount() > 0) {
hash = (37 * hash) + MODIFY_REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getModifyRequestHeadersList().hashCode();
}
if (getModifyResponseHeadersCount() > 0) {
hash = (37 * hash) + MODIFY_RESPONSE_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getModifyResponseHeadersList().hashCode();
}
if (hasRouteOptions()) {
hash = (37 * hash) + ROUTE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRouteOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.VirtualHostServiceOuterClass.CreateVirtualHostRequest 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.CreateVirtualHostRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.CreateVirtualHostRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRoutesFieldBuilder();
getModifyRequestHeadersFieldBuilder();
getModifyResponseHeadersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
httpRouterId_ = "";
name_ = "";
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
routesBuilder_.clear();
}
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
modifyRequestHeadersBuilder_.clear();
}
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
modifyResponseHeadersBuilder_.clear();
}
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest(this);
int from_bitField0_ = bitField0_;
result.httpRouterId_ = httpRouterId_;
result.name_ = name_;
if (((bitField0_ & 0x00000001) != 0)) {
authority_ = authority_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.authority_ = authority_;
if (routesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
routes_ = java.util.Collections.unmodifiableList(routes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.routes_ = routes_;
} else {
result.routes_ = routesBuilder_.build();
}
if (modifyRequestHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = java.util.Collections.unmodifiableList(modifyRequestHeaders_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.modifyRequestHeaders_ = modifyRequestHeaders_;
} else {
result.modifyRequestHeaders_ = modifyRequestHeadersBuilder_.build();
}
if (modifyResponseHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = java.util.Collections.unmodifiableList(modifyResponseHeaders_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.modifyResponseHeaders_ = modifyResponseHeaders_;
} else {
result.modifyResponseHeaders_ = modifyResponseHeadersBuilder_.build();
}
if (routeOptionsBuilder_ == null) {
result.routeOptions_ = routeOptions_;
} else {
result.routeOptions_ = routeOptionsBuilder_.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.VirtualHostServiceOuterClass.CreateVirtualHostRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.authority_.isEmpty()) {
if (authority_.isEmpty()) {
authority_ = other.authority_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAuthorityIsMutable();
authority_.addAll(other.authority_);
}
onChanged();
}
if (routesBuilder_ == null) {
if (!other.routes_.isEmpty()) {
if (routes_.isEmpty()) {
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRoutesIsMutable();
routes_.addAll(other.routes_);
}
onChanged();
}
} else {
if (!other.routes_.isEmpty()) {
if (routesBuilder_.isEmpty()) {
routesBuilder_.dispose();
routesBuilder_ = null;
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
routesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRoutesFieldBuilder() : null;
} else {
routesBuilder_.addAllMessages(other.routes_);
}
}
}
if (modifyRequestHeadersBuilder_ == null) {
if (!other.modifyRequestHeaders_.isEmpty()) {
if (modifyRequestHeaders_.isEmpty()) {
modifyRequestHeaders_ = other.modifyRequestHeaders_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.addAll(other.modifyRequestHeaders_);
}
onChanged();
}
} else {
if (!other.modifyRequestHeaders_.isEmpty()) {
if (modifyRequestHeadersBuilder_.isEmpty()) {
modifyRequestHeadersBuilder_.dispose();
modifyRequestHeadersBuilder_ = null;
modifyRequestHeaders_ = other.modifyRequestHeaders_;
bitField0_ = (bitField0_ & ~0x00000004);
modifyRequestHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModifyRequestHeadersFieldBuilder() : null;
} else {
modifyRequestHeadersBuilder_.addAllMessages(other.modifyRequestHeaders_);
}
}
}
if (modifyResponseHeadersBuilder_ == null) {
if (!other.modifyResponseHeaders_.isEmpty()) {
if (modifyResponseHeaders_.isEmpty()) {
modifyResponseHeaders_ = other.modifyResponseHeaders_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.addAll(other.modifyResponseHeaders_);
}
onChanged();
}
} else {
if (!other.modifyResponseHeaders_.isEmpty()) {
if (modifyResponseHeadersBuilder_.isEmpty()) {
modifyResponseHeadersBuilder_.dispose();
modifyResponseHeadersBuilder_ = null;
modifyResponseHeaders_ = other.modifyResponseHeaders_;
bitField0_ = (bitField0_ & ~0x00000008);
modifyResponseHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModifyResponseHeadersFieldBuilder() : null;
} else {
modifyResponseHeadersBuilder_.addAllMessages(other.modifyResponseHeaders_);
}
}
}
if (other.hasRouteOptions()) {
mergeRouteOptions(other.getRouteOptions());
}
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.VirtualHostServiceOuterClass.CreateVirtualHostRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to create a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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 virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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 virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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 virtual host. The name must be unique within the HTTP router and cannot be changed after creation.
*
*
* 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 com.google.protobuf.LazyStringList authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthorityIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
authority_ = new com.google.protobuf.LazyStringArrayList(authority_);
bitField0_ |= 0x00000001;
}
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return A list containing the authority.
*/
public com.google.protobuf.ProtocolStringList
getAuthorityList() {
return authority_.getUnmodifiableView();
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return The count of authority.
*/
public int getAuthorityCount() {
return authority_.size();
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
public java.lang.String getAuthority(int index) {
return authority_.get(index);
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
public com.google.protobuf.ByteString
getAuthorityBytes(int index) {
return authority_.getByteString(index);
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param index The index to set the value at.
* @param value The authority to set.
* @return This builder for chaining.
*/
public Builder setAuthority(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorityIsMutable();
authority_.set(index, value);
onChanged();
return this;
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param value The authority to add.
* @return This builder for chaining.
*/
public Builder addAuthority(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorityIsMutable();
authority_.add(value);
onChanged();
return this;
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param values The authority to add.
* @return This builder for chaining.
*/
public Builder addAllAuthority(
java.lang.Iterable values) {
ensureAuthorityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authority_);
onChanged();
return this;
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @return This builder for chaining.
*/
public Builder clearAuthority() {
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* List of domains that are attributed to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 3;
* @param value The bytes of the authority to add.
* @return This builder for chaining.
*/
public Builder addAuthorityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAuthorityIsMutable();
authority_.add(value);
onChanged();
return this;
}
private java.util.List routes_ =
java.util.Collections.emptyList();
private void ensureRoutesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
routes_ = new java.util.ArrayList(routes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder> routesBuilder_;
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public java.util.List getRoutesList() {
if (routesBuilder_ == null) {
return java.util.Collections.unmodifiableList(routes_);
} else {
return routesBuilder_.getMessageList();
}
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public int getRoutesCount() {
if (routesBuilder_ == null) {
return routes_.size();
} else {
return routesBuilder_.getCount();
}
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index) {
if (routesBuilder_ == null) {
return routes_.get(index);
} else {
return routesBuilder_.getMessage(index);
}
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder setRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.set(index, value);
onChanged();
} else {
routesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder setRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.set(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder addRoutes(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(value);
onChanged();
} else {
routesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder addRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(index, value);
onChanged();
} else {
routesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder addRoutes(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder addRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder addAllRoutes(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route> values) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, routes_);
onChanged();
} else {
routesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder clearRoutes() {
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
routesBuilder_.clear();
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public Builder removeRoutes(int index) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.remove(index);
onChanged();
} else {
routesBuilder_.remove(index);
}
return this;
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder getRoutesBuilder(
int index) {
return getRoutesFieldBuilder().getBuilder(index);
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index) {
if (routesBuilder_ == null) {
return routes_.get(index); } else {
return routesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList() {
if (routesBuilder_ != null) {
return routesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(routes_);
}
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder addRoutesBuilder() {
return getRoutesFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.getDefaultInstance());
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder addRoutesBuilder(
int index) {
return getRoutesFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.getDefaultInstance());
}
/**
*
* Routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 5;
*/
public java.util.List
getRoutesBuilderList() {
return getRoutesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesFieldBuilder() {
if (routesBuilder_ == null) {
routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>(
routes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
routes_ = null;
}
return routesBuilder_;
}
private java.util.List modifyRequestHeaders_ =
java.util.Collections.emptyList();
private void ensureModifyRequestHeadersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = new java.util.ArrayList(modifyRequestHeaders_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder> modifyRequestHeadersBuilder_;
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public java.util.List getModifyRequestHeadersList() {
if (modifyRequestHeadersBuilder_ == null) {
return java.util.Collections.unmodifiableList(modifyRequestHeaders_);
} else {
return modifyRequestHeadersBuilder_.getMessageList();
}
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public int getModifyRequestHeadersCount() {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.size();
} else {
return modifyRequestHeadersBuilder_.getCount();
}
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index) {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.get(index);
} else {
return modifyRequestHeadersBuilder_.getMessage(index);
}
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder setModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.set(index, value);
onChanged();
} else {
modifyRequestHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder setModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.set(index, builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder addModifyRequestHeaders(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(value);
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder addModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(index, value);
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder addModifyRequestHeaders(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder addModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(index, builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder addAllModifyRequestHeaders(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification> values) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modifyRequestHeaders_);
onChanged();
} else {
modifyRequestHeadersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder clearModifyRequestHeaders() {
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
modifyRequestHeadersBuilder_.clear();
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public Builder removeModifyRequestHeaders(int index) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.remove(index);
onChanged();
} else {
modifyRequestHeadersBuilder_.remove(index);
}
return this;
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder getModifyRequestHeadersBuilder(
int index) {
return getModifyRequestHeadersFieldBuilder().getBuilder(index);
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index) {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.get(index); } else {
return modifyRequestHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList() {
if (modifyRequestHeadersBuilder_ != null) {
return modifyRequestHeadersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modifyRequestHeaders_);
}
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyRequestHeadersBuilder() {
return getModifyRequestHeadersFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyRequestHeadersBuilder(
int index) {
return getModifyRequestHeadersFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* Modifications that are made to the headers of incoming HTTP requests before they are forwarded to backends.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 6;
*/
public java.util.List
getModifyRequestHeadersBuilderList() {
return getModifyRequestHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersFieldBuilder() {
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>(
modifyRequestHeaders_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
modifyRequestHeaders_ = null;
}
return modifyRequestHeadersBuilder_;
}
private java.util.List modifyResponseHeaders_ =
java.util.Collections.emptyList();
private void ensureModifyResponseHeadersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = new java.util.ArrayList(modifyResponseHeaders_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder> modifyResponseHeadersBuilder_;
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public java.util.List getModifyResponseHeadersList() {
if (modifyResponseHeadersBuilder_ == null) {
return java.util.Collections.unmodifiableList(modifyResponseHeaders_);
} else {
return modifyResponseHeadersBuilder_.getMessageList();
}
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public int getModifyResponseHeadersCount() {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.size();
} else {
return modifyResponseHeadersBuilder_.getCount();
}
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index) {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.get(index);
} else {
return modifyResponseHeadersBuilder_.getMessage(index);
}
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder setModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.set(index, value);
onChanged();
} else {
modifyResponseHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder setModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.set(index, builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder addModifyResponseHeaders(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(value);
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder addModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(index, value);
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder addModifyResponseHeaders(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder addModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(index, builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder addAllModifyResponseHeaders(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification> values) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modifyResponseHeaders_);
onChanged();
} else {
modifyResponseHeadersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder clearModifyResponseHeaders() {
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
modifyResponseHeadersBuilder_.clear();
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public Builder removeModifyResponseHeaders(int index) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.remove(index);
onChanged();
} else {
modifyResponseHeadersBuilder_.remove(index);
}
return this;
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder getModifyResponseHeadersBuilder(
int index) {
return getModifyResponseHeadersFieldBuilder().getBuilder(index);
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index) {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.get(index); } else {
return modifyResponseHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList() {
if (modifyResponseHeadersBuilder_ != null) {
return modifyResponseHeadersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modifyResponseHeaders_);
}
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyResponseHeadersBuilder() {
return getModifyResponseHeadersFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyResponseHeadersBuilder(
int index) {
return getModifyResponseHeadersFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* Modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 7;
*/
public java.util.List
getModifyResponseHeadersBuilderList() {
return getModifyResponseHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersFieldBuilder() {
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>(
modifyResponseHeaders_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
modifyResponseHeaders_ = null;
}
return modifyResponseHeadersBuilder_;
}
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder> routeOptionsBuilder_;
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return Whether the routeOptions field is set.
*/
public boolean hasRouteOptions() {
return routeOptionsBuilder_ != null || routeOptions_ != null;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
* @return The routeOptions.
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
if (routeOptionsBuilder_ == null) {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
} else {
return routeOptionsBuilder_.getMessage();
}
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public Builder setRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routeOptions_ = value;
onChanged();
} else {
routeOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public Builder setRouteOptions(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder builderForValue) {
if (routeOptionsBuilder_ == null) {
routeOptions_ = builderForValue.build();
onChanged();
} else {
routeOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public Builder mergeRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (routeOptions_ != null) {
routeOptions_ =
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.newBuilder(routeOptions_).mergeFrom(value).buildPartial();
} else {
routeOptions_ = value;
}
onChanged();
} else {
routeOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public Builder clearRouteOptions() {
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
onChanged();
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
return this;
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder getRouteOptionsBuilder() {
onChanged();
return getRouteOptionsFieldBuilder().getBuilder();
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
if (routeOptionsBuilder_ != null) {
return routeOptionsBuilder_.getMessageOrBuilder();
} else {
return routeOptions_ == null ?
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
}
/**
*
* Route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>
getRouteOptionsFieldBuilder() {
if (routeOptionsBuilder_ == null) {
routeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>(
getRouteOptions(),
getParentForChildren(),
isClean());
routeOptions_ = null;
}
return routeOptionsBuilder_;
}
@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.CreateVirtualHostRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.CreateVirtualHostRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateVirtualHostRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateVirtualHostRequest(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.VirtualHostServiceOuterClass.CreateVirtualHostRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateVirtualHostMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.CreateVirtualHostMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.CreateVirtualHostMetadata}
*/
public static final class CreateVirtualHostMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.CreateVirtualHostMetadata)
CreateVirtualHostMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateVirtualHostMetadata.newBuilder() to construct.
private CreateVirtualHostMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateVirtualHostMetadata() {
httpRouterId_ = "";
virtualHostName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateVirtualHostMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateVirtualHostMetadata(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata 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.CreateVirtualHostMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.CreateVirtualHostMetadata)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.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();
httpRouterId_ = "";
virtualHostName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being created in.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being created.
*
*
* string virtual_host_name = 2;
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = 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.CreateVirtualHostMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.CreateVirtualHostMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.CreateVirtualHostMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateVirtualHostMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateVirtualHostMetadata(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.VirtualHostServiceOuterClass.CreateVirtualHostMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateVirtualHostRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return A list containing the authority.
*/
java.util.List
getAuthorityList();
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return The count of authority.
*/
int getAuthorityCount();
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
java.lang.String getAuthority(int index);
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
com.google.protobuf.ByteString
getAuthorityBytes(int index);
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
java.util.List
getRoutesList();
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index);
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
int getRoutesCount();
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList();
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index);
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
java.util.List
getModifyRequestHeadersList();
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index);
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
int getModifyRequestHeadersCount();
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList();
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index);
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
java.util.List
getModifyResponseHeadersList();
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index);
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
int getModifyResponseHeadersCount();
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList();
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index);
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return Whether the routeOptions field is set.
*/
boolean hasRouteOptions();
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return The routeOptions.
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions();
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.UpdateVirtualHostRequest}
*/
public static final class UpdateVirtualHostRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostRequest)
UpdateVirtualHostRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateVirtualHostRequest.newBuilder() to construct.
private UpdateVirtualHostRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateVirtualHostRequest() {
httpRouterId_ = "";
virtualHostName_ = "";
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
routes_ = java.util.Collections.emptyList();
modifyRequestHeaders_ = java.util.Collections.emptyList();
modifyResponseHeaders_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateVirtualHostRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateVirtualHostRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = s;
break;
}
case 26: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
authority_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
authority_.add(s);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
routes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
routes_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
modifyRequestHeaders_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
modifyResponseHeaders_.add(
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.parser(), extensionRegistry));
break;
}
case 74: {
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder subBuilder = null;
if (routeOptions_ != null) {
subBuilder = routeOptions_.toBuilder();
}
routeOptions_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(routeOptions_);
routeOptions_ = 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_ & 0x00000001) != 0)) {
authority_ = authority_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
routes_ = java.util.Collections.unmodifiableList(routes_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = java.util.Collections.unmodifiableList(modifyRequestHeaders_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = java.util.Collections.unmodifiableList(modifyResponseHeaders_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 3;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int AUTHORITY_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList authority_;
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return A list containing the authority.
*/
public com.google.protobuf.ProtocolStringList
getAuthorityList() {
return authority_;
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return The count of authority.
*/
public int getAuthorityCount() {
return authority_.size();
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
public java.lang.String getAuthority(int index) {
return authority_.get(index);
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
public com.google.protobuf.ByteString
getAuthorityBytes(int index) {
return authority_.getByteString(index);
}
public static final int ROUTES_FIELD_NUMBER = 6;
private java.util.List routes_;
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
@java.lang.Override
public java.util.List getRoutesList() {
return routes_;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList() {
return routes_;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
@java.lang.Override
public int getRoutesCount() {
return routes_.size();
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index) {
return routes_.get(index);
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index) {
return routes_.get(index);
}
public static final int MODIFY_REQUEST_HEADERS_FIELD_NUMBER = 7;
private java.util.List modifyRequestHeaders_;
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
@java.lang.Override
public java.util.List getModifyRequestHeadersList() {
return modifyRequestHeaders_;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList() {
return modifyRequestHeaders_;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
@java.lang.Override
public int getModifyRequestHeadersCount() {
return modifyRequestHeaders_.size();
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index) {
return modifyRequestHeaders_.get(index);
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index) {
return modifyRequestHeaders_.get(index);
}
public static final int MODIFY_RESPONSE_HEADERS_FIELD_NUMBER = 8;
private java.util.List modifyResponseHeaders_;
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
@java.lang.Override
public java.util.List getModifyResponseHeadersList() {
return modifyResponseHeaders_;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList() {
return modifyResponseHeaders_;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
@java.lang.Override
public int getModifyResponseHeadersCount() {
return modifyResponseHeaders_.size();
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index) {
return modifyResponseHeaders_.get(index);
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index) {
return modifyResponseHeaders_.get(index);
}
public static final int ROUTE_OPTIONS_FIELD_NUMBER = 9;
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return Whether the routeOptions field is set.
*/
@java.lang.Override
public boolean hasRouteOptions() {
return routeOptions_ != null;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return The routeOptions.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
return getRouteOptions();
}
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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
if (updateMask_ != null) {
output.writeMessage(3, getUpdateMask());
}
for (int i = 0; i < authority_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authority_.getRaw(i));
}
for (int i = 0; i < routes_.size(); i++) {
output.writeMessage(6, routes_.get(i));
}
for (int i = 0; i < modifyRequestHeaders_.size(); i++) {
output.writeMessage(7, modifyRequestHeaders_.get(i));
}
for (int i = 0; i < modifyResponseHeaders_.size(); i++) {
output.writeMessage(8, modifyResponseHeaders_.get(i));
}
if (routeOptions_ != null) {
output.writeMessage(9, getRouteOptions());
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdateMask());
}
{
int dataSize = 0;
for (int i = 0; i < authority_.size(); i++) {
dataSize += computeStringSizeNoTag(authority_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthorityList().size();
}
for (int i = 0; i < routes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, routes_.get(i));
}
for (int i = 0; i < modifyRequestHeaders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, modifyRequestHeaders_.get(i));
}
for (int i = 0; i < modifyResponseHeaders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, modifyResponseHeaders_.get(i));
}
if (routeOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getRouteOptions());
}
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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getAuthorityList()
.equals(other.getAuthorityList())) return false;
if (!getRoutesList()
.equals(other.getRoutesList())) return false;
if (!getModifyRequestHeadersList()
.equals(other.getModifyRequestHeadersList())) return false;
if (!getModifyResponseHeadersList()
.equals(other.getModifyResponseHeadersList())) return false;
if (hasRouteOptions() != other.hasRouteOptions()) return false;
if (hasRouteOptions()) {
if (!getRouteOptions()
.equals(other.getRouteOptions())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
if (getAuthorityCount() > 0) {
hash = (37 * hash) + AUTHORITY_FIELD_NUMBER;
hash = (53 * hash) + getAuthorityList().hashCode();
}
if (getRoutesCount() > 0) {
hash = (37 * hash) + ROUTES_FIELD_NUMBER;
hash = (53 * hash) + getRoutesList().hashCode();
}
if (getModifyRequestHeadersCount() > 0) {
hash = (37 * hash) + MODIFY_REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getModifyRequestHeadersList().hashCode();
}
if (getModifyResponseHeadersCount() > 0) {
hash = (37 * hash) + MODIFY_RESPONSE_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getModifyResponseHeadersList().hashCode();
}
if (hasRouteOptions()) {
hash = (37 * hash) + ROUTE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRouteOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest 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.UpdateVirtualHostRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRoutesFieldBuilder();
getModifyRequestHeadersFieldBuilder();
getModifyResponseHeadersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
httpRouterId_ = "";
virtualHostName_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
routesBuilder_.clear();
}
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
modifyRequestHeadersBuilder_.clear();
}
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
modifyResponseHeadersBuilder_.clear();
}
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest(this);
int from_bitField0_ = bitField0_;
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
authority_ = authority_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.authority_ = authority_;
if (routesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
routes_ = java.util.Collections.unmodifiableList(routes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.routes_ = routes_;
} else {
result.routes_ = routesBuilder_.build();
}
if (modifyRequestHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = java.util.Collections.unmodifiableList(modifyRequestHeaders_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.modifyRequestHeaders_ = modifyRequestHeaders_;
} else {
result.modifyRequestHeaders_ = modifyRequestHeadersBuilder_.build();
}
if (modifyResponseHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = java.util.Collections.unmodifiableList(modifyResponseHeaders_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.modifyResponseHeaders_ = modifyResponseHeaders_;
} else {
result.modifyResponseHeaders_ = modifyResponseHeadersBuilder_.build();
}
if (routeOptionsBuilder_ == null) {
result.routeOptions_ = routeOptions_;
} else {
result.routeOptions_ = routeOptionsBuilder_.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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.authority_.isEmpty()) {
if (authority_.isEmpty()) {
authority_ = other.authority_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAuthorityIsMutable();
authority_.addAll(other.authority_);
}
onChanged();
}
if (routesBuilder_ == null) {
if (!other.routes_.isEmpty()) {
if (routes_.isEmpty()) {
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRoutesIsMutable();
routes_.addAll(other.routes_);
}
onChanged();
}
} else {
if (!other.routes_.isEmpty()) {
if (routesBuilder_.isEmpty()) {
routesBuilder_.dispose();
routesBuilder_ = null;
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
routesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRoutesFieldBuilder() : null;
} else {
routesBuilder_.addAllMessages(other.routes_);
}
}
}
if (modifyRequestHeadersBuilder_ == null) {
if (!other.modifyRequestHeaders_.isEmpty()) {
if (modifyRequestHeaders_.isEmpty()) {
modifyRequestHeaders_ = other.modifyRequestHeaders_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.addAll(other.modifyRequestHeaders_);
}
onChanged();
}
} else {
if (!other.modifyRequestHeaders_.isEmpty()) {
if (modifyRequestHeadersBuilder_.isEmpty()) {
modifyRequestHeadersBuilder_.dispose();
modifyRequestHeadersBuilder_ = null;
modifyRequestHeaders_ = other.modifyRequestHeaders_;
bitField0_ = (bitField0_ & ~0x00000004);
modifyRequestHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModifyRequestHeadersFieldBuilder() : null;
} else {
modifyRequestHeadersBuilder_.addAllMessages(other.modifyRequestHeaders_);
}
}
}
if (modifyResponseHeadersBuilder_ == null) {
if (!other.modifyResponseHeaders_.isEmpty()) {
if (modifyResponseHeaders_.isEmpty()) {
modifyResponseHeaders_ = other.modifyResponseHeaders_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.addAll(other.modifyResponseHeaders_);
}
onChanged();
}
} else {
if (!other.modifyResponseHeaders_.isEmpty()) {
if (modifyResponseHeadersBuilder_.isEmpty()) {
modifyResponseHeadersBuilder_.dispose();
modifyResponseHeadersBuilder_ = null;
modifyResponseHeaders_ = other.modifyResponseHeaders_;
bitField0_ = (bitField0_ & ~0x00000008);
modifyResponseHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModifyResponseHeadersFieldBuilder() : null;
} else {
modifyResponseHeadersBuilder_.addAllMessages(other.modifyResponseHeaders_);
}
}
}
if (other.hasRouteOptions()) {
mergeRouteOptions(other.getRouteOptions());
}
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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to update a virtual host in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host.
* Used only to refer to the virtual host. The name of a host cannot be changed.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask that specifies which attributes of the virtual host should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private com.google.protobuf.LazyStringList authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthorityIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
authority_ = new com.google.protobuf.LazyStringArrayList(authority_);
bitField0_ |= 0x00000001;
}
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return A list containing the authority.
*/
public com.google.protobuf.ProtocolStringList
getAuthorityList() {
return authority_.getUnmodifiableView();
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return The count of authority.
*/
public int getAuthorityCount() {
return authority_.size();
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the element to return.
* @return The authority at the given index.
*/
public java.lang.String getAuthority(int index) {
return authority_.get(index);
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index of the value to return.
* @return The bytes of the authority at the given index.
*/
public com.google.protobuf.ByteString
getAuthorityBytes(int index) {
return authority_.getByteString(index);
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param index The index to set the value at.
* @param value The authority to set.
* @return This builder for chaining.
*/
public Builder setAuthority(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorityIsMutable();
authority_.set(index, value);
onChanged();
return this;
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param value The authority to add.
* @return This builder for chaining.
*/
public Builder addAuthority(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorityIsMutable();
authority_.add(value);
onChanged();
return this;
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param values The authority to add.
* @return This builder for chaining.
*/
public Builder addAllAuthority(
java.lang.Iterable values) {
ensureAuthorityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authority_);
onChanged();
return this;
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @return This builder for chaining.
*/
public Builder clearAuthority() {
authority_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* New list of domains to attribute to the virtual host.
* The host is selected to process the request received by the load balancer
* if the domain specified in the HTTP/1.1 `Host` header or the HTTP/2 `:authority` pseudo-header matches a domain
* specified in the host.
* A wildcard asterisk character (`*`) matches 0 or more characters.
* Existing list of domains is completely replaced by the specified list.
* If not specified, all domains are attributed to the host, which is the same as specifying a `*` value.
* An HTTP router must not contain more than one virtual host to which all domains are attributed.
*
*
* repeated string authority = 4;
* @param value The bytes of the authority to add.
* @return This builder for chaining.
*/
public Builder addAuthorityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAuthorityIsMutable();
authority_.add(value);
onChanged();
return this;
}
private java.util.List routes_ =
java.util.Collections.emptyList();
private void ensureRoutesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
routes_ = new java.util.ArrayList(routes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder> routesBuilder_;
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public java.util.List getRoutesList() {
if (routesBuilder_ == null) {
return java.util.Collections.unmodifiableList(routes_);
} else {
return routesBuilder_.getMessageList();
}
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public int getRoutesCount() {
if (routesBuilder_ == null) {
return routes_.size();
} else {
return routesBuilder_.getCount();
}
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route getRoutes(int index) {
if (routesBuilder_ == null) {
return routes_.get(index);
} else {
return routesBuilder_.getMessage(index);
}
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder setRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.set(index, value);
onChanged();
} else {
routesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder setRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.set(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder addRoutes(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(value);
onChanged();
} else {
routesBuilder_.addMessage(value);
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder addRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(index, value);
onChanged();
} else {
routesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder addRoutes(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder addRoutes(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder addAllRoutes(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route> values) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, routes_);
onChanged();
} else {
routesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder clearRoutes() {
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
routesBuilder_.clear();
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public Builder removeRoutes(int index) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.remove(index);
onChanged();
} else {
routesBuilder_.remove(index);
}
return this;
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder getRoutesBuilder(
int index) {
return getRoutesFieldBuilder().getBuilder(index);
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder getRoutesOrBuilder(
int index) {
if (routesBuilder_ == null) {
return routes_.get(index); } else {
return routesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesOrBuilderList() {
if (routesBuilder_ != null) {
return routesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(routes_);
}
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder addRoutesBuilder() {
return getRoutesFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.getDefaultInstance());
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder addRoutesBuilder(
int index) {
return getRoutesFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.getDefaultInstance());
}
/**
*
* New list of routes of the virtual host.
* A route contains a set of conditions (predicates) that are used by the load balancer to select the route
* for the request and an action on the request.
* For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#routes).
* The order of routes matters: the first route whose predicate matches the request is selected.
* The most specific routes should be at the top of the list, so that they are not overridden.
* For example, if the first HTTP route is configured, via [HttpRoute.match], to match paths prefixed with just `/`,
* other routes are never matched.
* Existing list of routes is completely replaced by the specified list, so if you just want to remove a route,
* make a [VirtualHostService.RemoveRoute] request.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.Route routes = 6;
*/
public java.util.List
getRoutesBuilderList() {
return getRoutesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>
getRoutesFieldBuilder() {
if (routesBuilder_ == null) {
routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.Route.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOrBuilder>(
routes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
routes_ = null;
}
return routesBuilder_;
}
private java.util.List modifyRequestHeaders_ =
java.util.Collections.emptyList();
private void ensureModifyRequestHeadersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
modifyRequestHeaders_ = new java.util.ArrayList(modifyRequestHeaders_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder> modifyRequestHeadersBuilder_;
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public java.util.List getModifyRequestHeadersList() {
if (modifyRequestHeadersBuilder_ == null) {
return java.util.Collections.unmodifiableList(modifyRequestHeaders_);
} else {
return modifyRequestHeadersBuilder_.getMessageList();
}
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public int getModifyRequestHeadersCount() {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.size();
} else {
return modifyRequestHeadersBuilder_.getCount();
}
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyRequestHeaders(int index) {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.get(index);
} else {
return modifyRequestHeadersBuilder_.getMessage(index);
}
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder setModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.set(index, value);
onChanged();
} else {
modifyRequestHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder setModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.set(index, builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder addModifyRequestHeaders(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(value);
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder addModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyRequestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(index, value);
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder addModifyRequestHeaders(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder addModifyRequestHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.add(index, builderForValue.build());
onChanged();
} else {
modifyRequestHeadersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder addAllModifyRequestHeaders(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification> values) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modifyRequestHeaders_);
onChanged();
} else {
modifyRequestHeadersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder clearModifyRequestHeaders() {
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
modifyRequestHeadersBuilder_.clear();
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public Builder removeModifyRequestHeaders(int index) {
if (modifyRequestHeadersBuilder_ == null) {
ensureModifyRequestHeadersIsMutable();
modifyRequestHeaders_.remove(index);
onChanged();
} else {
modifyRequestHeadersBuilder_.remove(index);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder getModifyRequestHeadersBuilder(
int index) {
return getModifyRequestHeadersFieldBuilder().getBuilder(index);
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyRequestHeadersOrBuilder(
int index) {
if (modifyRequestHeadersBuilder_ == null) {
return modifyRequestHeaders_.get(index); } else {
return modifyRequestHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersOrBuilderList() {
if (modifyRequestHeadersBuilder_ != null) {
return modifyRequestHeadersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modifyRequestHeaders_);
}
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyRequestHeadersBuilder() {
return getModifyRequestHeadersFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyRequestHeadersBuilder(
int index) {
return getModifyRequestHeadersFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* New list of modifications that are made to the headers of incoming HTTP requests
* before they are forwarded to backends.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_request_headers = 7;
*/
public java.util.List
getModifyRequestHeadersBuilderList() {
return getModifyRequestHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyRequestHeadersFieldBuilder() {
if (modifyRequestHeadersBuilder_ == null) {
modifyRequestHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>(
modifyRequestHeaders_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
modifyRequestHeaders_ = null;
}
return modifyRequestHeadersBuilder_;
}
private java.util.List modifyResponseHeaders_ =
java.util.Collections.emptyList();
private void ensureModifyResponseHeadersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
modifyResponseHeaders_ = new java.util.ArrayList(modifyResponseHeaders_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder> modifyResponseHeadersBuilder_;
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public java.util.List getModifyResponseHeadersList() {
if (modifyResponseHeadersBuilder_ == null) {
return java.util.Collections.unmodifiableList(modifyResponseHeaders_);
} else {
return modifyResponseHeadersBuilder_.getMessageList();
}
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public int getModifyResponseHeadersCount() {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.size();
} else {
return modifyResponseHeadersBuilder_.getCount();
}
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification getModifyResponseHeaders(int index) {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.get(index);
} else {
return modifyResponseHeadersBuilder_.getMessage(index);
}
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder setModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.set(index, value);
onChanged();
} else {
modifyResponseHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder setModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.set(index, builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder addModifyResponseHeaders(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(value);
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder addModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification value) {
if (modifyResponseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(index, value);
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder addModifyResponseHeaders(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder addModifyResponseHeaders(
int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder builderForValue) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.add(index, builderForValue.build());
onChanged();
} else {
modifyResponseHeadersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder addAllModifyResponseHeaders(
java.lang.Iterable extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification> values) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modifyResponseHeaders_);
onChanged();
} else {
modifyResponseHeadersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder clearModifyResponseHeaders() {
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
modifyResponseHeadersBuilder_.clear();
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public Builder removeModifyResponseHeaders(int index) {
if (modifyResponseHeadersBuilder_ == null) {
ensureModifyResponseHeadersIsMutable();
modifyResponseHeaders_.remove(index);
onChanged();
} else {
modifyResponseHeadersBuilder_.remove(index);
}
return this;
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder getModifyResponseHeadersBuilder(
int index) {
return getModifyResponseHeadersFieldBuilder().getBuilder(index);
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder getModifyResponseHeadersOrBuilder(
int index) {
if (modifyResponseHeadersBuilder_ == null) {
return modifyResponseHeaders_.get(index); } else {
return modifyResponseHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public java.util.List extends yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersOrBuilderList() {
if (modifyResponseHeadersBuilder_ != null) {
return modifyResponseHeadersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modifyResponseHeaders_);
}
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyResponseHeadersBuilder() {
return getModifyResponseHeadersFieldBuilder().addBuilder(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder addModifyResponseHeadersBuilder(
int index) {
return getModifyResponseHeadersFieldBuilder().addBuilder(
index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.getDefaultInstance());
}
/**
*
* New list of modifications that are made to the headers of HTTP responses received from backends
* before responses are forwarded to clients.
* Existing list of modifications is completely replaced by the specified list.
*
*
* repeated .yandex.cloud.apploadbalancer.v1.HeaderModification modify_response_headers = 8;
*/
public java.util.List
getModifyResponseHeadersBuilderList() {
return getModifyResponseHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>
getModifyResponseHeadersFieldBuilder() {
if (modifyResponseHeadersBuilder_ == null) {
modifyResponseHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModification.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HeaderModificationOrBuilder>(
modifyResponseHeaders_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
modifyResponseHeaders_ = null;
}
return modifyResponseHeadersBuilder_;
}
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder> routeOptionsBuilder_;
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return Whether the routeOptions field is set.
*/
public boolean hasRouteOptions() {
return routeOptionsBuilder_ != null || routeOptions_ != null;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
* @return The routeOptions.
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
if (routeOptionsBuilder_ == null) {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
} else {
return routeOptionsBuilder_.getMessage();
}
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public Builder setRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routeOptions_ = value;
onChanged();
} else {
routeOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public Builder setRouteOptions(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder builderForValue) {
if (routeOptionsBuilder_ == null) {
routeOptions_ = builderForValue.build();
onChanged();
} else {
routeOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public Builder mergeRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (routeOptions_ != null) {
routeOptions_ =
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.newBuilder(routeOptions_).mergeFrom(value).buildPartial();
} else {
routeOptions_ = value;
}
onChanged();
} else {
routeOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public Builder clearRouteOptions() {
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
onChanged();
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
return this;
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder getRouteOptionsBuilder() {
onChanged();
return getRouteOptionsFieldBuilder().getBuilder();
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
if (routeOptionsBuilder_ != null) {
return routeOptionsBuilder_.getMessageOrBuilder();
} else {
return routeOptions_ == null ?
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
}
/**
*
* New route options for the virtual host.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>
getRouteOptionsFieldBuilder() {
if (routeOptionsBuilder_ == null) {
routeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>(
getRouteOptions(),
getParentForChildren(),
isClean());
routeOptions_ = null;
}
return routeOptionsBuilder_;
}
@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.UpdateVirtualHostRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateVirtualHostRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateVirtualHostRequest(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.VirtualHostServiceOuterClass.UpdateVirtualHostRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateVirtualHostMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.UpdateVirtualHostMetadata}
*/
public static final class UpdateVirtualHostMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostMetadata)
UpdateVirtualHostMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateVirtualHostMetadata.newBuilder() to construct.
private UpdateVirtualHostMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateVirtualHostMetadata() {
httpRouterId_ = "";
virtualHostName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateVirtualHostMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateVirtualHostMetadata(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata 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.UpdateVirtualHostMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostMetadata)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.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();
httpRouterId_ = "";
virtualHostName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being updated in.
*
*
* string http_router_id = 1;
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being updated.
*
*
* string virtual_host_name = 2;
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = 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.UpdateVirtualHostMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.UpdateVirtualHostMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateVirtualHostMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateVirtualHostMetadata(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.VirtualHostServiceOuterClass.UpdateVirtualHostMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteVirtualHostRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.DeleteVirtualHostRequest}
*/
public static final class DeleteVirtualHostRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostRequest)
DeleteVirtualHostRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteVirtualHostRequest.newBuilder() to construct.
private DeleteVirtualHostRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteVirtualHostRequest() {
httpRouterId_ = "";
virtualHostName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteVirtualHostRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteVirtualHostRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest 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.DeleteVirtualHostRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.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();
httpRouterId_ = "";
virtualHostName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to delete a virtual host from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host to delete.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?"];
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = 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.DeleteVirtualHostRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteVirtualHostRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteVirtualHostRequest(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.VirtualHostServiceOuterClass.DeleteVirtualHostRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteVirtualHostMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.DeleteVirtualHostMetadata}
*/
public static final class DeleteVirtualHostMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostMetadata)
DeleteVirtualHostMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteVirtualHostMetadata.newBuilder() to construct.
private DeleteVirtualHostMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteVirtualHostMetadata() {
httpRouterId_ = "";
virtualHostName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteVirtualHostMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteVirtualHostMetadata(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata 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.DeleteVirtualHostMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostMetadata)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.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();
httpRouterId_ = "";
virtualHostName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the virtual host is being deleted from.
*
*
* string http_router_id = 1;
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host that is being deleted.
*
*
* string virtual_host_name = 2;
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = 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.DeleteVirtualHostMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.DeleteVirtualHostMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteVirtualHostMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteVirtualHostMetadata(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.VirtualHostServiceOuterClass.DeleteVirtualHostMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveRouteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.RemoveRouteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
java.lang.String getRouteName();
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
com.google.protobuf.ByteString
getRouteNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.RemoveRouteRequest}
*/
public static final class RemoveRouteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.RemoveRouteRequest)
RemoveRouteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveRouteRequest.newBuilder() to construct.
private RemoveRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveRouteRequest() {
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveRouteRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveRouteRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
routeName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object routeName_;
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
@java.lang.Override
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
}
}
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeName_);
}
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.VirtualHostServiceOuterClass.RemoveRouteRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) return false;
if (!getRouteName()
.equals(other.getRouteName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest 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.VirtualHostServiceOuterClass.RemoveRouteRequest 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.RemoveRouteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.RemoveRouteRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.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();
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
result.routeName_ = routeName_;
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.VirtualHostServiceOuterClass.RemoveRouteRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
onChanged();
}
if (!other.getRouteName().isEmpty()) {
routeName_ = other.routeName_;
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.VirtualHostServiceOuterClass.RemoveRouteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to delete a route from.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host to delete a route from.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = value;
onChanged();
return this;
}
private java.lang.Object routeName_ = "";
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @param value The routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
routeName_ = value;
onChanged();
return this;
}
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearRouteName() {
routeName_ = getDefaultInstance().getRouteName();
onChanged();
return this;
}
/**
*
* Name of the route to delete.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @param value The bytes for routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
routeName_ = 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.RemoveRouteRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.RemoveRouteRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveRouteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveRouteRequest(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.VirtualHostServiceOuterClass.RemoveRouteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveRouteMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.RemoveRouteMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The routeName.
*/
java.lang.String getRouteName();
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
com.google.protobuf.ByteString
getRouteNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.RemoveRouteMetadata}
*/
public static final class RemoveRouteMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.RemoveRouteMetadata)
RemoveRouteMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveRouteMetadata.newBuilder() to construct.
private RemoveRouteMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveRouteMetadata() {
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveRouteMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveRouteMetadata(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
routeName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object routeName_;
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The routeName.
*/
@java.lang.Override
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
}
}
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeName_);
}
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.VirtualHostServiceOuterClass.RemoveRouteMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) return false;
if (!getRouteName()
.equals(other.getRouteName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.VirtualHostServiceOuterClass.RemoveRouteMetadata 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.RemoveRouteMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.RemoveRouteMetadata)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.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();
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
result.routeName_ = routeName_;
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.VirtualHostServiceOuterClass.RemoveRouteMetadata) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
onChanged();
}
if (!other.getRouteName().isEmpty()) {
routeName_ = other.routeName_;
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.VirtualHostServiceOuterClass.RemoveRouteMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the route is being deleted from.
*
*
* string http_router_id = 1;
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host that the route is being deleted from.
*
*
* string virtual_host_name = 2;
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = value;
onChanged();
return this;
}
private java.lang.Object routeName_ = "";
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The routeName.
*/
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @param value The routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
routeName_ = value;
onChanged();
return this;
}
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @return This builder for chaining.
*/
public Builder clearRouteName() {
routeName_ = getDefaultInstance().getRouteName();
onChanged();
return this;
}
/**
*
* Name of the route that is being deleted.
*
*
* string route_name = 3;
* @param value The bytes for routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
routeName_ = 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.RemoveRouteMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.RemoveRouteMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.RemoveRouteMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveRouteMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveRouteMetadata(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.VirtualHostServiceOuterClass.RemoveRouteMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRouteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.UpdateRouteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
java.lang.String getRouteName();
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
com.google.protobuf.ByteString
getRouteNameBytes();
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return Whether the http field is set.
*/
boolean hasHttp();
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return The http.
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute getHttp();
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder getHttpOrBuilder();
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return Whether the grpc field is set.
*/
boolean hasGrpc();
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return The grpc.
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute getGrpc();
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder getGrpcOrBuilder();
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return Whether the routeOptions field is set.
*/
boolean hasRouteOptions();
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return The routeOptions.
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions();
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder();
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.RouteCase getRouteCase();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.UpdateRouteRequest}
*/
public static final class UpdateRouteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.UpdateRouteRequest)
UpdateRouteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRouteRequest.newBuilder() to construct.
private UpdateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRouteRequest() {
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRouteRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRouteRequest(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
routeName_ = s;
break;
}
case 34: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 42: {
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder subBuilder = null;
if (routeCase_ == 5) {
subBuilder = ((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_).toBuilder();
}
route_ =
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_);
route_ = subBuilder.buildPartial();
}
routeCase_ = 5;
break;
}
case 50: {
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder subBuilder = null;
if (routeCase_ == 6) {
subBuilder = ((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_).toBuilder();
}
route_ =
input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_);
route_ = subBuilder.buildPartial();
}
routeCase_ = 6;
break;
}
case 58: {
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder subBuilder = null;
if (routeOptions_ != null) {
subBuilder = routeOptions_.toBuilder();
}
routeOptions_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(routeOptions_);
routeOptions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.Builder.class);
}
private int routeCase_ = 0;
private java.lang.Object route_;
public enum RouteCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HTTP(5),
GRPC(6),
ROUTE_NOT_SET(0);
private final int value;
private RouteCase(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 RouteCase valueOf(int value) {
return forNumber(value);
}
public static RouteCase forNumber(int value) {
switch (value) {
case 5: return HTTP;
case 6: return GRPC;
case 0: return ROUTE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RouteCase
getRouteCase() {
return RouteCase.forNumber(
routeCase_);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object routeName_;
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
@java.lang.Override
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
}
}
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 4;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int HTTP_FIELD_NUMBER = 5;
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return Whether the http field is set.
*/
@java.lang.Override
public boolean hasHttp() {
return routeCase_ == 5;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return The http.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute getHttp() {
if (routeCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder getHttpOrBuilder() {
if (routeCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
}
public static final int GRPC_FIELD_NUMBER = 6;
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return Whether the grpc field is set.
*/
@java.lang.Override
public boolean hasGrpc() {
return routeCase_ == 6;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return The grpc.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute getGrpc() {
if (routeCase_ == 6) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder getGrpcOrBuilder() {
if (routeCase_ == 6) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
}
public static final int ROUTE_OPTIONS_FIELD_NUMBER = 7;
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return Whether the routeOptions field is set.
*/
@java.lang.Override
public boolean hasRouteOptions() {
return routeOptions_ != null;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return The routeOptions.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
return getRouteOptions();
}
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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeName_);
}
if (updateMask_ != null) {
output.writeMessage(4, getUpdateMask());
}
if (routeCase_ == 5) {
output.writeMessage(5, (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_);
}
if (routeCase_ == 6) {
output.writeMessage(6, (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_);
}
if (routeOptions_ != null) {
output.writeMessage(7, getRouteOptions());
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeName_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUpdateMask());
}
if (routeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_);
}
if (routeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_);
}
if (routeOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getRouteOptions());
}
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.VirtualHostServiceOuterClass.UpdateRouteRequest)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) return false;
if (!getRouteName()
.equals(other.getRouteName())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (hasRouteOptions() != other.hasRouteOptions()) return false;
if (hasRouteOptions()) {
if (!getRouteOptions()
.equals(other.getRouteOptions())) return false;
}
if (!getRouteCase().equals(other.getRouteCase())) return false;
switch (routeCase_) {
case 5:
if (!getHttp()
.equals(other.getHttp())) return false;
break;
case 6:
if (!getGrpc()
.equals(other.getGrpc())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteName().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
if (hasRouteOptions()) {
hash = (37 * hash) + ROUTE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRouteOptions().hashCode();
}
switch (routeCase_) {
case 5:
hash = (37 * hash) + HTTP_FIELD_NUMBER;
hash = (53 * hash) + getHttp().hashCode();
break;
case 6:
hash = (37 * hash) + GRPC_FIELD_NUMBER;
hash = (53 * hash) + getGrpc().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest 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.VirtualHostServiceOuterClass.UpdateRouteRequest 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.UpdateRouteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.UpdateRouteRequest)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.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();
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
routeCase_ = 0;
route_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
result.routeName_ = routeName_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
if (routeCase_ == 5) {
if (httpBuilder_ == null) {
result.route_ = route_;
} else {
result.route_ = httpBuilder_.build();
}
}
if (routeCase_ == 6) {
if (grpcBuilder_ == null) {
result.route_ = route_;
} else {
result.route_ = grpcBuilder_.build();
}
}
if (routeOptionsBuilder_ == null) {
result.routeOptions_ = routeOptions_;
} else {
result.routeOptions_ = routeOptionsBuilder_.build();
}
result.routeCase_ = routeCase_;
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.VirtualHostServiceOuterClass.UpdateRouteRequest) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
onChanged();
}
if (!other.getRouteName().isEmpty()) {
routeName_ = other.routeName_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (other.hasRouteOptions()) {
mergeRouteOptions(other.getRouteOptions());
}
switch (other.getRouteCase()) {
case HTTP: {
mergeHttp(other.getHttp());
break;
}
case GRPC: {
mergeGrpc(other.getGrpc());
break;
}
case ROUTE_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.VirtualHostServiceOuterClass.UpdateRouteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int routeCase_ = 0;
private java.lang.Object route_;
public RouteCase
getRouteCase() {
return RouteCase.forNumber(
routeCase_);
}
public Builder clearRoute() {
routeCase_ = 0;
route_ = null;
onChanged();
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router to update a route in.
* To get the HTTP router ID, make a [HttpRouterService.List] request.
*
*
* string http_router_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host to update a route in.
* To get the virtual host name, make a [VirtualHostService.List] request.
*
*
* string virtual_host_name = 2 [(.yandex.cloud.required) = true];
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = value;
onChanged();
return this;
}
private java.lang.Object routeName_ = "";
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The routeName.
*/
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return The bytes for routeName.
*/
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @param value The routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
routeName_ = value;
onChanged();
return this;
}
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearRouteName() {
routeName_ = getDefaultInstance().getRouteName();
onChanged();
return this;
}
/**
*
* Name of the route to update.
* To get the route name, make a [VirtualHostService.Get] request.
*
*
* string route_name = 3 [(.yandex.cloud.required) = true];
* @param value The bytes for routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
routeName_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask that specifies which attributes of the route should be updated.
*
*
* .google.protobuf.FieldMask update_mask = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder> httpBuilder_;
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return Whether the http field is set.
*/
@java.lang.Override
public boolean hasHttp() {
return routeCase_ == 5;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
* @return The http.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute getHttp() {
if (httpBuilder_ == null) {
if (routeCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
} else {
if (routeCase_ == 5) {
return httpBuilder_.getMessage();
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
}
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
public Builder setHttp(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute value) {
if (httpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
route_ = value;
onChanged();
} else {
httpBuilder_.setMessage(value);
}
routeCase_ = 5;
return this;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
public Builder setHttp(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder builderForValue) {
if (httpBuilder_ == null) {
route_ = builderForValue.build();
onChanged();
} else {
httpBuilder_.setMessage(builderForValue.build());
}
routeCase_ = 5;
return this;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
public Builder mergeHttp(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute value) {
if (httpBuilder_ == null) {
if (routeCase_ == 5 &&
route_ != yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance()) {
route_ = yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.newBuilder((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_)
.mergeFrom(value).buildPartial();
} else {
route_ = value;
}
onChanged();
} else {
if (routeCase_ == 5) {
httpBuilder_.mergeFrom(value);
}
httpBuilder_.setMessage(value);
}
routeCase_ = 5;
return this;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
public Builder clearHttp() {
if (httpBuilder_ == null) {
if (routeCase_ == 5) {
routeCase_ = 0;
route_ = null;
onChanged();
}
} else {
if (routeCase_ == 5) {
routeCase_ = 0;
route_ = null;
}
httpBuilder_.clear();
}
return this;
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder getHttpBuilder() {
return getHttpFieldBuilder().getBuilder();
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder getHttpOrBuilder() {
if ((routeCase_ == 5) && (httpBuilder_ != null)) {
return httpBuilder_.getMessageOrBuilder();
} else {
if (routeCase_ == 5) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
}
}
/**
*
* New settings of the HTTP route.
*
*
* .yandex.cloud.apploadbalancer.v1.HttpRoute http = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder>
getHttpFieldBuilder() {
if (httpBuilder_ == null) {
if (!(routeCase_ == 5)) {
route_ = yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.getDefaultInstance();
}
httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRouteOrBuilder>(
(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.HttpRoute) route_,
getParentForChildren(),
isClean());
route_ = null;
}
routeCase_ = 5;
onChanged();;
return httpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder> grpcBuilder_;
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return Whether the grpc field is set.
*/
@java.lang.Override
public boolean hasGrpc() {
return routeCase_ == 6;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
* @return The grpc.
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute getGrpc() {
if (grpcBuilder_ == null) {
if (routeCase_ == 6) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
} else {
if (routeCase_ == 6) {
return grpcBuilder_.getMessage();
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
}
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
public Builder setGrpc(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute value) {
if (grpcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
route_ = value;
onChanged();
} else {
grpcBuilder_.setMessage(value);
}
routeCase_ = 6;
return this;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
public Builder setGrpc(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder builderForValue) {
if (grpcBuilder_ == null) {
route_ = builderForValue.build();
onChanged();
} else {
grpcBuilder_.setMessage(builderForValue.build());
}
routeCase_ = 6;
return this;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
public Builder mergeGrpc(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute value) {
if (grpcBuilder_ == null) {
if (routeCase_ == 6 &&
route_ != yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance()) {
route_ = yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.newBuilder((yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_)
.mergeFrom(value).buildPartial();
} else {
route_ = value;
}
onChanged();
} else {
if (routeCase_ == 6) {
grpcBuilder_.mergeFrom(value);
}
grpcBuilder_.setMessage(value);
}
routeCase_ = 6;
return this;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
public Builder clearGrpc() {
if (grpcBuilder_ == null) {
if (routeCase_ == 6) {
routeCase_ = 0;
route_ = null;
onChanged();
}
} else {
if (routeCase_ == 6) {
routeCase_ = 0;
route_ = null;
}
grpcBuilder_.clear();
}
return this;
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder getGrpcBuilder() {
return getGrpcFieldBuilder().getBuilder();
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder getGrpcOrBuilder() {
if ((routeCase_ == 6) && (grpcBuilder_ != null)) {
return grpcBuilder_.getMessageOrBuilder();
} else {
if (routeCase_ == 6) {
return (yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_;
}
return yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
}
}
/**
*
* New settings of the gRPC route.
*
*
* .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder>
getGrpcFieldBuilder() {
if (grpcBuilder_ == null) {
if (!(routeCase_ == 6)) {
route_ = yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.getDefaultInstance();
}
grpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRouteOrBuilder>(
(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.GrpcRoute) route_,
getParentForChildren(),
isClean());
route_ = null;
}
routeCase_ = 6;
onChanged();;
return grpcBuilder_;
}
private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder> routeOptionsBuilder_;
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return Whether the routeOptions field is set.
*/
public boolean hasRouteOptions() {
return routeOptionsBuilder_ != null || routeOptions_ != null;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
* @return The routeOptions.
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() {
if (routeOptionsBuilder_ == null) {
return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
} else {
return routeOptionsBuilder_.getMessage();
}
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public Builder setRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routeOptions_ = value;
onChanged();
} else {
routeOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public Builder setRouteOptions(
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder builderForValue) {
if (routeOptionsBuilder_ == null) {
routeOptions_ = builderForValue.build();
onChanged();
} else {
routeOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public Builder mergeRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) {
if (routeOptionsBuilder_ == null) {
if (routeOptions_ != null) {
routeOptions_ =
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.newBuilder(routeOptions_).mergeFrom(value).buildPartial();
} else {
routeOptions_ = value;
}
onChanged();
} else {
routeOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public Builder clearRouteOptions() {
if (routeOptionsBuilder_ == null) {
routeOptions_ = null;
onChanged();
} else {
routeOptions_ = null;
routeOptionsBuilder_ = null;
}
return this;
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder getRouteOptionsBuilder() {
onChanged();
return getRouteOptionsFieldBuilder().getBuilder();
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() {
if (routeOptionsBuilder_ != null) {
return routeOptionsBuilder_.getMessageOrBuilder();
} else {
return routeOptions_ == null ?
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_;
}
}
/**
*
* New route options for the route.
*
*
* .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>
getRouteOptionsFieldBuilder() {
if (routeOptionsBuilder_ == null) {
routeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>(
getRouteOptions(),
getParentForChildren(),
isClean());
routeOptions_ = null;
}
return routeOptionsBuilder_;
}
@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.UpdateRouteRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.UpdateRouteRequest)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRouteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRouteRequest(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.VirtualHostServiceOuterClass.UpdateRouteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRouteMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.UpdateRouteMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
java.lang.String getHttpRouterId();
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
com.google.protobuf.ByteString
getHttpRouterIdBytes();
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
java.lang.String getVirtualHostName();
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
com.google.protobuf.ByteString
getVirtualHostNameBytes();
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The routeName.
*/
java.lang.String getRouteName();
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
com.google.protobuf.ByteString
getRouteNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.apploadbalancer.v1.UpdateRouteMetadata}
*/
public static final class UpdateRouteMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.UpdateRouteMetadata)
UpdateRouteMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRouteMetadata.newBuilder() to construct.
private UpdateRouteMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRouteMetadata() {
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRouteMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRouteMetadata(
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();
httpRouterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
virtualHostName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
routeName_ = 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.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.Builder.class);
}
public static final int HTTP_ROUTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object httpRouterId_;
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
@java.lang.Override
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
}
}
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_HOST_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object virtualHostName_;
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
@java.lang.Override
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
}
}
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object routeName_;
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The routeName.
*/
@java.lang.Override
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
}
}
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = 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(httpRouterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeName_);
}
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(httpRouterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpRouterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualHostName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, virtualHostName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeName_);
}
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.VirtualHostServiceOuterClass.UpdateRouteMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata other = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata) obj;
if (!getHttpRouterId()
.equals(other.getHttpRouterId())) return false;
if (!getVirtualHostName()
.equals(other.getVirtualHostName())) return false;
if (!getRouteName()
.equals(other.getRouteName())) 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) + HTTP_ROUTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHttpRouterId().hashCode();
hash = (37 * hash) + VIRTUAL_HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getVirtualHostName().hashCode();
hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.VirtualHostServiceOuterClass.UpdateRouteMetadata 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.UpdateRouteMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.UpdateRouteMetadata)
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.class, yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.Builder.class);
}
// Construct using yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.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();
httpRouterId_ = "";
virtualHostName_ = "";
routeName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata getDefaultInstanceForType() {
return yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata build() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata buildPartial() {
yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata result = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata(this);
result.httpRouterId_ = httpRouterId_;
result.virtualHostName_ = virtualHostName_;
result.routeName_ = routeName_;
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.VirtualHostServiceOuterClass.UpdateRouteMetadata) {
return mergeFrom((yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata other) {
if (other == yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata.getDefaultInstance()) return this;
if (!other.getHttpRouterId().isEmpty()) {
httpRouterId_ = other.httpRouterId_;
onChanged();
}
if (!other.getVirtualHostName().isEmpty()) {
virtualHostName_ = other.virtualHostName_;
onChanged();
}
if (!other.getRouteName().isEmpty()) {
routeName_ = other.routeName_;
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.VirtualHostServiceOuterClass.UpdateRouteMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object httpRouterId_ = "";
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The httpRouterId.
*/
public java.lang.String getHttpRouterId() {
java.lang.Object ref = httpRouterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRouterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return The bytes for httpRouterId.
*/
public com.google.protobuf.ByteString
getHttpRouterIdBytes() {
java.lang.Object ref = httpRouterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRouterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @param value The httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
httpRouterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @return This builder for chaining.
*/
public Builder clearHttpRouterId() {
httpRouterId_ = getDefaultInstance().getHttpRouterId();
onChanged();
return this;
}
/**
*
* ID of the HTTP router that the route is being updated in.
*
*
* string http_router_id = 1;
* @param value The bytes for httpRouterId to set.
* @return This builder for chaining.
*/
public Builder setHttpRouterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
httpRouterId_ = value;
onChanged();
return this;
}
private java.lang.Object virtualHostName_ = "";
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The virtualHostName.
*/
public java.lang.String getVirtualHostName() {
java.lang.Object ref = virtualHostName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
virtualHostName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return The bytes for virtualHostName.
*/
public com.google.protobuf.ByteString
getVirtualHostNameBytes() {
java.lang.Object ref = virtualHostName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
virtualHostName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @param value The virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
virtualHostName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @return This builder for chaining.
*/
public Builder clearVirtualHostName() {
virtualHostName_ = getDefaultInstance().getVirtualHostName();
onChanged();
return this;
}
/**
*
* Name of the virtual host that the route is being updated in.
*
*
* string virtual_host_name = 2;
* @param value The bytes for virtualHostName to set.
* @return This builder for chaining.
*/
public Builder setVirtualHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
virtualHostName_ = value;
onChanged();
return this;
}
private java.lang.Object routeName_ = "";
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The routeName.
*/
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return The bytes for routeName.
*/
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @param value The routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
routeName_ = value;
onChanged();
return this;
}
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @return This builder for chaining.
*/
public Builder clearRouteName() {
routeName_ = getDefaultInstance().getRouteName();
onChanged();
return this;
}
/**
*
* Name of the route that is being updated.
*
*
* string route_name = 3;
* @param value The bytes for routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
routeName_ = 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.UpdateRouteMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.UpdateRouteMetadata)
private static final yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata();
}
public static yandex.cloud.api.apploadbalancer.v1.VirtualHostServiceOuterClass.UpdateRouteMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRouteMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRouteMetadata(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.VirtualHostServiceOuterClass.UpdateRouteMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n:yandex/cloud/apploadbalancer/v1/virtua" +
"l_host_service.proto\022\037yandex.cloud.applo" +
"adbalancer.v1\032\034google/api/annotations.pr" +
"oto\032 google/protobuf/field_mask.proto\032 y" +
"andex/cloud/api/operation.proto\032&yandex/" +
"cloud/operation/operation.proto\0322yandex/" +
"cloud/apploadbalancer/v1/virtual_host.pr" +
"oto\032\035yandex/cloud/validation.proto\"|\n\025Ge" +
"tVirtualHostRequest\022\034\n\016http_router_id\030\001 " +
"\001(\tB\004\350\3071\001\022E\n\021virtual_host_name\030\002 \001(\tB*\350\307" +
"1\001\362\3071\"([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?" +
"\"u\n\027ListVirtualHostsRequest\022\034\n\016http_rout" +
"er_id\030\001 \001(\tB\004\350\3071\001\022\035\n\tpage_size\030\002 \001(\003B\n\372\307" +
"1\006<=1000\022\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=100\"" +
"x\n\030ListVirtualHostsResponse\022C\n\rvirtual_h" +
"osts\030\001 \003(\0132,.yandex.cloud.apploadbalance" +
"r.v1.VirtualHost\022\027\n\017next_page_token\030\002 \001(" +
"\t\"\252\003\n\030CreateVirtualHostRequest\022\034\n\016http_r" +
"outer_id\030\001 \001(\tB\004\350\3071\001\0224\n\004name\030\002 \001(\tB&\362\3071\"" +
"([a-z]([-a-z0-9]{0,61}[a-z0-9])?)?\022\021\n\tau" +
"thority\030\003 \003(\t\0226\n\006routes\030\005 \003(\0132&.yandex.c" +
"loud.apploadbalancer.v1.Route\022S\n\026modify_" +
"request_headers\030\006 \003(\01323.yandex.cloud.app" +
"loadbalancer.v1.HeaderModification\022T\n\027mo" +
"dify_response_headers\030\007 \003(\01323.yandex.clo" +
"ud.apploadbalancer.v1.HeaderModification" +
"\022D\n\rroute_options\030\010 \001(\0132-.yandex.cloud.a" +
"pploadbalancer.v1.RouteOptions\"T\n\031Create" +
"VirtualHostMetadata\022\034\n\016http_router_id\030\001 " +
"\001(\tB\004\350\3071\001\022\031\n\021virtual_host_name\030\002 \001(\t\"\306\003\n" +
"\030UpdateVirtualHostRequest\022\034\n\016http_router" +
"_id\030\001 \001(\tB\004\350\3071\001\022\037\n\021virtual_host_name\030\002 \001" +
"(\tB\004\350\3071\001\022/\n\013update_mask\030\003 \001(\0132\032.google.p" +
"rotobuf.FieldMask\022\021\n\tauthority\030\004 \003(\t\0226\n\006" +
"routes\030\006 \003(\0132&.yandex.cloud.apploadbalan" +
"cer.v1.Route\022S\n\026modify_request_headers\030\007" +
" \003(\01323.yandex.cloud.apploadbalancer.v1.H" +
"eaderModification\022T\n\027modify_response_hea" +
"ders\030\010 \003(\01323.yandex.cloud.apploadbalance" +
"r.v1.HeaderModification\022D\n\rroute_options" +
"\030\t \001(\0132-.yandex.cloud.apploadbalancer.v1" +
".RouteOptions\"N\n\031UpdateVirtualHostMetada" +
"ta\022\026\n\016http_router_id\030\001 \001(\t\022\031\n\021virtual_ho" +
"st_name\030\002 \001(\t\"\177\n\030DeleteVirtualHostReques" +
"t\022\034\n\016http_router_id\030\001 \001(\tB\004\350\3071\001\022E\n\021virtu" +
"al_host_name\030\002 \001(\tB*\350\3071\001\362\3071\"([a-z]([-a-z" +
"0-9]{0,61}[a-z0-9])?)?\"N\n\031DeleteVirtualH" +
"ostMetadata\022\026\n\016http_router_id\030\001 \001(\t\022\031\n\021v" +
"irtual_host_name\030\002 \001(\t\"m\n\022RemoveRouteReq" +
"uest\022\034\n\016http_router_id\030\001 \001(\tB\004\350\3071\001\022\037\n\021vi" +
"rtual_host_name\030\002 \001(\tB\004\350\3071\001\022\030\n\nroute_nam" +
"e\030\003 \001(\tB\004\350\3071\001\"\\\n\023RemoveRouteMetadata\022\026\n\016" +
"http_router_id\030\001 \001(\t\022\031\n\021virtual_host_nam" +
"e\030\002 \001(\t\022\022\n\nroute_name\030\003 \001(\t\"\353\002\n\022UpdateRo" +
"uteRequest\022\034\n\016http_router_id\030\001 \001(\tB\004\350\3071\001" +
"\022\037\n\021virtual_host_name\030\002 \001(\tB\004\350\3071\001\022\030\n\nrou" +
"te_name\030\003 \001(\tB\004\350\3071\001\022/\n\013update_mask\030\004 \001(\013" +
"2\032.google.protobuf.FieldMask\022:\n\004http\030\005 \001" +
"(\0132*.yandex.cloud.apploadbalancer.v1.Htt" +
"pRouteH\000\022:\n\004grpc\030\006 \001(\0132*.yandex.cloud.ap" +
"ploadbalancer.v1.GrpcRouteH\000\022D\n\rroute_op" +
"tions\030\007 \001(\0132-.yandex.cloud.apploadbalanc" +
"er.v1.RouteOptionsB\r\n\005route\022\004\300\3011\001\"\\\n\023Upd" +
"ateRouteMetadata\022\026\n\016http_router_id\030\001 \001(\t" +
"\022\031\n\021virtual_host_name\030\002 \001(\t\022\022\n\nroute_nam" +
"e\030\003 \001(\t2\342\014\n\022VirtualHostService\022\306\001\n\003Get\0226" +
".yandex.cloud.apploadbalancer.v1.GetVirt" +
"ualHostRequest\032,.yandex.cloud.apploadbal" +
"ancer.v1.VirtualHost\"Y\202\323\344\223\002S\022Q/apploadba" +
"lancer/v1/httpRouters/{http_router_id}/v" +
"irtualHosts/{virtual_host_name}\022\302\001\n\004List" +
"\0228.yandex.cloud.apploadbalancer.v1.ListV" +
"irtualHostsRequest\0329.yandex.cloud.apploa" +
"dbalancer.v1.ListVirtualHostsResponse\"E\202" +
"\323\344\223\002?\022=/apploadbalancer/v1/httpRouters/{" +
"http_router_id}/virtualHosts\022\334\001\n\006Create\022" +
"9.yandex.cloud.apploadbalancer.v1.Create" +
"VirtualHostRequest\032!.yandex.cloud.operat" +
"ion.Operation\"t\202\323\344\223\002B\"=/apploadbalancer/" +
"v1/httpRouters/{http_router_id}/virtualH" +
"osts:\001*\262\322*(\n\031CreateVirtualHostMetadata\022\013" +
"VirtualHost\022\361\001\n\006Update\0229.yandex.cloud.ap" +
"ploadbalancer.v1.UpdateVirtualHostReques" +
"t\032!.yandex.cloud.operation.Operation\"\210\001\202" +
"\323\344\223\002V2Q/apploadbalancer/v1/httpRouters/{" +
"http_router_id}/virtualHosts/{virtual_ho" +
"st_name}:\001*\262\322*(\n\031UpdateVirtualHostMetada" +
"ta\022\013VirtualHost\022\370\001\n\006Delete\0229.yandex.clou" +
"d.apploadbalancer.v1.DeleteVirtualHostRe" +
"quest\032!.yandex.cloud.operation.Operation" +
"\"\217\001\202\323\344\223\002S*Q/apploadbalancer/v1/httpRoute" +
"rs/{http_router_id}/virtualHosts/{virtua" +
"l_host_name}\262\322*2\n\031DeleteVirtualHostMetad" +
"ata\022\025google.protobuf.Empty\022\366\001\n\013RemoveRou" +
"te\0223.yandex.cloud.apploadbalancer.v1.Rem" +
"oveRouteRequest\032!.yandex.cloud.operation" +
".Operation\"\216\001\202\323\344\223\002b\"]/apploadbalancer/v1" +
"/httpRouters/{http_router_id}/virtualHos" +
"ts/{virtual_host_name}:removeRoute:\001*\262\322*" +
"\"\n\023RemoveRouteMetadata\022\013VirtualHost\022\366\001\n\013" +
"UpdateRoute\0223.yandex.cloud.apploadbalanc" +
"er.v1.UpdateRouteRequest\032!.yandex.cloud." +
"operation.Operation\"\216\001\202\323\344\223\002b\"]/apploadba" +
"lancer/v1/httpRouters/{http_router_id}/v" +
"irtualHosts/{virtual_host_name}:updateRo" +
"ute:\001*\262\322*\"\n\023UpdateRouteMetadata\022\013Virtual" +
"HostBz\n#yandex.cloud.api.apploadbalancer" +
".v1ZSgithub.com/yandex-cloud/go-genproto" +
"/yandex/cloud/apploadbalancer/v1;appload" +
"balancerb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_GetVirtualHostRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", });
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "PageSize", "PageToken", });
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_ListVirtualHostsResponse_descriptor,
new java.lang.String[] { "VirtualHosts", "NextPageToken", });
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "Name", "Authority", "Routes", "ModifyRequestHeaders", "ModifyResponseHeaders", "RouteOptions", });
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_CreateVirtualHostMetadata_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", });
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", "UpdateMask", "Authority", "Routes", "ModifyRequestHeaders", "ModifyResponseHeaders", "RouteOptions", });
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_UpdateVirtualHostMetadata_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", });
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", });
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_DeleteVirtualHostMetadata_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", });
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", "RouteName", });
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_RemoveRouteMetadata_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", "RouteName", });
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteRequest_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", "RouteName", "UpdateMask", "Http", "Grpc", "RouteOptions", "Route", });
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_apploadbalancer_v1_UpdateRouteMetadata_descriptor,
new java.lang.String[] { "HttpRouterId", "VirtualHostName", "RouteName", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.exactlyOne);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy