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 Details

  • 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 class com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Extension.Builder>
    • getDefaultInstanceForType

      public SourceInfo.Extension getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SourceInfo.Extension build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SourceInfo.Extension buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInfo.Extension.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Identifier for the extension. Example: constant_folding
       
      string id = 1;
      Specified by:
      getId in interface SourceInfo.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 interface SourceInfo.ExtensionOrBuilder
      Returns:
      The bytes for id.
    • setId

      public SourceInfo.Extension.Builder setId(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 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 interface SourceInfo.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 interface SourceInfo.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 interface SourceInfo.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(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 List<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 interface SourceInfo.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 interface SourceInfo.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(Iterable<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 interface SourceInfo.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 interface SourceInfo.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

       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

      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 interface SourceInfo.ExtensionOrBuilder
    • internalGetVersionFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<SourceInfo.Extension.Version,SourceInfo.Extension.Version.Builder,SourceInfo.Extension.VersionOrBuilder> internalGetVersionFieldBuilder()
       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;