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
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.Internal.IntList
affectedComponents_
private int
bitField0_
private java.lang.Object
id_
private SourceInfo.Extension.Version
version_
private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder,SourceInfo.Extension.VersionOrBuilder>
versionBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceInfo.Extension.Builder
addAffectedComponents(SourceInfo.Extension.Component value)
If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.Builder
addAffectedComponentsValue(int value)
If set, the listed components must understand the extension for the expression to evaluate correctly.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.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.SourceInfo.Extension
build()
SourceInfo.Extension
buildPartial()
private void
buildPartial0(SourceInfo.Extension result)
private void
buildPartialRepeatedFields(SourceInfo.Extension result)
SourceInfo.Extension.Builder
clear()
SourceInfo.Extension.Builder
clearAffectedComponents()
If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.Builder
clearId()
Identifier for the extension.SourceInfo.Extension.Builder
clearVersion()
Version info.private void
ensureAffectedComponentsIsMutable()
SourceInfo.Extension.Component
getAffectedComponents(int index)
If set, the listed components must understand the extension for the expression to evaluate correctly.int
getAffectedComponentsCount()
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.int
getAffectedComponentsValue(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.Extension
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getId()
Identifier for the extension.com.google.protobuf.ByteString
getIdBytes()
Identifier for the extension.SourceInfo.Extension.Version
getVersion()
Version info.SourceInfo.Extension.Version.Builder
getVersionBuilder()
Version info.private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder,SourceInfo.Extension.VersionOrBuilder>
getVersionFieldBuilder()
Version info.SourceInfo.Extension.VersionOrBuilder
getVersionOrBuilder()
Version info.boolean
hasVersion()
Version info.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
SourceInfo.Extension.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SourceInfo.Extension.Builder
mergeFrom(com.google.protobuf.Message other)
SourceInfo.Extension.Builder
mergeFrom(SourceInfo.Extension other)
SourceInfo.Extension.Builder
mergeVersion(SourceInfo.Extension.Version value)
Version info.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.SourceInfo.Extension.Builder
setAffectedComponentsValue(int index, int value)
If set, the listed components must understand the extension for the expression to evaluate correctly.SourceInfo.Extension.Builder
setId(java.lang.String value)
Identifier for the extension.SourceInfo.Extension.Builder
setIdBytes(com.google.protobuf.ByteString value)
Identifier for the extension.SourceInfo.Extension.Builder
setVersion(SourceInfo.Extension.Version value)
Version info.SourceInfo.Extension.Builder
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
id_
private java.lang.Object id_
-
affectedComponents_
private com.google.protobuf.Internal.IntList affectedComponents_
-
version_
private SourceInfo.Extension.Version version_
-
versionBuilder_
private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder,SourceInfo.Extension.VersionOrBuilder> versionBuilder_
-
-
Method Detail
-
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
public SourceInfo.Extension.Builder 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
public SourceInfo.Extension getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourceInfo.Extension build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourceInfo.Extension buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(SourceInfo.Extension result)
-
buildPartial0
private void buildPartial0(SourceInfo.Extension result)
-
mergeFrom
public SourceInfo.Extension.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
-
mergeFrom
public SourceInfo.Extension.Builder mergeFrom(SourceInfo.Extension other)
-
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 java.io.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:
java.io.IOException
-
getId
public java.lang.String 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
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.
-
ensureAffectedComponentsIsMutable
private void ensureAffectedComponentsIsMutable()
-
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:
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
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:
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
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:
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
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:
hasVersion
in 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:
getVersion
in 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:
getVersionOrBuilder
in interfaceSourceInfo.ExtensionOrBuilder
-
getVersionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder,SourceInfo.Extension.VersionOrBuilder> getVersionFieldBuilder()
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;
-
-