Package com.google.api.expr.v1alpha1
Interface ReferenceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Reference
,Reference.Builder
public interface ReferenceOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
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.getValue()
For references to constants, this may contain the value of the constant if known at compile time.boolean
hasValue()
For references to constants, this may contain the value of the constant if known at compile time.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
String getName()The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Returns:
- The bytes for name.
-
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"];
- Returns:
- A list containing the overloadId.
-
getOverloadIdCount
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"];
- Returns:
- The count of overloadId.
-
getOverloadId
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 of the element to return.- Returns:
- The overloadId at the given index.
-
getOverloadIdBytes
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"];
- Parameters:
index
- The index of the element to return.- Returns:
- The overloadId at the given index.
-
hasValue
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"];
- Returns:
- Whether the value field is set.
-
getValue
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"];
- Returns:
- The value.
-