Package dev.cel.expr
Class SourceInfo.Extension.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typecel.expr.SourceInfo.Extension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceInfo.Extension.BuilderaddAffectedComponents(SourceInfo.Extension.Component value)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuilderaddAffectedComponentsValue(int value)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuilderaddAllAffectedComponents(java.lang.Iterable<? extends SourceInfo.Extension.Component> values)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuilderaddAllAffectedComponentsValue(java.lang.Iterable<java.lang.Integer> values)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extensionbuild()SourceInfo.ExtensionbuildPartial()SourceInfo.Extension.Builderclear()SourceInfo.Extension.BuilderclearAffectedComponents()If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuilderclearId()Identifier for the extension.SourceInfo.Extension.BuilderclearVersion()Version info.SourceInfo.Extension.ComponentgetAffectedComponents(int index)If set, the listed components must understand the extension for the expression to evaluate correctly.intgetAffectedComponentsCount()If set, the listed components must understand the extension for the expression to evaluate correctly.java.util.List<SourceInfo.Extension.Component>getAffectedComponentsList()If set, the listed components must understand the extension for the expression to evaluate correctly.intgetAffectedComponentsValue(int index)If set, the listed components must understand the extension for the expression to evaluate correctly.java.util.List<java.lang.Integer>getAffectedComponentsValueList()If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.ExtensiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetId()Identifier for the extension.com.google.protobuf.ByteStringgetIdBytes()Identifier for the extension.SourceInfo.Extension.VersiongetVersion()Version info.SourceInfo.Extension.Version.BuildergetVersionBuilder()Version info.SourceInfo.Extension.VersionOrBuildergetVersionOrBuilder()Version info.booleanhasVersion()Version info.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SourceInfo.Extension.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SourceInfo.Extension.BuildermergeFrom(com.google.protobuf.Message other)SourceInfo.Extension.BuildermergeFrom(SourceInfo.Extension other)SourceInfo.Extension.BuildermergeVersion(SourceInfo.Extension.Version value)Version info.SourceInfo.Extension.BuildersetAffectedComponents(int index, SourceInfo.Extension.Component value)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuildersetAffectedComponentsValue(int index, int value)If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.BuildersetId(java.lang.String value)Identifier for the extension.SourceInfo.Extension.BuildersetIdBytes(com.google.protobuf.ByteString value)Identifier for the extension.SourceInfo.Extension.BuildersetVersion(SourceInfo.Extension.Version value)Version info.SourceInfo.Extension.BuildersetVersion(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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
-
clear
public SourceInfo.Extension.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.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.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
-
getDefaultInstanceForType
public SourceInfo.Extension getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourceInfo.Extension build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourceInfo.Extension buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SourceInfo.Extension.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
-
mergeFrom
public SourceInfo.Extension.Builder mergeFrom(SourceInfo.Extension other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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 java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
Identifier for the extension. Example: constant_folding
string id = 1;- Specified by:
getIdin interfaceSourceInfo.ExtensionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Identifier for the extension. Example: constant_folding
string id = 1;- Specified by:
getIdBytesin interfaceSourceInfo.ExtensionOrBuilder- Returns:
- The bytes for id.
-
setId
public SourceInfo.Extension.Builder setId(java.lang.String value)
Identifier for the extension. Example: constant_folding
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public SourceInfo.Extension.Builder clearId()
Identifier for the extension. Example: constant_folding
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public SourceInfo.Extension.Builder setIdBytes(com.google.protobuf.ByteString value)
Identifier for the extension. Example: constant_folding
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getAffectedComponentsList
public java.util.List<SourceInfo.Extension.Component> 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:
getAffectedComponentsListin 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:
getAffectedComponentsCountin interfaceSourceInfo.ExtensionOrBuilder- Returns:
- The count of affectedComponents.
-
getAffectedComponents
public SourceInfo.Extension.Component getAffectedComponents(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:
getAffectedComponentsin 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
public SourceInfo.Extension.Builder addAffectedComponents(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:
value- The affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponents
public SourceInfo.Extension.Builder addAllAffectedComponents(java.lang.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
public SourceInfo.Extension.Builder 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
public java.util.List<java.lang.Integer> 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:
getAffectedComponentsValueListin 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:
getAffectedComponentsValuein 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
public SourceInfo.Extension.Builder setAffectedComponentsValue(int index, int 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 enum numeric value on the wire for affectedComponents to set.- Returns:
- This builder for chaining.
-
addAffectedComponentsValue
public SourceInfo.Extension.Builder addAffectedComponentsValue(int 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:
value- The enum numeric value on the wire for affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponentsValue
public SourceInfo.Extension.Builder addAllAffectedComponentsValue(java.lang.Iterable<java.lang.Integer> 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 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:
hasVersionin interfaceSourceInfo.ExtensionOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public SourceInfo.Extension.Version 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:
getVersionin interfaceSourceInfo.ExtensionOrBuilder- Returns:
- The version.
-
setVersion
public SourceInfo.Extension.Builder setVersion(SourceInfo.Extension.Version value)
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
public SourceInfo.Extension.Builder mergeVersion(SourceInfo.Extension.Version value)
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
public SourceInfo.Extension.Builder 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
public SourceInfo.Extension.Version.Builder 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
public SourceInfo.Extension.VersionOrBuilder 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:
getVersionOrBuilderin interfaceSourceInfo.ExtensionOrBuilder
-
-