Package com.google.api.expr.v1alpha1
Class Decl.FunctionDecl.Overload
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload
- All Implemented Interfaces:
Decl.FunctionDecl.OverloadOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
Decl.FunctionDecl
public static final class Decl.FunctionDecl.Overload
extends com.google.protobuf.GeneratedMessage
implements Decl.FunctionDecl.OverloadOrBuilder
An overload indicates a function's parameter types and return type, and may optionally include a function body described in terms of [Expr][google.api.expr.v1alpha1.Expr] values. Functions overloads are declared in either a function or method call-style. For methods, the `params[0]` is the expected type of the target receiver. Overloads must have non-overlapping argument types after erasure of all parameterized type variables (similar as type erasure in Java).Protobuf type
google.api.expr.v1alpha1.Decl.FunctionDecl.Overload
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
An overload indicates a function's parameter types and return type, and may optionally include a function body described in terms of [Expr][google.api.expr.v1alpha1.Expr] values.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final Decl.FunctionDecl.Overload
private Object
static final int
static final int
private boolean
private byte
static final int
private Object
static final int
private static final com.google.protobuf.Parser
<Decl.FunctionDecl.Overload> static final int
private Type
private static final long
static final int
private com.google.protobuf.LazyStringArrayList
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Decl.FunctionDecl.Overload
static final com.google.protobuf.Descriptors.Descriptor
getDoc()
Documentation string for the overload.com.google.protobuf.ByteString
Documentation string for the overload.boolean
Whether the function is to be used in a method call-style `x.f(...)` or a function call-style `f(x, ...)`.Required.com.google.protobuf.ByteString
Required.getParams
(int index) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.int
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.getParamsOrBuilder
(int index) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.List
<? extends TypeOrBuilder> List of function parameter [Type][google.api.expr.v1alpha1.Type] values.com.google.protobuf.Parser
<Decl.FunctionDecl.Overload> Required.Required.int
getTypeParams
(int index) The type param names associated with the function declaration.com.google.protobuf.ByteString
getTypeParamsBytes
(int index) The type param names associated with the function declaration.int
The type param names associated with the function declaration.com.google.protobuf.ProtocolStringList
The type param names associated with the function declaration.int
hashCode()
boolean
Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
newBuilder
(Decl.FunctionDecl.Overload prototype) protected Decl.FunctionDecl.Overload.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static Decl.FunctionDecl.Overload
parseDelimitedFrom
(InputStream input) static Decl.FunctionDecl.Overload
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Decl.FunctionDecl.Overload
parseFrom
(byte[] data) static Decl.FunctionDecl.Overload
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Decl.FunctionDecl.Overload
parseFrom
(com.google.protobuf.ByteString data) static Decl.FunctionDecl.Overload
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Decl.FunctionDecl.Overload
parseFrom
(com.google.protobuf.CodedInputStream input) static Decl.FunctionDecl.Overload
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Decl.FunctionDecl.Overload
parseFrom
(InputStream input) static Decl.FunctionDecl.Overload
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Decl.FunctionDecl.Overload
parseFrom
(ByteBuffer data) static Decl.FunctionDecl.Overload
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<Decl.FunctionDecl.Overload> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
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.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
OVERLOAD_ID_FIELD_NUMBER
public static final int OVERLOAD_ID_FIELD_NUMBER- See Also:
-
overloadId_
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER- See Also:
-
params_
-
TYPE_PARAMS_FIELD_NUMBER
public static final int TYPE_PARAMS_FIELD_NUMBER- See Also:
-
typeParams_
private com.google.protobuf.LazyStringArrayList typeParams_ -
RESULT_TYPE_FIELD_NUMBER
public static final int RESULT_TYPE_FIELD_NUMBER- See Also:
-
resultType_
-
IS_INSTANCE_FUNCTION_FIELD_NUMBER
public static final int IS_INSTANCE_FUNCTION_FIELD_NUMBER- See Also:
-
isInstanceFunction_
private boolean isInstanceFunction_ -
DOC_FIELD_NUMBER
public static final int DOC_FIELD_NUMBER- See Also:
-
doc_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
Overload
private Overload(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Overload
private Overload()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getOverloadId
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;
- Specified by:
getOverloadId
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The overloadId.
-
getOverloadIdBytes
public com.google.protobuf.ByteString getOverloadIdBytes()Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;
- Specified by:
getOverloadIdBytes
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The bytes for overloadId.
-
getParamsList
List of function parameter [Type][google.api.expr.v1alpha1.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .google.api.expr.v1alpha1.Type params = 2;
- Specified by:
getParamsList
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParamsOrBuilderList
List of function parameter [Type][google.api.expr.v1alpha1.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .google.api.expr.v1alpha1.Type params = 2;
- Specified by:
getParamsOrBuilderList
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParamsCount
public int getParamsCount()List of function parameter [Type][google.api.expr.v1alpha1.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .google.api.expr.v1alpha1.Type params = 2;
- Specified by:
getParamsCount
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParams
List of function parameter [Type][google.api.expr.v1alpha1.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .google.api.expr.v1alpha1.Type params = 2;
- Specified by:
getParams
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParamsOrBuilder
List of function parameter [Type][google.api.expr.v1alpha1.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .google.api.expr.v1alpha1.Type params = 2;
- Specified by:
getParamsOrBuilder
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getTypeParamsList
public com.google.protobuf.ProtocolStringList getTypeParamsList()The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;
- Specified by:
getTypeParamsList
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- A list containing the typeParams.
-
getTypeParamsCount
public int getTypeParamsCount()The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;
- Specified by:
getTypeParamsCount
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The count of typeParams.
-
getTypeParams
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;
- Specified by:
getTypeParams
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The typeParams at the given index.
-
getTypeParamsBytes
public com.google.protobuf.ByteString getTypeParamsBytes(int index) The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;
- Specified by:
getTypeParamsBytes
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the typeParams at the given index.
-
hasResultType
public boolean hasResultType()Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.google.api.expr.v1alpha1.Type result_type = 4;
- Specified by:
hasResultType
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- Whether the resultType field is set.
-
getResultType
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.google.api.expr.v1alpha1.Type result_type = 4;
- Specified by:
getResultType
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The resultType.
-
getResultTypeOrBuilder
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.google.api.expr.v1alpha1.Type result_type = 4;
- Specified by:
getResultTypeOrBuilder
in interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getIsInstanceFunction
public boolean getIsInstanceFunction()Whether the function is to be used in a method call-style `x.f(...)` or a function call-style `f(x, ...)`. For methods, the first parameter declaration, `params[0]` is the expected type of the target receiver.
bool is_instance_function = 5;
- Specified by:
getIsInstanceFunction
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The isInstanceFunction.
-
getDoc
Documentation string for the overload.
string doc = 6;
- Specified by:
getDoc
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The doc.
-
getDocBytes
public com.google.protobuf.ByteString getDocBytes()Documentation string for the overload.
string doc = 6;
- Specified by:
getDocBytes
in interfaceDecl.FunctionDecl.OverloadOrBuilder
- Returns:
- The bytes for doc.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Decl.FunctionDecl.Overload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Decl.FunctionDecl.Overload.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-