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,- java.io.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 typegoogle.api.expr.v1alpha1.Decl.FunctionDecl.Overload- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDecl.FunctionDecl.Overload.BuilderAn 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.GeneratedMessagecom.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 extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intDOC_FIELD_NUMBERstatic intIS_INSTANCE_FUNCTION_FIELD_NUMBERstatic intOVERLOAD_ID_FIELD_NUMBERstatic intPARAMS_FIELD_NUMBERstatic intRESULT_TYPE_FIELD_NUMBERstatic intTYPE_PARAMS_FIELD_NUMBER
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static Decl.FunctionDecl.OverloadgetDefaultInstance()Decl.FunctionDecl.OverloadgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetDoc()Documentation string for the overload.com.google.protobuf.ByteStringgetDocBytes()Documentation string for the overload.booleangetIsInstanceFunction()Whether the function is to be used in a method call-style `x.f(...)` or a function call-style `f(x, ...)`.java.lang.StringgetOverloadId()Required.com.google.protobuf.ByteStringgetOverloadIdBytes()Required.TypegetParams(int index)List of function parameter [Type][google.api.expr.v1alpha1.Type] values.intgetParamsCount()List of function parameter [Type][google.api.expr.v1alpha1.Type] values.java.util.List<Type>getParamsList()List of function parameter [Type][google.api.expr.v1alpha1.Type] values.TypeOrBuildergetParamsOrBuilder(int index)List of function parameter [Type][google.api.expr.v1alpha1.Type] values.java.util.List<? extends TypeOrBuilder>getParamsOrBuilderList()List of function parameter [Type][google.api.expr.v1alpha1.Type] values.com.google.protobuf.Parser<Decl.FunctionDecl.Overload>getParserForType()TypegetResultType()Required.TypeOrBuildergetResultTypeOrBuilder()Required.intgetSerializedSize()java.lang.StringgetTypeParams(int index)The type param names associated with the function declaration.com.google.protobuf.ByteStringgetTypeParamsBytes(int index)The type param names associated with the function declaration.intgetTypeParamsCount()The type param names associated with the function declaration.com.google.protobuf.ProtocolStringListgetTypeParamsList()The type param names associated with the function declaration.inthashCode()booleanhasResultType()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Decl.FunctionDecl.Overload.BuildernewBuilder()static Decl.FunctionDecl.Overload.BuildernewBuilder(Decl.FunctionDecl.Overload prototype)Decl.FunctionDecl.Overload.BuildernewBuilderForType()protected Decl.FunctionDecl.Overload.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static Decl.FunctionDecl.OverloadparseDelimitedFrom(java.io.InputStream input)static Decl.FunctionDecl.OverloadparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Decl.FunctionDecl.OverloadparseFrom(byte[] data)static Decl.FunctionDecl.OverloadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Decl.FunctionDecl.OverloadparseFrom(com.google.protobuf.ByteString data)static Decl.FunctionDecl.OverloadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Decl.FunctionDecl.OverloadparseFrom(com.google.protobuf.CodedInputStream input)static Decl.FunctionDecl.OverloadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Decl.FunctionDecl.OverloadparseFrom(java.io.InputStream input)static Decl.FunctionDecl.OverloadparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Decl.FunctionDecl.OverloadparseFrom(java.nio.ByteBuffer data)static Decl.FunctionDecl.OverloadparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Decl.FunctionDecl.Overload>parser()Decl.FunctionDecl.Overload.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)- 
Methods inherited from class com.google.protobuf.GeneratedMessagecanUseUnsafe, 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.AbstractMessagefindInitializationErrors, getInitializationErrorString, hashFields, toString
 - 
Methods inherited from class com.google.protobuf.AbstractMessageLiteaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Field Detail- 
OVERLOAD_ID_FIELD_NUMBERpublic static final int OVERLOAD_ID_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
PARAMS_FIELD_NUMBERpublic static final int PARAMS_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
TYPE_PARAMS_FIELD_NUMBERpublic static final int TYPE_PARAMS_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
RESULT_TYPE_FIELD_NUMBERpublic static final int RESULT_TYPE_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
IS_INSTANCE_FUNCTION_FIELD_NUMBERpublic static final int IS_INSTANCE_FUNCTION_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
DOC_FIELD_NUMBERpublic static final int DOC_FIELD_NUMBER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDescriptorpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor() 
 - 
internalGetFieldAccessorTableprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() - Specified by:
- internalGetFieldAccessorTablein class- com.google.protobuf.GeneratedMessage
 
 - 
getOverloadIdpublic java.lang.String 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:
- getOverloadIdin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The overloadId.
 
 - 
getOverloadIdBytespublic 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:
- getOverloadIdBytesin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The bytes for overloadId.
 
 - 
