Package com.google.api.expr.v1alpha1
Class Decl.FunctionDecl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Decl.FunctionDecl,Decl.FunctionDecl.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Decl.FunctionDecl,Decl.FunctionDecl.Builder>
com.google.api.expr.v1alpha1.Decl.FunctionDecl.Builder
- All Implemented Interfaces:
Decl.FunctionDeclOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
Decl.FunctionDecl
public static final class Decl.FunctionDecl.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Decl.FunctionDecl,Decl.FunctionDecl.Builder>
implements Decl.FunctionDeclOrBuilder
Function declaration specifies one or more overloads which indicate the function's parameter types and return type. Functions have no observable side-effects (there may be side-effects like logging which are not observable from CEL).Protobuf type
google.api.expr.v1alpha1.Decl.FunctionDecl-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllOverloads(Iterable<? extends Decl.FunctionDecl.Overload> values) Required.addOverloads(int index, Decl.FunctionDecl.Overload value) Required.addOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue) Required.Required.addOverloads(Decl.FunctionDecl.Overload.Builder builderForValue) Required.clearDoc()Documentation string for the function that indicates the general purpose of the function and its behavior.Required.getDoc()Documentation string for the function that indicates the general purpose of the function and its behavior.com.google.protobuf.ByteStringDocumentation string for the function that indicates the general purpose of the function and its behavior.getOverloads(int index) Required.intRequired.Required.removeOverloads(int index) Required.Documentation string for the function that indicates the general purpose of the function and its behavior.setDocBytes(com.google.protobuf.ByteString value) Documentation string for the function that indicates the general purpose of the function and its behavior.setOverloads(int index, Decl.FunctionDecl.Overload value) Required.setOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getOverloadsList
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];- Specified by:
getOverloadsListin interfaceDecl.FunctionDeclOrBuilder
-
getOverloadsCount
public int getOverloadsCount()Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];- Specified by:
getOverloadsCountin interfaceDecl.FunctionDeclOrBuilder
-
getOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];- Specified by:
getOverloadsin interfaceDecl.FunctionDeclOrBuilder
-
setOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
setOverloads
public Decl.FunctionDecl.Builder setOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue) Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
addOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
addOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
addOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
addOverloads
public Decl.FunctionDecl.Builder addOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue) Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
addAllOverloads
public Decl.FunctionDecl.Builder addAllOverloads(Iterable<? extends Decl.FunctionDecl.Overload> values) Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
clearOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
removeOverloads
Required. List of function overloads, must contain at least one overload.
repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; -
getDoc
Documentation string for the function that indicates the general purpose of the function and its behavior. Documentation strings for the function should be general purpose with specific examples provided in the overload doc string. Examples: The 'in' operator tests whether an item exists in a collection. The 'substring' function returns a substring of a target string.
string doc = 2 [json_name = "doc"];- Specified by:
getDocin interfaceDecl.FunctionDeclOrBuilder- Returns:
- The doc.
-
getDocBytes
public com.google.protobuf.ByteString getDocBytes()Documentation string for the function that indicates the general purpose of the function and its behavior. Documentation strings for the function should be general purpose with specific examples provided in the overload doc string. Examples: The 'in' operator tests whether an item exists in a collection. The 'substring' function returns a substring of a target string.
string doc = 2 [json_name = "doc"];- Specified by:
getDocBytesin interfaceDecl.FunctionDeclOrBuilder- Returns:
- The bytes for doc.
-
setDoc
Documentation string for the function that indicates the general purpose of the function and its behavior. Documentation strings for the function should be general purpose with specific examples provided in the overload doc string. Examples: The 'in' operator tests whether an item exists in a collection. The 'substring' function returns a substring of a target string.
string doc = 2 [json_name = "doc"];- Parameters:
value- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
Documentation string for the function that indicates the general purpose of the function and its behavior. Documentation strings for the function should be general purpose with specific examples provided in the overload doc string. Examples: The 'in' operator tests whether an item exists in a collection. The 'substring' function returns a substring of a target string.
string doc = 2 [json_name = "doc"];- Returns:
- This builder for chaining.
-
setDocBytes
Documentation string for the function that indicates the general purpose of the function and its behavior. Documentation strings for the function should be general purpose with specific examples provided in the overload doc string. Examples: The 'in' operator tests whether an item exists in a collection. The 'substring' function returns a substring of a target string.
string doc = 2 [json_name = "doc"];- Parameters:
value- The bytes for doc to set.- Returns:
- This builder for chaining.
-