Class VirtualHost
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.v3.VirtualHost
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualHostOrBuilder,Serializable
public final class VirtualHost
extends com.google.protobuf.GeneratedMessageV3
implements VirtualHostOrBuilder
Protobuf type
envoy.extensions.filters.network.generic_proxy.v3.VirtualHost- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeenvoy.extensions.filters.network.generic_proxy.v3.VirtualHostNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VirtualHoststatic final com.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.com.google.protobuf.Parser<VirtualHost>The match tree to use when resolving route actions for incoming requests.The match tree to use when resolving route actions for incoming requests.intinthashCode()booleanThe match tree to use when resolving route actions for incoming requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic VirtualHost.Builderstatic VirtualHost.BuildernewBuilder(VirtualHost prototype) protected VirtualHost.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static VirtualHostparseDelimitedFrom(InputStream input) static VirtualHostparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VirtualHostparseFrom(byte[] data) static VirtualHostparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VirtualHostparseFrom(com.google.protobuf.ByteString data) static VirtualHostparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VirtualHostparseFrom(com.google.protobuf.CodedInputStream input) static VirtualHostparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VirtualHostparseFrom(InputStream input) static VirtualHostparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VirtualHostparseFrom(ByteBuffer data) static VirtualHostparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VirtualHost>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
HOSTS_FIELD_NUMBER
public static final int HOSTS_FIELD_NUMBER- See Also:
-
ROUTES_FIELD_NUMBER
public static final int ROUTES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualHost parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualHost parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualHost parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualHost parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualHost parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualHost parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VirtualHost parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualHost parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VirtualHost parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualHost.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-