Package com.github.xds.type.v3
Class CelExtractString.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CelExtractString.Builder>
com.google.protobuf.GeneratedMessage.Builder<CelExtractString.Builder>
com.github.xds.type.v3.CelExtractString.Builder
- All Implemented Interfaces:
CelExtractStringOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
CelExtractString
public static final class CelExtractString.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CelExtractString.Builder>
implements CelExtractStringOrBuilder
Extracts a string by evaluating a `Common Expression Language <https://github.com/google/cel-spec>`_ (CEL) expression against the standardized set of :ref:`HTTP attributes <arch_overview_attributes>`. .. attention:: Besides CEL evaluation raising an error explicitly, CEL program returning a type other than the ``string``, or not returning anything, are considered an error as well. [#comment:TODO(sergiitk): When implemented, add the extension tag.]Protobuf type
xds.type.v3.CelExtractString
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.StringValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> private CelExpression
private com.google.protobuf.SingleFieldBuilder
<CelExpression, CelExpression.Builder, CelExpressionOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(CelExtractString result) clear()
If CEL expression evaluates to an error, this value is be returned to the caller.The CEL expression used to extract a string from the CEL environment.com.google.protobuf.StringValue
If CEL expression evaluates to an error, this value is be returned to the caller.com.google.protobuf.StringValue.Builder
If CEL expression evaluates to an error, this value is be returned to the caller.com.google.protobuf.StringValueOrBuilder
If CEL expression evaluates to an error, this value is be returned to the caller.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The CEL expression used to extract a string from the CEL environment.The CEL expression used to extract a string from the CEL environment.The CEL expression used to extract a string from the CEL environment.boolean
If CEL expression evaluates to an error, this value is be returned to the caller.boolean
The CEL expression used to extract a string from the CEL environment.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> If CEL expression evaluates to an error, this value is be returned to the caller.private com.google.protobuf.SingleFieldBuilder
<CelExpression, CelExpression.Builder, CelExpressionOrBuilder> The CEL expression used to extract a string from the CEL environment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeDefaultValue
(com.google.protobuf.StringValue value) If CEL expression evaluates to an error, this value is be returned to the caller.mergeExprExtract
(CelExpression value) The CEL expression used to extract a string from the CEL environment.mergeFrom
(CelExtractString other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setDefaultValue
(com.google.protobuf.StringValue value) If CEL expression evaluates to an error, this value is be returned to the caller.setDefaultValue
(com.google.protobuf.StringValue.Builder builderForValue) If CEL expression evaluates to an error, this value is be returned to the caller.setExprExtract
(CelExpression value) The CEL expression used to extract a string from the CEL environment.setExprExtract
(CelExpression.Builder builderForValue) The CEL expression used to extract a string from the CEL environment.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
-
bitField0_
private int bitField0_ -
exprExtract_
-
exprExtractBuilder_
private com.google.protobuf.SingleFieldBuilder<CelExpression,CelExpression.Builder, exprExtractBuilder_CelExpressionOrBuilder> -
defaultValue_
private com.google.protobuf.StringValue defaultValue_ -
defaultValueBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.StringValue,com.google.protobuf.StringValue.Builder, defaultValueBuilder_com.google.protobuf.StringValueOrBuilder>
-
-
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<CelExtractString.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<CelExtractString.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<CelExtractString.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CelExtractString.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CelExtractString.Builder>
-
mergeFrom
public CelExtractString.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<CelExtractString.Builder>
- Throws:
IOException
-
hasExprExtract
public boolean hasExprExtract()The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
- Specified by:
hasExprExtract
in interfaceCelExtractStringOrBuilder
- Returns:
- Whether the exprExtract field is set.
-
getExprExtract
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
- Specified by:
getExprExtract
in interfaceCelExtractStringOrBuilder
- Returns:
- The exprExtract.
-
setExprExtract
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
setExprExtract
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
mergeExprExtract
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
clearExprExtract
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
getExprExtractBuilder
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
getExprExtractOrBuilder
The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
- Specified by:
getExprExtractOrBuilder
in interfaceCelExtractStringOrBuilder
-
internalGetExprExtractFieldBuilder
private com.google.protobuf.SingleFieldBuilder<CelExpression,CelExpression.Builder, internalGetExprExtractFieldBuilder()CelExpressionOrBuilder> The CEL expression used to extract a string from the CEL environment. the "subject string") that should be replaced.
.xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
-
hasDefaultValue
public boolean hasDefaultValue()If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
- Specified by:
hasDefaultValue
in interfaceCelExtractStringOrBuilder
- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
public com.google.protobuf.StringValue getDefaultValue()If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
- Specified by:
getDefaultValue
in interfaceCelExtractStringOrBuilder
- Returns:
- The defaultValue.
-
setDefaultValue
If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-
setDefaultValue
public CelExtractString.Builder setDefaultValue(com.google.protobuf.StringValue.Builder builderForValue) If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-
mergeDefaultValue
If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-
clearDefaultValue
If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-
getDefaultValueBuilder
public com.google.protobuf.StringValue.Builder getDefaultValueBuilder()If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-
getDefaultValueOrBuilder
public com.google.protobuf.StringValueOrBuilder getDefaultValueOrBuilder()If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
- Specified by:
getDefaultValueOrBuilder
in interfaceCelExtractStringOrBuilder
-
internalGetDefaultValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.StringValue,com.google.protobuf.StringValue.Builder, internalGetDefaultValueFieldBuilder()com.google.protobuf.StringValueOrBuilder> If CEL expression evaluates to an error, this value is be returned to the caller. If not set, the error is propagated to the caller.
.google.protobuf.StringValue default_value = 2;
-