Class RequestMirrorPolicy (1.56.0)

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
Type Description
int

Static Methods

getDefaultInstance()

public static RequestMirrorPolicy getDefaultInstance()
Returns
Type Description
RequestMirrorPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RequestMirrorPolicy.Builder newBuilder()
Returns
Type Description
RequestMirrorPolicy.Builder

newBuilder(RequestMirrorPolicy prototype)

public static RequestMirrorPolicy.Builder newBuilder(RequestMirrorPolicy prototype)
Parameter
Name Description
prototype RequestMirrorPolicy
Returns
Type Description
RequestMirrorPolicy.Builder

parseDelimitedFrom(InputStream input)

public static RequestMirrorPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RequestMirrorPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RequestMirrorPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RequestMirrorPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RequestMirrorPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RequestMirrorPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RequestMirrorPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMirrorPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RequestMirrorPolicy> parser()
Returns
Type Description
Parser<RequestMirrorPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<RequestMirrorPolicy> getParserForType()
Returns
Type Description
Parser<RequestMirrorPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RequestMirrorPolicy.Builder newBuilderForType()
Returns
Type Description
RequestMirrorPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RequestMirrorPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RequestMirrorPolicy.Builder toBuilder()
Returns
Type Description
RequestMirrorPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException