Class RequestMirrorPolicy.Builder (1.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RequestMirrorPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

build()

public RequestMirrorPolicy build()
Returns
TypeDescription
RequestMirrorPolicy

buildPartial()

public RequestMirrorPolicy buildPartial()
Returns
TypeDescription
RequestMirrorPolicy

clear()

public RequestMirrorPolicy.Builder clear()
Returns
TypeDescription
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
TypeDescription
RequestMirrorPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RequestMirrorPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RequestMirrorPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

clone()

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

The bytes for backendService.

getDefaultInstanceForType()

public RequestMirrorPolicy getDefaultInstanceForType()
Returns
TypeDescription
RequestMirrorPolicy

getDescriptorForType()

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

Whether the backendService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RequestMirrorPolicy other)

public RequestMirrorPolicy.Builder mergeFrom(RequestMirrorPolicy other)
Parameter
NameDescription
otherRequestMirrorPolicy
Returns
TypeDescription
RequestMirrorPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RequestMirrorPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RequestMirrorPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RequestMirrorPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The backendService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for backendService to set.

Returns
TypeDescription
RequestMirrorPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RequestMirrorPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

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

public RequestMirrorPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RequestMirrorPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RequestMirrorPolicy.Builder
Overrides