public static final class UrlRewrite.Builder extends GeneratedMessageV3.Builder<UrlRewrite.Builder> implements UrlRewriteOrBuilder
The spec for modifying the path before sending the request to the matched backend service.
Protobuf type google.cloud.compute.v1.UrlRewrite
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 UrlRewrite.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UrlRewrite build()
buildPartial()
public UrlRewrite buildPartial()
clear()
public UrlRewrite.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UrlRewrite.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHostRewrite()
public UrlRewrite.Builder clearHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
clearOneof(Descriptors.OneofDescriptor oneof)
public UrlRewrite.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPathPrefixRewrite()
public UrlRewrite.Builder clearPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
clone()
public UrlRewrite.Builder clone()
Overrides
getDefaultInstanceForType()
public UrlRewrite getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHostRewrite()
public String getHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
Returns |
---|
Type | Description |
String | The hostRewrite.
|
getHostRewriteBytes()
public ByteString getHostRewriteBytes()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
Returns |
---|
Type | Description |
ByteString | The bytes for hostRewrite.
|
getPathPrefixRewrite()
public String getPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns |
---|
Type | Description |
String | The pathPrefixRewrite.
|
getPathPrefixRewriteBytes()
public ByteString getPathPrefixRewriteBytes()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns |
---|
Type | Description |
ByteString | The bytes for pathPrefixRewrite.
|
hasHostRewrite()
public boolean hasHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
Returns |
---|
Type | Description |
boolean | Whether the hostRewrite field is set.
|
hasPathPrefixRewrite()
public boolean hasPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
Returns |
---|
Type | Description |
boolean | Whether the pathPrefixRewrite field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UrlRewrite other)
public UrlRewrite.Builder mergeFrom(UrlRewrite other)
public UrlRewrite.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UrlRewrite.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UrlRewrite.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UrlRewrite.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHostRewrite(String value)
public UrlRewrite.Builder setHostRewrite(String value)
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
Parameter |
---|
Name | Description |
value | String
The hostRewrite to set.
|
setHostRewriteBytes(ByteString value)
public UrlRewrite.Builder setHostRewriteBytes(ByteString value)
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
optional string host_rewrite = 159819253;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for hostRewrite to set.
|
setPathPrefixRewrite(String value)
public UrlRewrite.Builder setPathPrefixRewrite(String value)
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
Parameter |
---|
Name | Description |
value | String
The pathPrefixRewrite to set.
|
setPathPrefixRewriteBytes(ByteString value)
public UrlRewrite.Builder setPathPrefixRewriteBytes(ByteString value)
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
optional string path_prefix_rewrite = 41186361;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for pathPrefixRewrite to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UrlRewrite.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UrlRewrite.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides