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
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static ReferencegetName()The fully qualified name of the declaration.com.google.protobuf.ByteStringThe 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.ByteStringgetOverloadIdBytes(int index) For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.intFor 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.booleanhasValue()For references to constants, this may contain the value of the constant if known at compile time.static Reference.Builderstatic Reference.BuildernewBuilder(Reference prototype) static ReferenceparseDelimitedFrom(InputStream input) static ReferenceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ReferenceparseFrom(byte[] data) static ReferenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ReferenceparseFrom(com.google.protobuf.ByteString data) static ReferenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ReferenceparseFrom(com.google.protobuf.CodedInputStream input) static ReferenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ReferenceparseFrom(InputStream input) static ReferenceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ReferenceparseFrom(ByteBuffer data) static ReferenceparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getNamein 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:
getNameBytesin 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:
getOverloadIdListin 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:
getOverloadIdCountin 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:
getOverloadIdin 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:
getOverloadIdBytesin 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:
hasValuein 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:
getValuein 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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Reference,Reference.Builder>
-
getDefaultInstance
-
parser
-