Class SourceInfo.Extension.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<SourceInfo.Extension,SourceInfo.Extension.Builder>
com.google.api.expr.v1alpha1.SourceInfo.Extension.Builder
All Implemented Interfaces:
SourceInfo.ExtensionOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
SourceInfo.Extension

public static final class SourceInfo.Extension.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SourceInfo.Extension,SourceInfo.Extension.Builder> implements SourceInfo.ExtensionOrBuilder
 An extension that was requested for the source expression.
 
Protobuf type google.api.expr.v1alpha1.SourceInfo.Extension
  • Method Details

    • getId

      public String getId()
       Identifier for the extension. Example: constant_folding
       
      string id = 1 [json_name = "id"];
      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 [json_name = "id"];
      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 [json_name = "id"];
      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 [json_name = "id"];
      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 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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 .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
      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).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
      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).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
      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).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
    • setVersion

       Version info. May be skipped if it isn't meaningful for the extension.
       (for example constant_folding might always be v0.0).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
    • mergeVersion

       Version info. May be skipped if it isn't meaningful for the extension.
       (for example constant_folding might always be v0.0).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
    • 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).
       
      .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];