Class HttpRoute.RequestMirrorPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.RequestMirrorPolicy.Builder>
com.google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy.Builder
- All Implemented Interfaces:
HttpRoute.RequestMirrorPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRoute.RequestMirrorPolicy
public static final class HttpRoute.RequestMirrorPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.RequestMirrorPolicy.Builder>
implements HttpRoute.RequestMirrorPolicyOrBuilder
Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow. Mirroring is currently not supported for Cloud Run destinations.Protobuf type
google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The destination the requests will be mirrored to.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe destination the requests will be mirrored to.The destination the requests will be mirrored to.The destination the requests will be mirrored to.floatOptional.booleanThe destination the requests will be mirrored to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe destination the requests will be mirrored to.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The destination the requests will be mirrored to.setDestination(HttpRoute.Destination.Builder builderForValue) The destination the requests will be mirrored to.setMirrorPercent(float value) Optional.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<HttpRoute.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<HttpRoute.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<HttpRoute.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<HttpRoute.RequestMirrorPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.RequestMirrorPolicy.Builder>
-
mergeFrom
public HttpRoute.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<HttpRoute.RequestMirrorPolicy.Builder>- Throws:
IOException
-
hasDestination
public boolean hasDestination()The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1;- Specified by:
hasDestinationin interfaceHttpRoute.RequestMirrorPolicyOrBuilder- Returns:
- Whether the destination field is set.
-
getDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1;- Specified by:
getDestinationin interfaceHttpRoute.RequestMirrorPolicyOrBuilder- Returns:
- The destination.
-
setDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1; -
setDestination
public HttpRoute.RequestMirrorPolicy.Builder setDestination(HttpRoute.Destination.Builder builderForValue) The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1; -
mergeDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1; -
clearDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1; -
getDestinationBuilder
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1; -
getDestinationOrBuilder
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.cloud.networkservices.v1.HttpRoute.Destination destination = 1;- Specified by:
getDestinationOrBuilderin interfaceHttpRoute.RequestMirrorPolicyOrBuilder
-
getMirrorPercent
public float getMirrorPercent()Optional. The percentage of requests to get mirrored to the desired destination.
float mirror_percent = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMirrorPercentin interfaceHttpRoute.RequestMirrorPolicyOrBuilder- Returns:
- The mirrorPercent.
-
setMirrorPercent
Optional. The percentage of requests to get mirrored to the desired destination.
float mirror_percent = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mirrorPercent to set.- Returns:
- This builder for chaining.
-
clearMirrorPercent
Optional. The percentage of requests to get mirrored to the desired destination.
float mirror_percent = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-