Send feedback
Class HostRule (1.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.29.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value Type Description int
HOSTS_FIELD_NUMBER
public static final int HOSTS_FIELD_NUMBER
Field Value Type Description int
PATH_MATCHER_FIELD_NUMBER
public static final int PATH_MATCHER_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static HostRule getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static HostRule . Builder newBuilder ()
newBuilder(HostRule prototype)
public static HostRule . Builder newBuilder ( HostRule prototype )
Parameter Name Description prototype
HostRule
public static HostRule parseDelimitedFrom ( InputStream input )
public static HostRule parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static HostRule parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static HostRule parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static HostRule parseFrom ( CodedInputStream input )
public static HostRule parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static HostRule parseFrom ( InputStream input )
public static HostRule parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static HostRule parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HostRule parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<HostRule> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public HostRule getDefaultInstanceForType ()
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 if followed by anything, the immediate following character must be 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 if followed by anything, the immediate following character must be 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 if followed by anything, the immediate following character must be 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 if followed by anything, the immediate following character must be 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;
getParserForType()
public Parser<HostRule> getParserForType ()
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 Type Description int
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 Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public HostRule . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HostRule . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public HostRule . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]