Class FaultAbort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<FaultAbort.Builder>
com.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
io.envoyproxy.envoy.extensions.filters.http.fault.v3.FaultAbort.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,FaultAbortOrBuilder
,Cloneable
- Enclosing class:
FaultAbort
public static final class FaultAbort.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
implements FaultAbortOrBuilder
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.http.fault.v3.FaultAbort
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private int
private com.google.protobuf.SingleFieldBuilder
<FaultAbort.HeaderAbort, FaultAbort.HeaderAbort.Builder, FaultAbort.HeaderAbortOrBuilder> private FractionalPercent
private com.google.protobuf.SingleFieldBuilder
<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(FaultAbort result) private void
buildPartialOneofs
(FaultAbort result) clear()
gRPC status code to use to abort the gRPC request.Fault aborts are controlled via an HTTP header (if applicable).HTTP status code to use to abort the HTTP request.The percentage of requests/operations/connections that will be aborted with the error code provided.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
gRPC status code to use to abort the gRPC request.Fault aborts are controlled via an HTTP header (if applicable).Fault aborts are controlled via an HTTP header (if applicable).Fault aborts are controlled via an HTTP header (if applicable).int
HTTP status code to use to abort the HTTP request.The percentage of requests/operations/connections that will be aborted with the error code provided.The percentage of requests/operations/connections that will be aborted with the error code provided.The percentage of requests/operations/connections that will be aborted with the error code provided.boolean
gRPC status code to use to abort the gRPC request.boolean
Fault aborts are controlled via an HTTP header (if applicable).boolean
HTTP status code to use to abort the HTTP request.boolean
The percentage of requests/operations/connections that will be aborted with the error code provided.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<FaultAbort.HeaderAbort, FaultAbort.HeaderAbort.Builder, FaultAbort.HeaderAbortOrBuilder> Fault aborts are controlled via an HTTP header (if applicable).private com.google.protobuf.SingleFieldBuilder
<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> The percentage of requests/operations/connections that will be aborted with the error code provided.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(FaultAbort other) Fault aborts are controlled via an HTTP header (if applicable).mergePercentage
(FractionalPercent value) The percentage of requests/operations/connections that will be aborted with the error code provided.setGrpcStatus
(int value) gRPC status code to use to abort the gRPC request.Fault aborts are controlled via an HTTP header (if applicable).setHeaderAbort
(FaultAbort.HeaderAbort.Builder builderForValue) Fault aborts are controlled via an HTTP header (if applicable).setHttpStatus
(int value) HTTP status code to use to abort the HTTP request.setPercentage
(FractionalPercent value) The percentage of requests/operations/connections that will be aborted with the error code provided.setPercentage
(FractionalPercent.Builder builderForValue) The percentage of requests/operations/connections that will be aborted with the error code provided.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
errorTypeCase_
private int errorTypeCase_ -
errorType_
-
bitField0_
private int bitField0_ -
headerAbortBuilder_
private com.google.protobuf.SingleFieldBuilder<FaultAbort.HeaderAbort,FaultAbort.HeaderAbort.Builder, headerAbortBuilder_FaultAbort.HeaderAbortOrBuilder> -
percentage_
-
percentageBuilder_
private com.google.protobuf.SingleFieldBuilder<FractionalPercent,FractionalPercent.Builder, percentageBuilder_FractionalPercentOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FaultAbort.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<FaultAbort.Builder>
-
mergeFrom
public FaultAbort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FaultAbort.Builder>
- Throws:
IOException
-
getErrorTypeCase
- Specified by:
getErrorTypeCase
in interfaceFaultAbortOrBuilder
-
clearErrorType
-
hasHttpStatus
public boolean hasHttpStatus()HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Specified by:
hasHttpStatus
in interfaceFaultAbortOrBuilder
- Returns:
- Whether the httpStatus field is set.
-
getHttpStatus
public int getHttpStatus()HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Specified by:
getHttpStatus
in interfaceFaultAbortOrBuilder
- Returns:
- The httpStatus.
-
setHttpStatus
HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The httpStatus to set.- Returns:
- This builder for chaining.
-
clearHttpStatus
HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
hasGrpcStatus
public boolean hasGrpcStatus()gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Specified by:
hasGrpcStatus
in interfaceFaultAbortOrBuilder
- Returns:
- Whether the grpcStatus field is set.
-
getGrpcStatus
public int getGrpcStatus()gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Specified by:
getGrpcStatus
in interfaceFaultAbortOrBuilder
- Returns:
- The grpcStatus.
-
setGrpcStatus
gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Parameters:
value
- The grpcStatus to set.- Returns:
- This builder for chaining.
-
clearGrpcStatus
gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Returns:
- This builder for chaining.
-
hasHeaderAbort
public boolean hasHeaderAbort()Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
- Specified by:
hasHeaderAbort
in interfaceFaultAbortOrBuilder
- Returns:
- Whether the headerAbort field is set.
-
getHeaderAbort
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
- Specified by:
getHeaderAbort
in interfaceFaultAbortOrBuilder
- Returns:
- The headerAbort.
-
setHeaderAbort
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
setHeaderAbort
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
mergeHeaderAbort
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
clearHeaderAbort
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
getHeaderAbortBuilder
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
getHeaderAbortOrBuilder
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
- Specified by:
getHeaderAbortOrBuilder
in interfaceFaultAbortOrBuilder
-
internalGetHeaderAbortFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FaultAbort.HeaderAbort,FaultAbort.HeaderAbort.Builder, internalGetHeaderAbortFieldBuilder()FaultAbort.HeaderAbortOrBuilder> Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
hasPercentage
public boolean hasPercentage()The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
- Specified by:
hasPercentage
in interfaceFaultAbortOrBuilder
- Returns:
- Whether the percentage field is set.
-
getPercentage
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
- Specified by:
getPercentage
in interfaceFaultAbortOrBuilder
- Returns:
- The percentage.
-
setPercentage
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
setPercentage
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
mergePercentage
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
clearPercentage
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
getPercentageBuilder
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
getPercentageOrBuilder
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
- Specified by:
getPercentageOrBuilder
in interfaceFaultAbortOrBuilder
-
internalGetPercentageFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FractionalPercent,FractionalPercent.Builder, internalGetPercentageFieldBuilder()FractionalPercentOrBuilder> The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-