Class Reference.Builder

  • All Implemented Interfaces:
    ReferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Reference

    public static final class Reference.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
    implements ReferenceOrBuilder
     Describes a resolved reference to a declaration.
     
    Protobuf type google.api.expr.v1alpha1.Reference
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • clear

        public Reference.Builder 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.GeneratedMessageV3.Builder<Reference.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.GeneratedMessageV3.Builder<Reference.Builder>
      • getDefaultInstanceForType

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

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

        public Reference buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Reference.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • setField

        public Reference.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • clearField

        public Reference.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • clearOneof

        public Reference.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • setRepeatedField

        public Reference.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • addRepeatedField

        public Reference.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • mergeFrom

        public Reference.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<Reference.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • mergeFrom

        public Reference.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<Reference.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The fully qualified name of the declaration.
         
        string name = 1;
        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;
        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;
        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;
        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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getOverloadIdList

        public com.google.protobuf.ProtocolStringList 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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
      • 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;
      • 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;
      • 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;
      • getValueBuilder

        public Constant.Builder getValueBuilder()
         For references to constants, this may contain the value of the
         constant if known at compile time.
         
        .google.api.expr.v1alpha1.Constant value = 4;
      • getValueOrBuilder

        public ConstantOrBuilder getValueOrBuilder()
         For references to constants, this may contain the value of the
         constant if known at compile time.
         
        .google.api.expr.v1alpha1.Constant value = 4;
        Specified by:
        getValueOrBuilder in interface ReferenceOrBuilder
      • setUnknownFields

        public final Reference.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
      • mergeUnknownFields

        public final Reference.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>