public static final class HttpRoute.RequestMirrorPolicy extends GeneratedMessageV3 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.
Protobuf type google.events.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HttpRoute.RequestMirrorPolicyImplements
HttpRoute.RequestMirrorPolicyOrBuilderStatic Fields
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static HttpRoute.RequestMirrorPolicy getDefaultInstance()
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static HttpRoute.RequestMirrorPolicy.Builder newBuilder()
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy.Builder |
newBuilder(HttpRoute.RequestMirrorPolicy prototype)
public static HttpRoute.RequestMirrorPolicy.Builder newBuilder(HttpRoute.RequestMirrorPolicy prototype)
Parameter | |
---|---|
Name | Description |
prototype |
HttpRoute.RequestMirrorPolicy |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy.Builder |
parseDelimitedFrom(InputStream input)
public static HttpRoute.RequestMirrorPolicy parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static HttpRoute.RequestMirrorPolicy parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static HttpRoute.RequestMirrorPolicy parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static HttpRoute.RequestMirrorPolicy parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static HttpRoute.RequestMirrorPolicy parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static HttpRoute.RequestMirrorPolicy parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RequestMirrorPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<HttpRoute.RequestMirrorPolicy> parser()
Returns | |
---|---|
Type | Description |
Parser<RequestMirrorPolicy> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public HttpRoute.RequestMirrorPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
getDestination()
public HttpRoute.Destination getDestination()
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.events.cloud.networkservices.v1.HttpRoute.Destination destination = 1;
Returns | |
---|---|
Type | Description |
HttpRoute.Destination |
The destination. |
getDestinationOrBuilder()
public HttpRoute.DestinationOrBuilder getDestinationOrBuilder()
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.events.cloud.networkservices.v1.HttpRoute.Destination destination = 1;
Returns | |
---|---|
Type | Description |
HttpRoute.DestinationOrBuilder |
getParserForType()
public Parser<HttpRoute.RequestMirrorPolicy> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<RequestMirrorPolicy> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasDestination()
public boolean hasDestination()
The destination the requests will be mirrored to. The weight of the destination will be ignored.
.google.events.cloud.networkservices.v1.HttpRoute.Destination destination = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the destination field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public HttpRoute.RequestMirrorPolicy.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpRoute.RequestMirrorPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public HttpRoute.RequestMirrorPolicy.Builder toBuilder()
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |