Package com.github.xds.type.v3
Class CelExtractString.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 typexds.type.v3.CelExtractString
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CelExtractString.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CelExtractStringbuild()CelExtractStringbuildPartial()CelExtractString.Builderclear()CelExtractString.BuilderclearDefaultValue()If CEL expression evaluates to an error, this value is be returned to the caller.CelExtractString.BuilderclearExprExtract()The CEL expression used to extract a string from the CEL environment.CelExtractString.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CelExtractString.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CelExtractString.Builderclone()CelExtractStringgetDefaultInstanceForType()com.google.protobuf.StringValuegetDefaultValue()If CEL expression evaluates to an error, this value is be returned to the caller.com.google.protobuf.StringValue.BuildergetDefaultValueBuilder()If CEL expression evaluates to an error, this value is be returned to the caller.com.google.protobuf.StringValueOrBuildergetDefaultValueOrBuilder()If CEL expression evaluates to an error, this value is be returned to the caller.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CelExpressiongetExprExtract()The CEL expression used to extract a string from the CEL environment.CelExpression.BuildergetExprExtractBuilder()The CEL expression used to extract a string from the CEL environment.CelExpressionOrBuildergetExprExtractOrBuilder()The CEL expression used to extract a string from the CEL environment.booleanhasDefaultValue()If CEL expression evaluates to an error, this value is be returned to the caller.booleanhasExprExtract()The CEL expression used to extract a string from the CEL environment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CelExtractString.BuildermergeDefaultValue(com.google.protobuf.StringValue value)If CEL expression evaluates to an error, this value is be returned to the caller.CelExtractString.BuildermergeExprExtract(CelExpression value)The CEL expression used to extract a string from the CEL environment.CelExtractString.BuildermergeFrom(CelExtractString other)CelExtractString.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CelExtractString.BuildermergeFrom(com.google.protobuf.Message other)CelExtractString.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CelExtractString.BuildersetDefaultValue(com.google.protobuf.StringValue value)If CEL expression evaluates to an error, this value is be returned to the caller.CelExtractString.BuildersetDefaultValue(com.google.protobuf.StringValue.Builder builderForValue)If CEL expression evaluates to an error, this value is be returned to the caller.CelExtractString.BuildersetExprExtract(CelExpression value)The CEL expression used to extract a string from the CEL environment.CelExtractString.BuildersetExprExtract(CelExpression.Builder builderForValue)The CEL expression used to extract a string from the CEL environment.CelExtractString.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CelExtractString.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CelExtractString.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
clear
public CelExtractString.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
getDefaultInstanceForType
public CelExtractString getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CelExtractString build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CelExtractString buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CelExtractString.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
setField
public CelExtractString.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
clearField
public CelExtractString.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
clearOneof
public CelExtractString.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
setRepeatedField
public CelExtractString.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
addRepeatedField
public CelExtractString.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
mergeFrom
public CelExtractString.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CelExtractString.Builder>
-
mergeFrom
public CelExtractString.Builder mergeFrom(CelExtractString other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
mergeFrom
public CelExtractString.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasExprExtractin interfaceCelExtractStringOrBuilder- Returns:
- Whether the exprExtract field is set.
-
getExprExtract
public CelExpression 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:
getExprExtractin interfaceCelExtractStringOrBuilder- Returns:
- The exprExtract.
-
setExprExtract
public CelExtractString.Builder setExprExtract(CelExpression value)
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
public CelExtractString.Builder setExprExtract(CelExpression.Builder builderForValue)
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
public CelExtractString.Builder mergeExprExtract(CelExpression value)
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
public CelExtractString.Builder 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
public CelExpression.Builder 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
public CelExpressionOrBuilder 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:
getExprExtractOrBuilderin interfaceCelExtractStringOrBuilder
-
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:
hasDefaultValuein 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:
getDefaultValuein interfaceCelExtractStringOrBuilder- Returns:
- The defaultValue.
-
setDefaultValue
public CelExtractString.Builder setDefaultValue(com.google.protobuf.StringValue value)
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
public CelExtractString.Builder mergeDefaultValue(com.google.protobuf.StringValue value)
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
public CelExtractString.Builder 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:
getDefaultValueOrBuilderin interfaceCelExtractStringOrBuilder
-
setUnknownFields
public final CelExtractString.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
mergeUnknownFields
public final CelExtractString.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CelExtractString.Builder>
-
-