public static final class UrlRewrite.Builder extends GeneratedMessageV3.Builder<UrlRewrite.Builder> implements UrlRewriteOrBuilder
The spec for modifying the path before sending the request to the matched backend service.
Protobuf type google.cloud.compute.v1.UrlRewrite
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UrlRewrite.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UrlRewrite build()
Returns
buildPartial()
public UrlRewrite buildPartial()
Returns
clear()
public UrlRewrite.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UrlRewrite.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
clearOneof(Descriptors.OneofDescriptor oneof)
public UrlRewrite.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
clone()
public UrlRewrite.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UrlRewrite getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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;
Returns
Type | Description |
String | The hostRewrite.
|
getHostRewriteBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for hostRewrite.
|
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;
Returns
Type | Description |
String | The pathPrefixRewrite.
|
getPathPrefixRewriteBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for pathPrefixRewrite.
|
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;
Returns
Type | Description |
boolean | Whether the hostRewrite field is set.
|
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;
Returns
Type | Description |
boolean | Whether the pathPrefixRewrite field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UrlRewrite other)
public UrlRewrite.Builder mergeFrom(UrlRewrite other)
Parameter
Returns
public UrlRewrite.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UrlRewrite.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UrlRewrite.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UrlRewrite.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHostRewrite(String value)
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;
Parameter
Name | Description |
value | String
The hostRewrite to set.
|
Returns
setHostRewriteBytes(ByteString value)
public UrlRewrite.Builder setHostRewriteBytes(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;
Parameter
Name | Description |
value | ByteString
The bytes for hostRewrite to set.
|
Returns
setPathPrefixRewrite(String value)
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;
Parameter
Name | Description |
value | String
The pathPrefixRewrite to set.
|
Returns
setPathPrefixRewriteBytes(ByteString value)
public UrlRewrite.Builder setPathPrefixRewriteBytes(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;
Parameter
Name | Description |
value | ByteString
The bytes for pathPrefixRewrite to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UrlRewrite.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UrlRewrite.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides