Class Reference.Builder

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

public static final class Reference.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Reference,Reference.Builder> implements ReferenceOrBuilder
 Describes a resolved reference to a declaration.
 
Protobuf type google.api.expr.v1alpha1.Reference
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    addOverloadIdBytes(com.google.protobuf.ByteString value)
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    The fully qualified name of the declaration.
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    For references to constants, this may contain the value of the constant if known at compile time.
    The fully qualified name of the declaration.
    com.google.protobuf.ByteString
    The fully qualified name of the declaration.
    getOverloadId(int index)
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    com.google.protobuf.ByteString
    getOverloadIdBytes(int index)
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    int
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    For references to constants, this may contain the value of the constant if known at compile time.
    boolean
    For references to constants, this may contain the value of the constant if known at compile time.
    For references to constants, this may contain the value of the constant if known at compile time.
    setName(String value)
    The fully qualified name of the declaration.
    setNameBytes(com.google.protobuf.ByteString value)
    The fully qualified name of the declaration.
    setOverloadId(int index, String value)
    For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
    For references to constants, this may contain the value of the constant if known at compile time.
    setValue(Constant.Builder builderForValue)
    For references to constants, this may contain the value of the constant if known at compile time.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getName

      public String getName()
       The fully qualified name of the declaration.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface ReferenceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The fully qualified name of the declaration.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface ReferenceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Reference.Builder setName(String value)
       The fully qualified name of the declaration.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Reference.Builder clearName()
       The fully qualified name of the declaration.
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Reference.Builder setNameBytes(com.google.protobuf.ByteString value)
       The fully qualified name of the declaration.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getOverloadIdList

      public List<String> getOverloadIdList()
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Specified by:
      getOverloadIdList in interface ReferenceOrBuilder
      Returns:
      A list containing the overloadId.
    • getOverloadIdCount

      public int getOverloadIdCount()
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Specified by:
      getOverloadIdCount in interface ReferenceOrBuilder
      Returns:
      The count of overloadId.
    • getOverloadId

      public String getOverloadId(int index)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Specified by:
      getOverloadId in interface ReferenceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The overloadId at the given index.
    • getOverloadIdBytes

      public com.google.protobuf.ByteString getOverloadIdBytes(int index)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Specified by:
      getOverloadIdBytes in interface ReferenceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the overloadId at the given index.
    • setOverloadId

      public Reference.Builder setOverloadId(int index, String value)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Parameters:
      index - The index to set the value at.
      value - The overloadId to set.
      Returns:
      This builder for chaining.
    • addOverloadId

      public Reference.Builder addOverloadId(String value)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Parameters:
      value - The overloadId to add.
      Returns:
      This builder for chaining.
    • addAllOverloadId

      public Reference.Builder addAllOverloadId(Iterable<String> values)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Parameters:
      values - The overloadId to add.
      Returns:
      This builder for chaining.
    • clearOverloadId

      public Reference.Builder clearOverloadId()
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Returns:
      This builder for chaining.
    • addOverloadIdBytes

      public Reference.Builder addOverloadIdBytes(com.google.protobuf.ByteString value)
       For references to functions, this is a list of `Overload.overload_id`
       values which match according to typing rules.
      
       If the list has more than one element, overload resolution among the
       presented candidates must happen at runtime because of dynamic types. The
       type checker attempts to narrow down this list as much as possible.
      
       Empty if this is not a reference to a
       [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
       
      repeated string overload_id = 3 [json_name = "overloadId"];
      Parameters:
      value - The bytes of the overloadId to add.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
      Specified by:
      hasValue in interface ReferenceOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public Constant getValue()
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
      Specified by:
      getValue in interface ReferenceOrBuilder
      Returns:
      The value.
    • setValue

      public Reference.Builder setValue(Constant value)
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
    • setValue

      public Reference.Builder setValue(Constant.Builder builderForValue)
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
    • mergeValue

      public Reference.Builder mergeValue(Constant value)
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
    • clearValue

      public Reference.Builder clearValue()
       For references to constants, this may contain the value of the
       constant if known at compile time.
       
      .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];