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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RequestMirrorPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RequestMirrorPolicy build()
buildPartial()
public RequestMirrorPolicy buildPartial()
clear()
public RequestMirrorPolicy.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public RequestMirrorPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RequestMirrorPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public RequestMirrorPolicy.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RequestMirrorPolicy other)
public RequestMirrorPolicy.Builder mergeFrom(RequestMirrorPolicy other)
public RequestMirrorPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RequestMirrorPolicy.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RequestMirrorPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public RequestMirrorPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RequestMirrorPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RequestMirrorPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides