Class HttpRoute.URLRewrite.Builder (0.8.0)

public static final class HttpRoute.URLRewrite.Builder extends GeneratedMessageV3.Builder<HttpRoute.URLRewrite.Builder> implements HttpRoute.URLRewriteOrBuilder

The specification for modifying the URL of the request, prior to forwarding the request to the destination.

Protobuf type google.cloud.networkservices.v1.HttpRoute.URLRewrite

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.URLRewrite.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.URLRewrite.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.URLRewrite.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

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.

clone()

public HttpRoute.URLRewrite.Builder clone()
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

getDefaultInstanceForType()

public HttpRoute.URLRewrite getDefaultInstanceForType()
Returns
Type Description
HttpRoute.URLRewrite

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.URLRewrite.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.URLRewrite.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for pathPrefixRewrite to set.

Returns
Type Description
HttpRoute.URLRewrite.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpRoute.URLRewrite.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.URLRewrite.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides