Package com.google.cloud.compute.v1
Class HostRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
- com.google.cloud.compute.v1.HostRule.Builder
-
- All Implemented Interfaces:
HostRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HostRule
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 typegoogle.cloud.compute.v1.HostRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HostRule.BuilderaddAllHosts(Iterable<String> values)The list of host patterns to match.HostRule.BuilderaddHosts(String value)The list of host patterns to match.HostRule.BuilderaddHostsBytes(com.google.protobuf.ByteString value)The list of host patterns to match.HostRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HostRulebuild()HostRulebuildPartial()HostRule.Builderclear()HostRule.BuilderclearDescription()An optional description of this resource.HostRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HostRule.BuilderclearHosts()The list of host patterns to match.HostRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HostRule.BuilderclearPathMatcher()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.Builderclone()HostRulegetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHosts(int index)The list of host patterns to match.com.google.protobuf.ByteStringgetHostsBytes(int index)The list of host patterns to match.intgetHostsCount()The list of host patterns to match.com.google.protobuf.ProtocolStringListgetHostsList()The list of host patterns to match.StringgetPathMatcher()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.ByteStringgetPathMatcherBytes()The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.booleanhasDescription()An optional description of this resource.booleanhasPathMatcher()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HostRule.BuildermergeFrom(HostRule other)HostRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HostRule.BuildermergeFrom(com.google.protobuf.Message other)HostRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HostRule.BuildersetDescription(String value)An optional description of this resource.HostRule.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.HostRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HostRule.BuildersetHosts(int index, String value)The list of host patterns to match.HostRule.BuildersetPathMatcher(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.BuildersetPathMatcherBytes(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HostRule.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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<HostRule.Builder>
-
clear
public HostRule.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<HostRule.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<HostRule.Builder>
-
getDefaultInstanceForType
public HostRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HostRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HostRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HostRule.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<HostRule.Builder>
-
setField
public HostRule.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<HostRule.Builder>
-
clearField
public HostRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
clearOneof
public HostRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
setRepeatedField
public HostRule.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<HostRule.Builder>
-
addRepeatedField
public HostRule.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<HostRule.Builder>
-
mergeFrom
public HostRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HostRule.Builder>
-
mergeFrom
public HostRule.Builder mergeFrom(HostRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
mergeFrom
public HostRule.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<HostRule.Builder>- Throws:
IOException
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceHostRuleOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceHostRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceHostRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
public HostRule.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public HostRule.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getHostsList
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;- Specified by:
getHostsListin interfaceHostRuleOrBuilder- Returns:
- A list containing the hosts.
-
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;- Specified by:
getHostsCountin interfaceHostRuleOrBuilder- Returns:
- The count of hosts.
-
getHosts
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;- Specified by:
getHostsin interfaceHostRuleOrBuilder- 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)
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;- Specified by:
getHostsBytesin interfaceHostRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the hosts at the given index.
-
setHosts
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;- Parameters:
index- The index to set the value at.value- The hosts to set.- Returns:
- This builder for chaining.
-
addHosts
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;- Parameters:
value- The hosts to add.- Returns:
- This builder for chaining.
-
addAllHosts
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;- Parameters:
values- The hosts to add.- Returns:
- This builder for chaining.
-
clearHosts
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;- Returns:
- This builder for chaining.
-
addHostsBytes
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;- Parameters:
value- The bytes of the hosts to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasPathMatcherin interfaceHostRuleOrBuilder- Returns:
- Whether the pathMatcher field is set.
-
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;- Specified by:
getPathMatcherin interfaceHostRuleOrBuilder- Returns:
- The pathMatcher.
-
getPathMatcherBytes
public 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;- Specified by:
getPathMatcherBytesin interfaceHostRuleOrBuilder- Returns:
- The bytes for pathMatcher.
-
setPathMatcher
public 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;- Parameters:
value- The pathMatcher to set.- Returns:
- This builder for chaining.
-
clearPathMatcher
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;- Returns:
- This builder for chaining.
-
setPathMatcherBytes
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;- Parameters:
value- The bytes for pathMatcher to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HostRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
mergeUnknownFields
public final HostRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HostRule.Builder>
-
-