Package com.google.cloud.compute.v1
Class UrlRewrite.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
- com.google.cloud.compute.v1.UrlRewrite.Builder
-
- All Implemented Interfaces:
UrlRewriteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UrlRewrite
public static final class UrlRewrite.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder> implements UrlRewriteOrBuilder
The spec for modifying the path before sending the request to the matched backend service.
Protobuf typegoogle.cloud.compute.v1.UrlRewrite
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlRewrite.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UrlRewritebuild()UrlRewritebuildPartial()UrlRewrite.Builderclear()UrlRewrite.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UrlRewrite.BuilderclearHostRewrite()Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.UrlRewrite.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UrlRewrite.BuilderclearPathPrefixRewrite()Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.UrlRewrite.BuilderclearPathTemplateRewrite()If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.UrlRewrite.Builderclone()UrlRewritegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHostRewrite()Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.com.google.protobuf.ByteStringgetHostRewriteBytes()Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.StringgetPathPrefixRewrite()Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.com.google.protobuf.ByteStringgetPathPrefixRewriteBytes()Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.StringgetPathTemplateRewrite()If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.com.google.protobuf.ByteStringgetPathTemplateRewriteBytes()If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.booleanhasHostRewrite()Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.booleanhasPathPrefixRewrite()Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.booleanhasPathTemplateRewrite()If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UrlRewrite.BuildermergeFrom(UrlRewrite other)UrlRewrite.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UrlRewrite.BuildermergeFrom(com.google.protobuf.Message other)UrlRewrite.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UrlRewrite.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UrlRewrite.BuildersetHostRewrite(String value)Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.UrlRewrite.BuildersetHostRewriteBytes(com.google.protobuf.ByteString value)Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.UrlRewrite.BuildersetPathPrefixRewrite(String value)Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.UrlRewrite.BuildersetPathPrefixRewriteBytes(com.google.protobuf.ByteString value)Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.UrlRewrite.BuildersetPathTemplateRewrite(String value)If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.UrlRewrite.BuildersetPathTemplateRewriteBytes(com.google.protobuf.ByteString value)If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.UrlRewrite.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UrlRewrite.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<UrlRewrite.Builder>
-
clear
public UrlRewrite.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<UrlRewrite.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<UrlRewrite.Builder>
-
getDefaultInstanceForType
public UrlRewrite getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UrlRewrite build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UrlRewrite buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UrlRewrite.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<UrlRewrite.Builder>
-
setField
public UrlRewrite.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<UrlRewrite.Builder>
-
clearField
public UrlRewrite.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
clearOneof
public UrlRewrite.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
setRepeatedField
public UrlRewrite.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<UrlRewrite.Builder>
-
addRepeatedField
public UrlRewrite.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<UrlRewrite.Builder>
-
mergeFrom
public UrlRewrite.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UrlRewrite.Builder>
-
mergeFrom
public UrlRewrite.Builder mergeFrom(UrlRewrite other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
mergeFrom
public UrlRewrite.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<UrlRewrite.Builder>- Throws:
IOException
-
hasHostRewrite
public boolean hasHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Specified by:
hasHostRewritein interfaceUrlRewriteOrBuilder- Returns:
- Whether the hostRewrite field is set.
-
getHostRewrite
public String getHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Specified by:
getHostRewritein interfaceUrlRewriteOrBuilder- Returns:
- The hostRewrite.
-
getHostRewriteBytes
public com.google.protobuf.ByteString getHostRewriteBytes()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Specified by:
getHostRewriteBytesin interfaceUrlRewriteOrBuilder- Returns:
- The bytes for hostRewrite.
-
setHostRewrite
public UrlRewrite.Builder setHostRewrite(String value)
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Parameters:
value- The hostRewrite to set.- Returns:
- This builder for chaining.
-
clearHostRewrite
public UrlRewrite.Builder clearHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Returns:
- This builder for chaining.
-
setHostRewriteBytes
public UrlRewrite.Builder setHostRewriteBytes(com.google.protobuf.ByteString value)
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;- Parameters:
value- The bytes for hostRewrite to set.- Returns:
- This builder for chaining.
-
hasPathPrefixRewrite
public boolean hasPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Specified by:
hasPathPrefixRewritein interfaceUrlRewriteOrBuilder- Returns:
- Whether the pathPrefixRewrite field is set.
-
getPathPrefixRewrite
public String getPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Specified by:
getPathPrefixRewritein interfaceUrlRewriteOrBuilder- Returns:
- The pathPrefixRewrite.
-
getPathPrefixRewriteBytes
public com.google.protobuf.ByteString getPathPrefixRewriteBytes()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Specified by:
getPathPrefixRewriteBytesin interfaceUrlRewriteOrBuilder- Returns:
- The bytes for pathPrefixRewrite.
-
setPathPrefixRewrite
public UrlRewrite.Builder setPathPrefixRewrite(String value)
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Parameters:
value- The pathPrefixRewrite to set.- Returns:
- This builder for chaining.
-
clearPathPrefixRewrite
public UrlRewrite.Builder clearPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Returns:
- This builder for chaining.
-
setPathPrefixRewriteBytes
public UrlRewrite.Builder setPathPrefixRewriteBytes(com.google.protobuf.ByteString value)
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;- Parameters:
value- The bytes for pathPrefixRewrite to set.- Returns:
- This builder for chaining.
-
hasPathTemplateRewrite
public boolean hasPathTemplateRewrite()
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Specified by:
hasPathTemplateRewritein interfaceUrlRewriteOrBuilder- Returns:
- Whether the pathTemplateRewrite field is set.
-
getPathTemplateRewrite
public String getPathTemplateRewrite()
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Specified by:
getPathTemplateRewritein interfaceUrlRewriteOrBuilder- Returns:
- The pathTemplateRewrite.
-
getPathTemplateRewriteBytes
public com.google.protobuf.ByteString getPathTemplateRewriteBytes()
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Specified by:
getPathTemplateRewriteBytesin interfaceUrlRewriteOrBuilder- Returns:
- The bytes for pathTemplateRewrite.
-
setPathTemplateRewrite
public UrlRewrite.Builder setPathTemplateRewrite(String value)
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Parameters:
value- The pathTemplateRewrite to set.- Returns:
- This builder for chaining.
-
clearPathTemplateRewrite
public UrlRewrite.Builder clearPathTemplateRewrite()
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Returns:
- This builder for chaining.
-
setPathTemplateRewriteBytes
public UrlRewrite.Builder setPathTemplateRewriteBytes(com.google.protobuf.ByteString value)
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified.optional string path_template_rewrite = 423409569;- Parameters:
value- The bytes for pathTemplateRewrite to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UrlRewrite.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
mergeUnknownFields
public final UrlRewrite.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlRewrite.Builder>
-
-