Package com.google.api.expr.v1alpha1
Class Decl.FunctionDecl.Overload.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>
com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Overload.Builder>
com.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.Builder
- All Implemented Interfaces:
Decl.FunctionDecl.OverloadOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
Decl.FunctionDecl.Overload
public static final class Decl.FunctionDecl.Overload.Builder
extends com.google.protobuf.GeneratedMessage.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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private boolean
private Object
private com.google.protobuf.RepeatedFieldBuilder
<Type, Type.Builder, TypeOrBuilder> private Type
private com.google.protobuf.SingleFieldBuilder
<Type, Type.Builder, TypeOrBuilder> private com.google.protobuf.LazyStringArrayList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllParams
(Iterable<? extends Type> values) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.addAllTypeParams
(Iterable<String> values) The type param names associated with the function declaration.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.addParams
(int index, Type.Builder builderForValue) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.addParams
(Type.Builder builderForValue) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.addParamsBuilder
(int index) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.addTypeParams
(String value) The type param names associated with the function declaration.addTypeParamsBytes
(com.google.protobuf.ByteString value) The type param names associated with the function declaration.build()
private void
private void
clear()
clearDoc()
Documentation string for the overload.Whether the function is to be used in a method call-style `x.f(...)` or a function call-style `f(x, ...)`.Required.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.Required.The type param names associated with the function declaration.private void
private void
static final com.google.protobuf.Descriptors.Descriptor
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.getParamsBuilder
(int index) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.int
List of function parameter [Type][google.api.expr.v1alpha1.Type] values.private com.google.protobuf.RepeatedFieldBuilder
<Type, Type.Builder, TypeOrBuilder> 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.Required.Required.private com.google.protobuf.SingleFieldBuilder
<Type, Type.Builder, TypeOrBuilder> Required.Required.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.boolean
Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeResultType
(Type value) Required.removeParams
(int index) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.Documentation string for the overload.setDocBytes
(com.google.protobuf.ByteString value) Documentation string for the overload.setIsInstanceFunction
(boolean value) Whether the function is to be used in a method call-style `x.f(...)` or a function call-style `f(x, ...)`.setOverloadId
(String value) Required.setOverloadIdBytes
(com.google.protobuf.ByteString value) Required.List of function parameter [Type][google.api.expr.v1alpha1.Type] values.setParams
(int index, Type.Builder builderForValue) List of function parameter [Type][google.api.expr.v1alpha1.Type] values.setResultType
(Type value) Required.setResultType
(Type.Builder builderForValue) Required.setTypeParams
(int index, String value) The type param names associated with the function declaration.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
overloadId_
-
params_
-
paramsBuilder_
-
typeParams_
private com.google.protobuf.LazyStringArrayList typeParams_ -
resultType_
-
resultTypeBuilder_
-
isInstanceFunction_
private boolean isInstanceFunction_ -
doc_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
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.Builder<Decl.FunctionDecl.Overload.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Overload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Overload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeFrom
public Decl.FunctionDecl.Overload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>
- Throws:
IOException
-
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.
-
setOverloadId
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;
- Parameters:
value
- The overloadId to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setOverloadIdBytes
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;
- Parameters:
value
- The bytes for overloadId to set.- Returns:
- This builder for chaining.
-
ensureParamsIsMutable
private void ensureParamsIsMutable() -
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
-
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
-
setParams
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;
-
setParams
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;
-
addParams
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;
-
addParams
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;
-
addParams
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;
-
addParams
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;
-
addAllParams
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;
-
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;
-
removeParams
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;
-
getParamsBuilder
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
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
-
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
-
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;
-
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;
-
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;
-
getParamsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Type,Type.Builder, getParamsFieldBuilder()TypeOrBuilder> -
ensureTypeParamsIsMutable
private void ensureTypeParamsIsMutable() -
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.
-
setTypeParams
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;
- Parameters:
index
- The index to set the value at.value
- The typeParams to set.- Returns:
- This builder for chaining.
-
addTypeParams
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;
- Parameters:
value
- The typeParams to add.- Returns:
- This builder for chaining.
-
addAllTypeParams
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;
- Parameters:
values
- The typeParams to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
addTypeParamsBytes
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;
- Parameters:
value
- The bytes of the typeParams to add.- Returns:
- This builder for chaining.
-
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.
-
setResultType
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;
-
setResultType
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;
-
mergeResultType
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;
-
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;
-
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;
-
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
-
getResultTypeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Type,Type.Builder, getResultTypeFieldBuilder()TypeOrBuilder> 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;
-
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.
-
setIsInstanceFunction
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;
- Parameters:
value
- The isInstanceFunction to set.- Returns:
- This builder for chaining.
-
clearIsInstanceFunction
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;
- Returns:
- This builder for chaining.
-
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.
-
setDoc
Documentation string for the overload.
string doc = 6;
- Parameters:
value
- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
Documentation string for the overload.
string doc = 6;
- Returns:
- This builder for chaining.
-
setDocBytes
Documentation string for the overload.
string doc = 6;
- Parameters:
value
- The bytes for doc to set.- Returns:
- This builder for chaining.
-