public static final class Fault.HTTPFault extends com.google.protobuf.GeneratedMessageV3 implements Fault.HTTPFaultOrBuilder
envoy.config.filter.http.fault.v2.HTTPFault| Modifier and Type | Class and Description |
|---|---|
static class |
Fault.HTTPFault.Builder
Protobuf type
envoy.config.filter.http.fault.v2.HTTPFault |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ABORT_FIELD_NUMBER |
static int |
DELAY_FIELD_NUMBER |
static int |
DOWNSTREAM_NODES_FIELD_NUMBER |
static int |
HEADERS_FIELD_NUMBER |
static int |
UPSTREAM_CLUSTER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Fault.FaultAbort |
getAbort()
If specified, the filter will abort requests based on the values in
the object.
|
Fault.FaultAbortOrBuilder |
getAbortOrBuilder()
If specified, the filter will abort requests based on the values in
the object.
|
static Fault.HTTPFault |
getDefaultInstance() |
Fault.HTTPFault |
getDefaultInstanceForType() |
Fault.FaultDelay |
getDelay()
If specified, the filter will inject delays based on the values in the
object.
|
Fault.FaultDelayOrBuilder |
getDelayOrBuilder()
If specified, the filter will inject delays based on the values in the
object.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDownstreamNodes(int index)
Faults are injected for the specified list of downstream hosts.
|
com.google.protobuf.ByteString |
getDownstreamNodesBytes(int index)
Faults are injected for the specified list of downstream hosts.
|
int |
getDownstreamNodesCount()
Faults are injected for the specified list of downstream hosts.
|
com.google.protobuf.ProtocolStringList |
getDownstreamNodesList()
Faults are injected for the specified list of downstream hosts.
|
RouteOuterClass.HeaderMatcher |
getHeaders(int index)
Specifies a set of headers that the filter should match on.
|
int |
getHeadersCount()
Specifies a set of headers that the filter should match on.
|
List<RouteOuterClass.HeaderMatcher> |
getHeadersList()
Specifies a set of headers that the filter should match on.
|
RouteOuterClass.HeaderMatcherOrBuilder |
getHeadersOrBuilder(int index)
Specifies a set of headers that the filter should match on.
|
List<? extends RouteOuterClass.HeaderMatcherOrBuilder> |
getHeadersOrBuilderList()
Specifies a set of headers that the filter should match on.
|
com.google.protobuf.Parser<Fault.HTTPFault> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUpstreamCluster()
Specifies the name of the (destination) upstream cluster that the
filter should match on.
|
com.google.protobuf.ByteString |
getUpstreamClusterBytes()
Specifies the name of the (destination) upstream cluster that the
filter should match on.
|
boolean |
hasAbort()
If specified, the filter will abort requests based on the values in
the object.
|
boolean |
hasDelay()
If specified, the filter will inject delays based on the values in the
object.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Fault.HTTPFault.Builder |
newBuilder() |
static Fault.HTTPFault.Builder |
newBuilder(Fault.HTTPFault prototype) |
Fault.HTTPFault.Builder |
newBuilderForType() |
protected Fault.HTTPFault.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Fault.HTTPFault |
parseDelimitedFrom(InputStream input) |
static Fault.HTTPFault |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fault.HTTPFault |
parseFrom(byte[] data) |
static Fault.HTTPFault |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fault.HTTPFault |
parseFrom(ByteBuffer data) |
static Fault.HTTPFault |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fault.HTTPFault |
parseFrom(com.google.protobuf.ByteString data) |
static Fault.HTTPFault |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fault.HTTPFault |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Fault.HTTPFault |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fault.HTTPFault |
parseFrom(InputStream input) |
static Fault.HTTPFault |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Fault.HTTPFault> |
parser() |
Fault.HTTPFault.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DELAY_FIELD_NUMBER
public static final int ABORT_FIELD_NUMBER
public static final int UPSTREAM_CLUSTER_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
public static final int DOWNSTREAM_NODES_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasDelay()
If specified, the filter will inject delays based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.fault.v2.FaultDelay delay = 1;hasDelay in interface Fault.HTTPFaultOrBuilderpublic Fault.FaultDelay getDelay()
If specified, the filter will inject delays based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.fault.v2.FaultDelay delay = 1;getDelay in interface Fault.HTTPFaultOrBuilderpublic Fault.FaultDelayOrBuilder getDelayOrBuilder()
If specified, the filter will inject delays based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.fault.v2.FaultDelay delay = 1;getDelayOrBuilder in interface Fault.HTTPFaultOrBuilderpublic boolean hasAbort()
If specified, the filter will abort requests based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.http.fault.v2.FaultAbort abort = 2;hasAbort in interface Fault.HTTPFaultOrBuilderpublic Fault.FaultAbort getAbort()
If specified, the filter will abort requests based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.http.fault.v2.FaultAbort abort = 2;getAbort in interface Fault.HTTPFaultOrBuilderpublic Fault.FaultAbortOrBuilder getAbortOrBuilder()
If specified, the filter will abort requests based on the values in the object. At least *abort* or *delay* must be specified.
.envoy.config.filter.http.fault.v2.FaultAbort abort = 2;getAbortOrBuilder in interface Fault.HTTPFaultOrBuilderpublic String getUpstreamCluster()
Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;getUpstreamCluster in interface Fault.HTTPFaultOrBuilderpublic com.google.protobuf.ByteString getUpstreamClusterBytes()
Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;getUpstreamClusterBytes in interface Fault.HTTPFaultOrBuilderpublic List<RouteOuterClass.HeaderMatcher> getHeadersList()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percent <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percent>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the *value* field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 4;getHeadersList in interface Fault.HTTPFaultOrBuilderpublic List<? extends RouteOuterClass.HeaderMatcherOrBuilder> getHeadersOrBuilderList()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percent <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percent>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the *value* field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 4;getHeadersOrBuilderList in interface Fault.HTTPFaultOrBuilderpublic int getHeadersCount()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percent <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percent>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the *value* field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 4;getHeadersCount in interface Fault.HTTPFaultOrBuilderpublic RouteOuterClass.HeaderMatcher getHeaders(int index)
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percent <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percent>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the *value* field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 4;getHeaders in interface Fault.HTTPFaultOrBuilderpublic RouteOuterClass.HeaderMatcherOrBuilder getHeadersOrBuilder(int index)
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percent <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percent>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the *value* field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 4;getHeadersOrBuilder in interface Fault.HTTPFaultOrBuilderpublic com.google.protobuf.ProtocolStringList getDownstreamNodesList()
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;getDownstreamNodesList in interface Fault.HTTPFaultOrBuilderpublic int getDownstreamNodesCount()
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;getDownstreamNodesCount in interface Fault.HTTPFaultOrBuilderpublic String getDownstreamNodes(int index)
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;getDownstreamNodes in interface Fault.HTTPFaultOrBuilderpublic com.google.protobuf.ByteString getDownstreamNodesBytes(int index)
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;getDownstreamNodesBytes in interface Fault.HTTPFaultOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Fault.HTTPFault parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fault.HTTPFault parseFrom(InputStream input) throws IOException
IOExceptionpublic static Fault.HTTPFault parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fault.HTTPFault parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Fault.HTTPFault parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fault.HTTPFault parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Fault.HTTPFault parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Fault.HTTPFault.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Fault.HTTPFault.Builder newBuilder()
public static Fault.HTTPFault.Builder newBuilder(Fault.HTTPFault prototype)
public Fault.HTTPFault.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Fault.HTTPFault.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Fault.HTTPFault getDefaultInstance()
public static com.google.protobuf.Parser<Fault.HTTPFault> parser()
public com.google.protobuf.Parser<Fault.HTTPFault> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Fault.HTTPFault getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.