public static final class Decl.FunctionDecl.Overload extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Decl.FunctionDecl.Overload.Builder
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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DOC_FIELD_NUMBER |
static int |
IS_INSTANCE_FUNCTION_FIELD_NUMBER |
static int |
OVERLOAD_ID_FIELD_NUMBER |
static int |
PARAMS_FIELD_NUMBER |
static int |
RESULT_TYPE_FIELD_NUMBER |
static int |
TYPE_PARAMS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Decl.FunctionDecl.Overload |
getDefaultInstance() |
Decl.FunctionDecl.Overload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
com.google.protobuf.Parser<Decl.FunctionDecl.Overload> |
getParserForType() |
Type |
getResultType()
Required.
|
TypeOrBuilder |
getResultTypeOrBuilder()
Required.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasResultType()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Decl.FunctionDecl.Overload.Builder |
newBuilder() |
static Decl.FunctionDecl.Overload.Builder |
newBuilder(Decl.FunctionDecl.Overload prototype) |
Decl.FunctionDecl.Overload.Builder |
newBuilderForType() |
protected Decl.FunctionDecl.Overload.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static Decl.FunctionDecl.Overload |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Decl.FunctionDecl.Overload> |
parser() |
Decl.FunctionDecl.Overload.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int OVERLOAD_ID_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
public static final int TYPE_PARAMS_FIELD_NUMBER
public static final int RESULT_TYPE_FIELD_NUMBER
public static final int IS_INSTANCE_FUNCTION_FIELD_NUMBER
public static final int DOC_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Decl.FunctionDecl.Overload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl.FunctionDecl.Overload parseFrom(InputStream input) throws IOException
IOExceptionpublic static Decl.FunctionDecl.Overload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decl.FunctionDecl.Overload parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Decl.FunctionDecl.Overload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Decl.FunctionDecl.Overload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Decl.FunctionDecl.Overload.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Decl.FunctionDecl.Overload.Builder newBuilder()
public static Decl.FunctionDecl.Overload.Builder newBuilder(Decl.FunctionDecl.Overload prototype)
public Decl.FunctionDecl.Overload.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Decl.FunctionDecl.Overload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Decl.FunctionDecl.Overload getDefaultInstance()
public static com.google.protobuf.Parser<Decl.FunctionDecl.Overload> parser()
public com.google.protobuf.Parser<Decl.FunctionDecl.Overload> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Decl.FunctionDecl.Overload getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.