public final class HostRule extends GeneratedMessageV3 implements HostRuleOrBuilder
UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Protobuf type google.cloud.compute.v1.HostRule
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
HOSTS_FIELD_NUMBER
public static final int HOSTS_FIELD_NUMBER
Field Value
PATH_MATCHER_FIELD_NUMBER
public static final int PATH_MATCHER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static HostRule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static HostRule.Builder newBuilder()
Returns
newBuilder(HostRule prototype)
public static HostRule.Builder newBuilder(HostRule prototype)
Parameter
Returns
public static HostRule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HostRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static HostRule parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static HostRule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HostRule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HostRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HostRule parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HostRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static HostRule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<HostRule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public HostRule getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns
Type | Description |
ByteString | The bytes for description.
|
getHosts(int index)
public String getHosts(int index)
The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
repeated string hosts = 99467211;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The hosts at the given index.
|
getHostsBytes(int index)
public ByteString getHostsBytes(int index)
The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
repeated string hosts = 99467211;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the hosts at the given index.
|
getHostsCount()
public int getHostsCount()
The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
repeated string hosts = 99467211;
Returns
Type | Description |
int | The count of hosts.
|
getHostsList()
public ProtocolStringList getHostsList()
The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
repeated string hosts = 99467211;
Returns
getParserForType()
public Parser<HostRule> getParserForType()
Returns
Overrides
getPathMatcher()
public String getPathMatcher()
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
optional string path_matcher = 337813272;
Returns
Type | Description |
String | The pathMatcher.
|
getPathMatcherBytes()
public ByteString getPathMatcherBytes()
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
optional string path_matcher = 337813272;
Returns
Type | Description |
ByteString | The bytes for pathMatcher.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDescription()
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns
Type | Description |
boolean | Whether the description field is set.
|
hasPathMatcher()
public boolean hasPathMatcher()
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
optional string path_matcher = 337813272;
Returns
Type | Description |
boolean | Whether the pathMatcher field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public HostRule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HostRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public HostRule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions