public static final class RequestMirrorPolicy.Builder extends GeneratedMessage.Builder<RequestMirrorPolicy.Builder> implements RequestMirrorPolicyOrBuilderA policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with-shadow.
Protobuf type google.cloud.compute.v1.RequestMirrorPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RequestMirrorPolicy.BuilderImplements
RequestMirrorPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RequestMirrorPolicy build()| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy |
|
buildPartial()
public RequestMirrorPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy |
|
clear()
public RequestMirrorPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
|
clearBackendService()
public RequestMirrorPolicy.Builder clearBackendService()The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
This builder for chaining. |
clearMirrorPercent()
public RequestMirrorPolicy.Builder clearMirrorPercent() The percentage of requests to be mirrored to backend_service.
optional double mirror_percent = 277432261;
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
This builder for chaining. |
getBackendService()
public String getBackendService()The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
String |
The backendService. |
getBackendServiceBytes()
public ByteString getBackendServiceBytes()The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backendService. |
getDefaultInstanceForType()
public RequestMirrorPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMirrorPercent()
public double getMirrorPercent() The percentage of requests to be mirrored to backend_service.
optional double mirror_percent = 277432261;
| Returns | |
|---|---|
| Type | Description |
double |
The mirrorPercent. |
hasBackendService()
public boolean hasBackendService()The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backendService field is set. |
hasMirrorPercent()
public boolean hasMirrorPercent() The percentage of requests to be mirrored to backend_service.
optional double mirror_percent = 277432261;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mirrorPercent field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RequestMirrorPolicy other)
public RequestMirrorPolicy.Builder mergeFrom(RequestMirrorPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
RequestMirrorPolicy |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RequestMirrorPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RequestMirrorPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
|
setBackendService(String value)
public RequestMirrorPolicy.Builder setBackendService(String value)The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backendService to set. |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
This builder for chaining. |
setBackendServiceBytes(ByteString value)
public RequestMirrorPolicy.Builder setBackendServiceBytes(ByteString value)The full or partial URL to the BackendService resource being mirrored to.
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend service.
optional string backend_service = 306946058;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backendService to set. |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
This builder for chaining. |
setMirrorPercent(double value)
public RequestMirrorPolicy.Builder setMirrorPercent(double value) The percentage of requests to be mirrored to backend_service.
optional double mirror_percent = 277432261;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe mirrorPercent to set. |
| Returns | |
|---|---|
| Type | Description |
RequestMirrorPolicy.Builder |
This builder for chaining. |