Package dev.cel.expr
Class SourceInfo.Extension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
dev.cel.expr.SourceInfo.Extension.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,SourceInfo.ExtensionOrBuilder
,Cloneable
- Enclosing class:
SourceInfo.Extension
public static final class SourceInfo.Extension.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
implements SourceInfo.ExtensionOrBuilder
An extension that was requested for the source expression.Protobuf type
cel.expr.SourceInfo.Extension
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.Internal.IntList
private int
private Object
private SourceInfo.Extension.Version
private com.google.protobuf.SingleFieldBuilder
<SourceInfo.Extension.Version, SourceInfo.Extension.Version.Builder, SourceInfo.Extension.VersionOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf set, the listed components must understand the extension for the expression to evaluate correctly.addAffectedComponentsValue
(int value) If set, the listed components must understand the extension for the expression to evaluate correctly.addAllAffectedComponents
(Iterable<? extends SourceInfo.Extension.Component> values) If set, the listed components must understand the extension for the expression to evaluate correctly.addAllAffectedComponentsValue
(Iterable<Integer> values) If set, the listed components must understand the extension for the expression to evaluate correctly.build()
private void
buildPartial0
(SourceInfo.Extension result) private void
clear()
If set, the listed components must understand the extension for the expression to evaluate correctly.clearId()
Identifier for the extension.Version info.private void
getAffectedComponents
(int index) If set, the listed components must understand the extension for the expression to evaluate correctly.int
If set, the listed components must understand the extension for the expression to evaluate correctly.If set, the listed components must understand the extension for the expression to evaluate correctly.int
getAffectedComponentsValue
(int index) If set, the listed components must understand the extension for the expression to evaluate correctly.If set, the listed components must understand the extension for the expression to evaluate correctly.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getId()
Identifier for the extension.com.google.protobuf.ByteString
Identifier for the extension.Version info.Version info.private com.google.protobuf.SingleFieldBuilder
<SourceInfo.Extension.Version, SourceInfo.Extension.Version.Builder, SourceInfo.Extension.VersionOrBuilder> Version info.Version info.boolean
Version info.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(SourceInfo.Extension other) Version info.setAffectedComponents
(int index, SourceInfo.Extension.Component value) If set, the listed components must understand the extension for the expression to evaluate correctly.setAffectedComponentsValue
(int index, int value) If set, the listed components must understand the extension for the expression to evaluate correctly.Identifier for the extension.setIdBytes
(com.google.protobuf.ByteString value) Identifier for the extension.Version info.setVersion
(SourceInfo.Extension.Version.Builder builderForValue) Version info.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_ -
id_
-
affectedComponents_
private com.google.protobuf.Internal.IntList affectedComponents_ -
version_
-
versionBuilder_
private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder, versionBuilder_SourceInfo.Extension.VersionOrBuilder>
-
-
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<SourceInfo.Extension.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<SourceInfo.Extension.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<SourceInfo.Extension.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
-
mergeFrom
public SourceInfo.Extension.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<SourceInfo.Extension.Builder>
- Throws:
IOException
-
getId
Identifier for the extension. Example: constant_folding
string id = 1;
- Specified by:
getId
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Identifier for the extension. Example: constant_folding
string id = 1;
- Specified by:
getIdBytes
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The bytes for id.
-
setId
Identifier for the extension. Example: constant_folding
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Identifier for the extension. Example: constant_folding
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
Identifier for the extension. Example: constant_folding
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
ensureAffectedComponentsIsMutable
private void ensureAffectedComponentsIsMutable() -
getAffectedComponentsList
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Specified by:
getAffectedComponentsList
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- A list containing the affectedComponents.
-
getAffectedComponentsCount
public int getAffectedComponentsCount()If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Specified by:
getAffectedComponentsCount
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The count of affectedComponents.
-
getAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Specified by:
getAffectedComponents
in interfaceSourceInfo.ExtensionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The affectedComponents at the given index.
-
setAffectedComponents
public SourceInfo.Extension.Builder setAffectedComponents(int index, SourceInfo.Extension.Component value) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
index
- The index to set the value at.value
- The affectedComponents to set.- Returns:
- This builder for chaining.
-
addAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
value
- The affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponents
public SourceInfo.Extension.Builder addAllAffectedComponents(Iterable<? extends SourceInfo.Extension.Component> values) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
values
- The affectedComponents to add.- Returns:
- This builder for chaining.
-
clearAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Returns:
- This builder for chaining.
-
getAffectedComponentsValueList
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Specified by:
getAffectedComponentsValueList
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for affectedComponents.
-
getAffectedComponentsValue
public int getAffectedComponentsValue(int index) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Specified by:
getAffectedComponentsValue
in interfaceSourceInfo.ExtensionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of affectedComponents at the given index.
-
setAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for affectedComponents to set.- Returns:
- This builder for chaining.
-
addAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
value
- The enum numeric value on the wire for affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .cel.expr.SourceInfo.Extension.Component affected_components = 2;
- Parameters:
values
- The enum numeric values on the wire for affectedComponents to add.- Returns:
- This builder for chaining.
-
hasVersion
public boolean hasVersion()Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
- Specified by:
hasVersion
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
- Specified by:
getVersion
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The version.
-
setVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-
setVersion
public SourceInfo.Extension.Builder setVersion(SourceInfo.Extension.Version.Builder builderForValue) Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-
mergeVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-
clearVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-
getVersionBuilder
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-
getVersionOrBuilder
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
- Specified by:
getVersionOrBuilder
in interfaceSourceInfo.ExtensionOrBuilder
-
getVersionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder, getVersionFieldBuilder()SourceInfo.Extension.VersionOrBuilder> Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.cel.expr.SourceInfo.Extension.Version version = 3;
-