public final class HTTPFault extends com.google.protobuf.GeneratedMessageV3 implements HTTPFaultOrBuilder
envoy.config.filter.http.fault.v2.HTTPFault| Modifier and Type | Class and Description |
|---|---|
static class |
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) |
FaultAbort |
getAbort()
If specified, the filter will abort requests based on the values in
the object.
|
FaultAbortOrBuilder |
getAbortOrBuilder()
If specified, the filter will abort requests based on the values in
the object.
|
static HTTPFault |
getDefaultInstance() |
HTTPFault |
getDefaultInstanceForType() |
FaultDelay |
getDelay()
If specified, the filter will inject delays based on the values in the
object.
|
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.
|
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<HeaderMatcher> |
getHeadersList()
Specifies a set of headers that the filter should match on.
|
HeaderMatcherOrBuilder |
getHeadersOrBuilder(int index)
Specifies a set of headers that the filter should match on.
|
List<? extends HeaderMatcherOrBuilder> |
getHeadersOrBuilderList()
Specifies a set of headers that the filter should match on.
|
com.google.protobuf.Parser<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 HTTPFault.Builder |
newBuilder() |
static HTTPFault.Builder |
newBuilder(HTTPFault prototype) |
HTTPFault.Builder |
newBuilderForType() |
protected HTTPFault.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static HTTPFault |
parseDelimitedFrom(InputStream input) |
static HTTPFault |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HTTPFault |
parseFrom(byte[] data) |
static HTTPFault |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HTTPFault |
parseFrom(ByteBuffer data) |
static HTTPFault |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HTTPFault |
parseFrom(com.google.protobuf.ByteString data) |
static HTTPFault |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HTTPFault |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HTTPFault |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HTTPFault |
parseFrom(InputStream input) |
static HTTPFault |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HTTPFault> |
parser() |
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 HTTPFaultOrBuilderpublic 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 HTTPFaultOrBuilderpublic 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 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 HTTPFaultOrBuilderpublic 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 HTTPFaultOrBuilderpublic 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 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 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 HTTPFaultOrBuilderpublic List<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:`percentage <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` 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 HTTPFaultOrBuilderpublic List<? extends 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:`percentage <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` 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 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:`percentage <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` 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 HTTPFaultOrBuilderpublic 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:`percentage <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` 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 HTTPFaultOrBuilderpublic 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:`percentage <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` 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 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 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 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 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 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 HTTPFault parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HTTPFault parseFrom(InputStream input) throws IOException
IOExceptionpublic static HTTPFault parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HTTPFault parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HTTPFault parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HTTPFault.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HTTPFault.Builder newBuilder()
public static HTTPFault.Builder newBuilder(HTTPFault prototype)
public HTTPFault.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HTTPFault.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HTTPFault getDefaultInstance()
public static com.google.protobuf.Parser<HTTPFault> parser()
public com.google.protobuf.Parser<HTTPFault> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HTTPFault getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.