public static final class RequestMirrorPolicy.Builder extends GeneratedMessageV3.Builder<RequestMirrorPolicy.Builder> implements RequestMirrorPolicyOrBuilder
A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow.
Protobuf type google.cloud.compute.v1.RequestMirrorPolicy
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RequestMirrorPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RequestMirrorPolicy build()
Returns
buildPartial()
public RequestMirrorPolicy buildPartial()
Returns
clear()
public RequestMirrorPolicy.Builder clear()
Returns
Overrides
clearBackendService()
public RequestMirrorPolicy.Builder clearBackendService()
The full or partial URL to the BackendService resource being mirrored to.
optional string backend_service = 306946058;
Returns
clearField(Descriptors.FieldDescriptor field)
public RequestMirrorPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RequestMirrorPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public RequestMirrorPolicy.Builder clone()
Returns
Overrides
getBackendService()
public String getBackendService()
The full or partial URL to the BackendService resource being mirrored to.
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.
optional string backend_service = 306946058;
Returns
Type | Description |
ByteString | The bytes for backendService.
|
getDefaultInstanceForType()
public RequestMirrorPolicy getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasBackendService()
public boolean hasBackendService()
The full or partial URL to the BackendService resource being mirrored to.
optional string backend_service = 306946058;
Returns
Type | Description |
boolean | Whether the backendService field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(RequestMirrorPolicy other)
public RequestMirrorPolicy.Builder mergeFrom(RequestMirrorPolicy other)
Parameter
Returns
public RequestMirrorPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RequestMirrorPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RequestMirrorPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setBackendService(String value)
public RequestMirrorPolicy.Builder setBackendService(String value)
The full or partial URL to the BackendService resource being mirrored to.
optional string backend_service = 306946058;
Parameter
Name | Description |
value | String
The backendService to set.
|
Returns
setBackendServiceBytes(ByteString value)
public RequestMirrorPolicy.Builder setBackendServiceBytes(ByteString value)
The full or partial URL to the BackendService resource being mirrored to.
optional string backend_service = 306946058;
Parameter
Name | Description |
value | ByteString
The bytes for backendService to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RequestMirrorPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RequestMirrorPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RequestMirrorPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides