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.GeneratedMessage.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.GeneratedMessage.Builder<HostRule.Builder>
implements HostRuleOrBuilder
UrlMaps A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.Protobuf type
google.cloud.compute.v1.HostRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllHosts(Iterable<String> values) The list of host patterns to match.The list of host patterns to match.addHostsBytes(com.google.protobuf.ByteString value) The list of host patterns to match.build()clear()An optional description of this resource.The list of host patterns to match.The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHosts(int index) The list of host patterns to match.com.google.protobuf.ByteStringgetHostsBytes(int index) The list of host patterns to match.intThe list of host patterns to match.com.google.protobuf.ProtocolStringListThe list of host patterns to match.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.ByteStringThe name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.booleanAn optional description of this resource.booleanThe 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.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.The list of host patterns to match.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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HostRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<HostRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HostRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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
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
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
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
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
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
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
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
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
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.
-