Class VirtualHost.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.v3.VirtualHost.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualHostOrBuilder,Cloneable
- Enclosing class:
- VirtualHost
public static final class VirtualHost.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
implements VirtualHostOrBuilder
Protobuf type
envoy.extensions.filters.network.generic_proxy.v3.VirtualHost-
Method Summary
Modifier and TypeMethodDescriptionaddAllHosts(Iterable<String> values) A list of hosts that will be matched to this virtual host.A list of hosts that will be matched to this virtual host.addHostsBytes(com.google.protobuf.ByteString value) A list of hosts that will be matched to this virtual host.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A list of hosts that will be matched to this virtual host.The name of the virtual host.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The match tree to use when resolving route actions for incoming requests.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHosts(int index) A list of hosts that will be matched to this virtual host.com.google.protobuf.ByteStringgetHostsBytes(int index) A list of hosts that will be matched to this virtual host.intA list of hosts that will be matched to this virtual host.com.google.protobuf.ProtocolStringListA list of hosts that will be matched to this virtual host.getName()The name of the virtual host.com.google.protobuf.ByteStringThe name of the virtual host.The match tree to use when resolving route actions for incoming requests.The match tree to use when resolving route actions for incoming requests.The match tree to use when resolving route actions for incoming requests.booleanThe match tree to use when resolving route actions for incoming requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(VirtualHost other) mergeRoutes(Matcher value) The match tree to use when resolving route actions for incoming requests.final VirtualHost.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) A list of hosts that will be matched to this virtual host.The name of the virtual host.setNameBytes(com.google.protobuf.ByteString value) The name of the virtual host.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The match tree to use when resolving route actions for incoming requests.setRoutes(Matcher.Builder builderForValue) The match tree to use when resolving route actions for incoming requests.final VirtualHost.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
setField
public VirtualHost.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
setRepeatedField
public VirtualHost.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
addRepeatedField
public VirtualHost.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirtualHost.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
mergeFrom
public VirtualHost.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirtualHost.Builder>- Throws:
IOException
-
getName
The name of the virtual host.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceVirtualHostOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the virtual host.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceVirtualHostOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the virtual host.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the virtual host.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
The name of the virtual host.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getHostsList
public com.google.protobuf.ProtocolStringList getHostsList()A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Specified by:
getHostsListin interfaceVirtualHostOrBuilder- Returns:
- A list containing the hosts.
-
getHostsCount
public int getHostsCount()A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Specified by:
getHostsCountin interfaceVirtualHostOrBuilder- Returns:
- The count of hosts.
-
getHosts
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Specified by:
getHostsin interfaceVirtualHostOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The hosts at the given index.
-
getHostsBytes
public com.google.protobuf.ByteString getHostsBytes(int index) A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Specified by:
getHostsBytesin interfaceVirtualHostOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the hosts at the given index.
-
setHosts
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The hosts to set.- Returns:
- This builder for chaining.
-
addHosts
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Parameters:
value- The hosts to add.- Returns:
- This builder for chaining.
-
addAllHosts
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Parameters:
values- The hosts to add.- Returns:
- This builder for chaining.
-
clearHosts
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addHostsBytes
A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in the suffix or prefix form. Host search order: 1. Exact names: ``www.foo.com``. 2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``. 3. Prefix wildcards: ``foo.*`` or ``foo-*``. 4. Special wildcard ``*`` matching any host and will be the default virtual host. .. note:: The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single virtual host in the entire route configuration can match on ``*``. A domain must be unique across all virtual hosts or the config will fail to load.
repeated string hosts = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes of the hosts to add.- Returns:
- This builder for chaining.
-
hasRoutes
public boolean hasRoutes()The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }- Specified by:
hasRoutesin interfaceVirtualHostOrBuilder- Returns:
- Whether the routes field is set.
-
getRoutes
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }- Specified by:
getRoutesin interfaceVirtualHostOrBuilder- Returns:
- The routes.
-
setRoutes
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... } -
setRoutes
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... } -
mergeRoutes
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... } -
clearRoutes
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... } -
getRoutesBuilder
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... } -
getRoutesOrBuilder
The match tree to use when resolving route actions for incoming requests.
.xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }- Specified by:
getRoutesOrBuilderin interfaceVirtualHostOrBuilder
-
setUnknownFields
public final VirtualHost.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-
mergeUnknownFields
public final VirtualHost.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
-