public static final class Decl.FunctionDecl.Overload.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder> 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| Modifier and Type | Method and Description |
|---|---|
Decl.FunctionDecl.Overload.Builder |
addAllParams(Iterable<? extends Type> values)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
addAllTypeParams(Iterable<String> values)
The type param names associated with the function declaration.
|
Decl.FunctionDecl.Overload.Builder |
addParams(int index,
Type.Builder builderForValue)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
addParams(int index,
Type value)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
addParams(Type.Builder builderForValue)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
addParams(Type value)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Type.Builder |
addParamsBuilder()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Type.Builder |
addParamsBuilder(int index)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Decl.FunctionDecl.Overload.Builder |
addTypeParams(String value)
The type param names associated with the function declaration.
|
Decl.FunctionDecl.Overload.Builder |
addTypeParamsBytes(com.google.protobuf.ByteString value)
The type param names associated with the function declaration.
|
Decl.FunctionDecl.Overload |
build() |
Decl.FunctionDecl.Overload |
buildPartial() |
Decl.FunctionDecl.Overload.Builder |
clear() |
Decl.FunctionDecl.Overload.Builder |
clearDoc()
Documentation string for the overload.
|
Decl.FunctionDecl.Overload.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Decl.FunctionDecl.Overload.Builder |
clearIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)`
of a function call-style `f(x, ...)`.
|
Decl.FunctionDecl.Overload.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Decl.FunctionDecl.Overload.Builder |
clearOverloadId()
Required.
|
Decl.FunctionDecl.Overload.Builder |
clearParams()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
clearResultType()
Required.
|
Decl.FunctionDecl.Overload.Builder |
clearTypeParams()
The type param names associated with the function declaration.
|
Decl.FunctionDecl.Overload.Builder |
clone() |
Decl.FunctionDecl.Overload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDoc()
Documentation string for the overload.
|
com.google.protobuf.ByteString |
getDocBytes()
Documentation string for the overload.
|
boolean |
getIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)`
of a function call-style `f(x, ...)`.
|
String |
getOverloadId()
Required.
|
com.google.protobuf.ByteString |
getOverloadIdBytes()
Required.
|
Type |
getParams(int index)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Type.Builder |
getParamsBuilder(int index)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
List<Type.Builder> |
getParamsBuilderList()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
int |
getParamsCount()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
List<Type> |
getParamsList()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
TypeOrBuilder |
getParamsOrBuilder(int index)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
List<? extends TypeOrBuilder> |
getParamsOrBuilderList()
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Type |
getResultType()
Required.
|
Type.Builder |
getResultTypeBuilder()
Required.
|
TypeOrBuilder |
getResultTypeOrBuilder()
Required.
|
String |
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 |
getTypeParamsCount()
The type param names associated with the function declaration.
|
com.google.protobuf.ProtocolStringList |
getTypeParamsList()
The type param names associated with the function declaration.
|
boolean |
hasResultType()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Decl.FunctionDecl.Overload.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Decl.FunctionDecl.Overload.Builder |
mergeFrom(Decl.FunctionDecl.Overload other) |
Decl.FunctionDecl.Overload.Builder |
mergeFrom(com.google.protobuf.Message other) |
Decl.FunctionDecl.Overload.Builder |
mergeResultType(Type value)
Required.
|
Decl.FunctionDecl.Overload.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Decl.FunctionDecl.Overload.Builder |
removeParams(int index)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
setDoc(String value)
Documentation string for the overload.
|
Decl.FunctionDecl.Overload.Builder |
setDocBytes(com.google.protobuf.ByteString value)
Documentation string for the overload.
|
Decl.FunctionDecl.Overload.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Decl.FunctionDecl.Overload.Builder |
setIsInstanceFunction(boolean value)
Whether the function is to be used in a method call-style `x.f(...)`
of a function call-style `f(x, ...)`.
|
Decl.FunctionDecl.Overload.Builder |
setOverloadId(String value)
Required.
|
Decl.FunctionDecl.Overload.Builder |
setOverloadIdBytes(com.google.protobuf.ByteString value)
Required.
|
Decl.FunctionDecl.Overload.Builder |
setParams(int index,
Type.Builder builderForValue)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
setParams(int index,
Type value)
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.
|
Decl.FunctionDecl.Overload.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Decl.FunctionDecl.Overload.Builder |
setResultType(Type.Builder builderForValue)
Required.
|
Decl.FunctionDecl.Overload.Builder |
setResultType(Type value)
Required.
|
Decl.FunctionDecl.Overload.Builder |
setTypeParams(int index,
String value)
The type param names associated with the function declaration.
|
Decl.FunctionDecl.Overload.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Decl.FunctionDecl.Overload build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Decl.FunctionDecl.Overload buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Decl.FunctionDecl.Overload.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder mergeFrom(Decl.FunctionDecl.Overload other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public Decl.FunctionDecl.Overload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>IOExceptionpublic 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;getOverloadId in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getOverloadIdBytes in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setOverloadId(String value)
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;public Decl.FunctionDecl.Overload.Builder clearOverloadId()
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;public Decl.FunctionDecl.Overload.Builder setOverloadIdBytes(com.google.protobuf.ByteString value)
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;public 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;getParamsList in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getParamsCount in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getParams in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setParams(int index, Type value)
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;public Decl.FunctionDecl.Overload.Builder setParams(int index, Type.Builder builderForValue)
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;public Decl.FunctionDecl.Overload.Builder addParams(Type value)
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;public Decl.FunctionDecl.Overload.Builder addParams(int index, Type value)
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;public Decl.FunctionDecl.Overload.Builder addParams(Type.Builder builderForValue)
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;public Decl.FunctionDecl.Overload.Builder addParams(int index, Type.Builder builderForValue)
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;public Decl.FunctionDecl.Overload.Builder addAllParams(Iterable<? extends Type> values)
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;public Decl.FunctionDecl.Overload.Builder clearParams()
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;public Decl.FunctionDecl.Overload.Builder removeParams(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;public Type.Builder getParamsBuilder(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;public 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;getParamsOrBuilder in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getParamsOrBuilderList in interface Decl.FunctionDecl.OverloadOrBuilderpublic Type.Builder addParamsBuilder()
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;public Type.Builder addParamsBuilder(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;public List<Type.Builder> getParamsBuilderList()
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;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;getTypeParamsList in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getTypeParamsCount in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getTypeParams in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getTypeParamsBytes in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setTypeParams(int index, String value)
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;public Decl.FunctionDecl.Overload.Builder addTypeParams(String value)
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;public Decl.FunctionDecl.Overload.Builder addAllTypeParams(Iterable<String> values)
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;public Decl.FunctionDecl.Overload.Builder clearTypeParams()
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;public Decl.FunctionDecl.Overload.Builder addTypeParamsBytes(com.google.protobuf.ByteString value)
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;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;hasResultType in interface Decl.FunctionDecl.OverloadOrBuilderpublic 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;getResultType in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setResultType(Type value)
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;public Decl.FunctionDecl.Overload.Builder setResultType(Type.Builder builderForValue)
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;public Decl.FunctionDecl.Overload.Builder mergeResultType(Type value)
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;public Decl.FunctionDecl.Overload.Builder clearResultType()
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;public Type.Builder getResultTypeBuilder()
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;public 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;getResultTypeOrBuilder in interface Decl.FunctionDecl.OverloadOrBuilderpublic boolean getIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)` of 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;getIsInstanceFunction in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setIsInstanceFunction(boolean value)
Whether the function is to be used in a method call-style `x.f(...)` of 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;public Decl.FunctionDecl.Overload.Builder clearIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)` of 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;public String getDoc()
Documentation string for the overload.
string doc = 6;getDoc in interface Decl.FunctionDecl.OverloadOrBuilderpublic com.google.protobuf.ByteString getDocBytes()
Documentation string for the overload.
string doc = 6;getDocBytes in interface Decl.FunctionDecl.OverloadOrBuilderpublic Decl.FunctionDecl.Overload.Builder setDoc(String value)
Documentation string for the overload.
string doc = 6;public Decl.FunctionDecl.Overload.Builder clearDoc()
Documentation string for the overload.
string doc = 6;public Decl.FunctionDecl.Overload.Builder setDocBytes(com.google.protobuf.ByteString value)
Documentation string for the overload.
string doc = 6;public final Decl.FunctionDecl.Overload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>public final Decl.FunctionDecl.Overload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.