Package com.google.cloud.compute.v1
Class RequestMirrorPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
com.google.cloud.compute.v1.RequestMirrorPolicy.Builder
- All Implemented Interfaces:
RequestMirrorPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RequestMirrorPolicy
public static final class RequestMirrorPolicy.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The full or partial URL to the BackendService resource being mirrored to.The percentage of requests to be mirrored to `backend_service`.The full or partial URL to the BackendService resource being mirrored to.com.google.protobuf.ByteStringThe full or partial URL to the BackendService resource being mirrored to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleThe percentage of requests to be mirrored to `backend_service`.booleanThe full or partial URL to the BackendService resource being mirrored to.booleanThe percentage of requests to be mirrored to `backend_service`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RequestMirrorPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBackendService(String value) The full or partial URL to the BackendService resource being mirrored to.setBackendServiceBytes(com.google.protobuf.ByteString value) The full or partial URL to the BackendService resource being mirrored to.setMirrorPercent(double value) The percentage of requests to be mirrored to `backend_service`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestMirrorPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RequestMirrorPolicy.Builder>
-
mergeFrom
public RequestMirrorPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestMirrorPolicy.Builder>- Throws:
IOException
-
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;- Specified by:
hasBackendServicein interfaceRequestMirrorPolicyOrBuilder- Returns:
- Whether the backendService field is set.
-
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;- Specified by:
getBackendServicein interfaceRequestMirrorPolicyOrBuilder- Returns:
- The backendService.
-
getBackendServiceBytes
public com.google.protobuf.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;- Specified by:
getBackendServiceBytesin interfaceRequestMirrorPolicyOrBuilder- Returns:
- The bytes for backendService.
-
setBackendService
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;- Parameters:
value- The backendService to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setBackendServiceBytes
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;- Parameters:
value- The bytes for backendService to set.- Returns:
- This builder for chaining.
-
hasMirrorPercent
public boolean hasMirrorPercent()The percentage of requests to be mirrored to `backend_service`.
optional double mirror_percent = 277432261;- Specified by:
hasMirrorPercentin interfaceRequestMirrorPolicyOrBuilder- Returns:
- Whether the mirrorPercent field is set.
-
getMirrorPercent
public double getMirrorPercent()The percentage of requests to be mirrored to `backend_service`.
optional double mirror_percent = 277432261;- Specified by:
getMirrorPercentin interfaceRequestMirrorPolicyOrBuilder- Returns:
- The mirrorPercent.
-
setMirrorPercent
The percentage of requests to be mirrored to `backend_service`.
optional double mirror_percent = 277432261;- Parameters:
value- The mirrorPercent to set.- Returns:
- This builder for chaining.
-
clearMirrorPercent
The percentage of requests to be mirrored to `backend_service`.
optional double mirror_percent = 277432261;- Returns:
- This builder for chaining.
-