Package com.google.api.expr.v1alpha1
Class Reference
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Reference,Reference.Builder>
com.google.api.expr.v1alpha1.Reference
- All Implemented Interfaces:
ReferenceOrBuilder
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
public final class Reference
extends com.google.protobuf.GeneratedMessageLite<Reference,Reference.Builder>
implements ReferenceOrBuilder
Describes a resolved reference to a declaration.Protobuf type
google.api.expr.v1alpha1.Reference
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Describes a resolved reference to a declaration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Reference
getName()
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.static Reference.Builder
static Reference.Builder
newBuilder
(Reference prototype) static Reference
parseDelimitedFrom
(InputStream input) static Reference
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reference
parseFrom
(byte[] data) static Reference
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reference
parseFrom
(com.google.protobuf.ByteString data) static Reference
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reference
parseFrom
(com.google.protobuf.CodedInputStream input) static Reference
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reference
parseFrom
(InputStream input) static Reference
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reference
parseFrom
(ByteBuffer data) static Reference
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Reference>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
OVERLOAD_ID_FIELD_NUMBER
public static final int OVERLOAD_ID_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getName
The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceReferenceOrBuilder
- 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 interfaceReferenceOrBuilder
- 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"];
- Specified by:
getOverloadIdList
in interfaceReferenceOrBuilder
- 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 interfaceReferenceOrBuilder
- 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"];
- Specified by:
getOverloadId
in interfaceReferenceOrBuilder
- 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 interfaceReferenceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the overloadId at the given index.
-
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 interfaceReferenceOrBuilder
- Returns:
- Whether the value field is set.
-
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 interfaceReferenceOrBuilder
- Returns:
- The value.
-
parseFrom
public static Reference parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Reference parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Reference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Reference parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Reference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Reference parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Reference parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Reference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Reference,
Reference.Builder>
-
getDefaultInstance
-
parser
-