getParamsListpublic java.util.List<Type> 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:
- getParamsListin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getParamsOrBuilderListpublic java.util.List<? extends TypeOrBuilder> 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:
- getParamsOrBuilderListin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getParamsCountpublic 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:
- getParamsCountin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getParamspublic Type getParams(int index) 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:
- getParamsin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getParamsOrBuilderpublic TypeOrBuilder getParamsOrBuilder(int index) 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:
- getParamsOrBuilderin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getTypeParamsListpublic 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:
- getTypeParamsListin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- A list containing the typeParams.
 
 - 
getTypeParamsCountpublic 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:
- getTypeParamsCountin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The count of typeParams.
 
 - 
getTypeParamspublic java.lang.String getTypeParams(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:
- getTypeParamsin interface- Decl.FunctionDecl.OverloadOrBuilder
- Parameters:
- index- The index of the element to return.
- Returns:
- The typeParams at the given index.
 
 - 
getTypeParamsBytespublic 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:
- getTypeParamsBytesin interface- Decl.FunctionDecl.OverloadOrBuilder
- Parameters:
- index- The index of the value to return.
- Returns:
- The bytes of the typeParams at the given index.
 
 - 
hasResultTypepublic 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:
- hasResultTypein interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- Whether the resultType field is set.
 
 - 
getResultTypepublic Type 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:
- getResultTypein interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The resultType.
 
 - 
getResultTypeOrBuilderpublic TypeOrBuilder 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:
- getResultTypeOrBuilderin interface- Decl.FunctionDecl.OverloadOrBuilder
 
 - 
getIsInstanceFunctionpublic 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:
- getIsInstanceFunctionin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The isInstanceFunction.
 
 - 
getDocpublic java.lang.String getDoc() Documentation string for the overload. string doc = 6;- Specified by:
- getDocin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The doc.
 
 - 
getDocBytespublic com.google.protobuf.ByteString getDocBytes() Documentation string for the overload. string doc = 6;- Specified by:
- getDocBytesin interface- Decl.FunctionDecl.OverloadOrBuilder
- Returns:
- The bytes for doc.
 
 - 
isInitializedpublic final boolean isInitialized() - Specified by:
- isInitializedin interface- com.google.protobuf.MessageLiteOrBuilder
- Overrides:
- isInitializedin class- com.google.protobuf.GeneratedMessage
 
 - 
writeTopublic void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
- writeToin interface- com.google.protobuf.MessageLite
- Overrides:
- writeToin class- com.google.protobuf.GeneratedMessage
- Throws:
- java.io.IOException
 
 - 
getSerializedSizepublic int getSerializedSize() - Specified by:
- getSerializedSizein interface- com.google.protobuf.MessageLite
- Overrides:
- getSerializedSizein class- com.google.protobuf.GeneratedMessage
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Specified by:
- equalsin interface- com.google.protobuf.Message
- Overrides:
- equalsin class- com.google.protobuf.AbstractMessage
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- com.google.protobuf.Message
- Overrides:
- hashCodein class- com.google.protobuf.AbstractMessage
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic 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
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(java.io.InputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseDelimitedFrompublic static Decl.FunctionDecl.Overload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseDelimitedFrompublic static Decl.FunctionDecl.Overload parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
newBuilderForTypepublic Decl.FunctionDecl.Overload.Builder newBuilderForType() - Specified by:
- newBuilderForTypein interface- com.google.protobuf.Message
- Specified by:
- newBuilderForTypein interface- com.google.protobuf.MessageLite
 
 - 
newBuilderpublic static Decl.FunctionDecl.Overload.Builder newBuilder() 
 - 
newBuilderpublic static Decl.FunctionDecl.Overload.Builder newBuilder(Decl.FunctionDecl.Overload prototype) 
 - 
toBuilderpublic Decl.FunctionDecl.Overload.Builder toBuilder() - Specified by:
- toBuilderin interface- com.google.protobuf.Message
- Specified by:
- toBuilderin interface- com.google.protobuf.MessageLite
 
 - 
newBuilderForTypeprotected Decl.FunctionDecl.Overload.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
- newBuilderForTypein class- com.google.protobuf.AbstractMessage
 
 - 
getDefaultInstancepublic static Decl.FunctionDecl.Overload getDefaultInstance() 
 - 
parserpublic static com.google.protobuf.Parser<Decl.FunctionDecl.Overload> parser() 
 - 
getParserForTypepublic com.google.protobuf.Parser<Decl.FunctionDecl.Overload> getParserForType() - Specified by:
- getParserForTypein interface- com.google.protobuf.Message
- Specified by:
- getParserForTypein interface- com.google.protobuf.MessageLite
- Overrides:
- getParserForTypein class- com.google.protobuf.GeneratedMessage
 
 - 
getDefaultInstanceForTypepublic Decl.FunctionDecl.Overload getDefaultInstanceForType() - Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageLiteOrBuilder
- Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageOrBuilder
 
 
- 
 
-