public final class RequestMirrorPolicy extends GeneratedMessageV3 implements RequestMirrorPolicyOrBuilder
A 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
Static Fields
BACKEND_SERVICE_FIELD_NUMBER
public static final int BACKEND_SERVICE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RequestMirrorPolicy getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RequestMirrorPolicy.Builder newBuilder()
Returns
newBuilder(RequestMirrorPolicy prototype)
public static RequestMirrorPolicy.Builder newBuilder(RequestMirrorPolicy prototype)
Parameter
Returns
public static RequestMirrorPolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RequestMirrorPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RequestMirrorPolicy parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RequestMirrorPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RequestMirrorPolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RequestMirrorPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RequestMirrorPolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RequestMirrorPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RequestMirrorPolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RequestMirrorPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RequestMirrorPolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RequestMirrorPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RequestMirrorPolicy> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
getParserForType()
public Parser<RequestMirrorPolicy> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RequestMirrorPolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RequestMirrorPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RequestMirrorPolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions