public static final class HttpRoute.URLRewrite.Builder extends GeneratedMessage.Builder<HttpRoute.URLRewrite.Builder> implements HttpRoute.URLRewriteOrBuilderThe specification for modifying the URL of the request, prior to forwarding the request to the destination.
Protobuf type google.cloud.networkservices.v1.HttpRoute.URLRewrite
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HttpRoute.URLRewrite.BuilderImplements
HttpRoute.URLRewriteOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HttpRoute.URLRewrite build()| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite |
|
buildPartial()
public HttpRoute.URLRewrite buildPartial()| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite |
|
clear()
public HttpRoute.URLRewrite.Builder clear()| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
|
clearHostRewrite()
public HttpRoute.URLRewrite.Builder clearHostRewrite()Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
string host_rewrite = 2;
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |
clearPathPrefixRewrite()
public HttpRoute.URLRewrite.Builder clearPathPrefixRewrite()Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
string path_prefix_rewrite = 1;
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public HttpRoute.URLRewrite getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHostRewrite()
public String getHostRewrite()Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
string host_rewrite = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The hostRewrite. |
getHostRewriteBytes()
public ByteString getHostRewriteBytes()Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
string host_rewrite = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for hostRewrite. |
getPathPrefixRewrite()
public String getPathPrefixRewrite()Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
string path_prefix_rewrite = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The pathPrefixRewrite. |
getPathPrefixRewriteBytes()
public ByteString getPathPrefixRewriteBytes()Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
string path_prefix_rewrite = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pathPrefixRewrite. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(HttpRoute.URLRewrite other)
public HttpRoute.URLRewrite.Builder mergeFrom(HttpRoute.URLRewrite other)| Parameter | |
|---|---|
| Name | Description |
other |
HttpRoute.URLRewrite |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRoute.URLRewrite.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HttpRoute.URLRewrite.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
|
setHostRewrite(String value)
public HttpRoute.URLRewrite.Builder setHostRewrite(String value)Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
string host_rewrite = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe hostRewrite to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |
setHostRewriteBytes(ByteString value)
public HttpRoute.URLRewrite.Builder setHostRewriteBytes(ByteString value)Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
string host_rewrite = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for hostRewrite to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |
setPathPrefixRewrite(String value)
public HttpRoute.URLRewrite.Builder setPathPrefixRewrite(String value)Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
string path_prefix_rewrite = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pathPrefixRewrite to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |
setPathPrefixRewriteBytes(ByteString value)
public HttpRoute.URLRewrite.Builder setPathPrefixRewriteBytes(ByteString value)Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
string path_prefix_rewrite = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for pathPrefixRewrite to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.URLRewrite.Builder |
This builder for chaining. |