public static final class HostRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder> 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| Modifier and Type | Method and Description |
|---|---|
HostRule.Builder |
addAllHosts(Iterable<String> values)
The list of host patterns to match.
|
HostRule.Builder |
addHosts(String value)
The list of host patterns to match.
|
HostRule.Builder |
addHostsBytes(com.google.protobuf.ByteString value)
The list of host patterns to match.
|
HostRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HostRule |
build() |
HostRule |
buildPartial() |
HostRule.Builder |
clear() |
HostRule.Builder |
clearDescription()
An optional description of this resource.
|
HostRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HostRule.Builder |
clearHosts()
The list of host patterns to match.
|
HostRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HostRule.Builder |
clearPathMatcher()
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
|
HostRule.Builder |
clone() |
HostRule |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHosts(int index)
The list of host patterns to match.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
The list of host patterns to match.
|
int |
getHostsCount()
The list of host patterns to match.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
The list of host patterns to match.
|
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.
|
com.google.protobuf.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.
|
boolean |
hasDescription()
An optional description of this resource.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HostRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HostRule.Builder |
mergeFrom(HostRule other) |
HostRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
HostRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HostRule.Builder |
setDescription(String value)
An optional description of this resource.
|
HostRule.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
HostRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HostRule.Builder |
setHosts(int index,
String value)
The list of host patterns to match.
|
HostRule.Builder |
setPathMatcher(String value)
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
|
HostRule.Builder |
setPathMatcherBytes(com.google.protobuf.ByteString value)
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
|
HostRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
HostRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HostRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HostRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HostRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HostRule.Builder>public HostRule.Builder mergeFrom(HostRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public HostRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HostRule.Builder>IOExceptionpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface HostRuleOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface HostRuleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface HostRuleOrBuilderpublic HostRule.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public HostRule.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;public HostRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The bytes for description to set.public com.google.protobuf.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;getHostsList in interface HostRuleOrBuilderpublic 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;getHostsCount in interface HostRuleOrBuilderpublic 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;getHosts in interface HostRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.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;getHostsBytes in interface HostRuleOrBuilderindex - The index of the value to return.public HostRule.Builder setHosts(int index, String value)
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;index - The index to set the value at.value - The hosts to set.public HostRule.Builder addHosts(String value)
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;value - The hosts to add.public HostRule.Builder addAllHosts(Iterable<String> values)
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;values - The hosts to add.public HostRule.Builder clearHosts()
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;public HostRule.Builder addHostsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the hosts to add.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;hasPathMatcher in interface HostRuleOrBuilderpublic 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;getPathMatcher in interface HostRuleOrBuilderpublic com.google.protobuf.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;getPathMatcherBytes in interface HostRuleOrBuilderpublic HostRule.Builder setPathMatcher(String value)
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;value - The pathMatcher to set.public HostRule.Builder clearPathMatcher()
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;public HostRule.Builder setPathMatcherBytes(com.google.protobuf.ByteString value)
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;value - The bytes for pathMatcher to set.public final HostRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>public final HostRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>Copyright © 2023 Google LLC. All rights reserved.