Class HttpRoute.URLRewrite (0.15.0)

public static final class HttpRoute.URLRewrite extends GeneratedMessageV3 implements HttpRoute.URLRewriteOrBuilder

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

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

Static Fields

HOST_REWRITE_FIELD_NUMBER

public static final int HOST_REWRITE_FIELD_NUMBER
Field Value
Type Description
int

PATH_PREFIX_REWRITE_FIELD_NUMBER

public static final int PATH_PREFIX_REWRITE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HttpRoute.URLRewrite getDefaultInstance()
Returns
Type Description
HttpRoute.URLRewrite

getDescriptor()

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

newBuilder()

public static HttpRoute.URLRewrite.Builder newBuilder()
Returns
Type Description
HttpRoute.URLRewrite.Builder

newBuilder(HttpRoute.URLRewrite prototype)

public static HttpRoute.URLRewrite.Builder newBuilder(HttpRoute.URLRewrite prototype)
Parameter
Name Description
prototype HttpRoute.URLRewrite
Returns
Type Description
HttpRoute.URLRewrite.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.URLRewrite parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.URLRewrite parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.URLRewrite parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.URLRewrite parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.URLRewrite parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.URLRewrite parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.URLRewrite parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.URLRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.URLRewrite> parser()
Returns
Type Description
Parser<URLRewrite>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<HttpRoute.URLRewrite> getParserForType()
Returns
Type Description
Parser<URLRewrite>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.URLRewrite.Builder newBuilderForType()
Returns
Type Description
HttpRoute.URLRewrite.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.URLRewrite.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.URLRewrite.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.URLRewrite.Builder toBuilder()
Returns
Type Description
HttpRoute.URLRewrite.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException