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.events.cloud.networkservices.v1.HttpRoute.URLRewrite
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.URLRewrite.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HttpRoute.URLRewrite build()
buildPartial()
public HttpRoute.URLRewrite buildPartial()
clear()
public HttpRoute.URLRewrite.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HttpRoute.URLRewrite.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRoute.URLRewrite.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public HttpRoute.URLRewrite.Builder clone()
Overrides
getDefaultInstanceForType()
public HttpRoute.URLRewrite getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(HttpRoute.URLRewrite other)
public HttpRoute.URLRewrite.Builder mergeFrom(HttpRoute.URLRewrite other)
public HttpRoute.URLRewrite.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HttpRoute.URLRewrite.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.URLRewrite.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.URLRewrite.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRoute.URLRewrite.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.URLRewrite.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides