public final class UrlRewrite extends GeneratedMessageV3 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 Fields
HOST_REWRITE_FIELD_NUMBER
public static final int HOST_REWRITE_FIELD_NUMBER
Field Value
PATH_PREFIX_REWRITE_FIELD_NUMBER
public static final int PATH_PREFIX_REWRITE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static UrlRewrite getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static UrlRewrite.Builder newBuilder()
Returns
newBuilder(UrlRewrite prototype)
public static UrlRewrite.Builder newBuilder(UrlRewrite prototype)
Parameter
Returns
public static UrlRewrite parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UrlRewrite parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static UrlRewrite parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UrlRewrite parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static UrlRewrite parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UrlRewrite parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UrlRewrite parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UrlRewrite parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UrlRewrite parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UrlRewrite parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static UrlRewrite parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UrlRewrite parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<UrlRewrite> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public UrlRewrite getDefaultInstanceForType()
Returns
getHostRewrite()
public String getHostRewrite()
Prior to forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
optional string host_rewrite = 159819253;
Returns
Type | Description |
String | The hostRewrite.
|
getHostRewriteBytes()
public ByteString getHostRewriteBytes()
Prior to forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
optional string host_rewrite = 159819253;
Returns
Type | Description |
ByteString | The bytes for hostRewrite.
|
getParserForType()
public Parser<UrlRewrite> getParserForType()
Returns
Overrides
getPathPrefixRewrite()
public String getPathPrefixRewrite()
Prior to forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns
Type | Description |
String | The pathPrefixRewrite.
|
getPathPrefixRewriteBytes()
public ByteString getPathPrefixRewriteBytes()
Prior to forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns
Type | Description |
ByteString | The bytes for pathPrefixRewrite.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasHostRewrite()
public boolean hasHostRewrite()
Prior to forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
optional string host_rewrite = 159819253;
Returns
Type | Description |
boolean | Whether the hostRewrite field is set.
|
hasPathPrefixRewrite()
public boolean hasPathPrefixRewrite()
Prior to forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns
Type | Description |
boolean | Whether the pathPrefixRewrite field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public UrlRewrite.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UrlRewrite.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public UrlRewrite.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions