Class RequestMirrorPolicy.Builder (1.64.0)

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. 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RequestMirrorPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public RequestMirrorPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RequestMirrorPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

clone()

public RequestMirrorPolicy.Builder clone()
Returns
Type Description
RequestMirrorPolicy.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RequestMirrorPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RequestMirrorPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

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 String

The 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 ByteString

The bytes for backendService to set.

Returns
Type Description
RequestMirrorPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RequestMirrorPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RequestMirrorPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RequestMirrorPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RequestMirrorPolicy.Builder
Overrides