public final class Decl extends com.google.protobuf.GeneratedMessageV3 implements DeclOrBuilder
Represents a declaration of a named value or function. A declaration is part of the contract between the expression, the agent evaluating that expression, and the caller requesting evaluation.Protobuf type
google.api.expr.v1alpha1.Decl| Modifier and Type | Class and Description |
|---|---|
static class |
Decl.Builder
Represents a declaration of a named value or function.
|
static class |
Decl.DeclKindCase |
static class |
Decl.FunctionDecl
Function declaration specifies one or more overloads which indicate the
function's parameter types and return type, and may optionally specify a
function definition in terms of CEL expressions.
|
static interface |
Decl.FunctionDeclOrBuilder |
static class |
Decl.IdentDecl
Identifier declaration which specifies its type and optional `Expr` value.
|
static interface |
Decl.IdentDeclOrBuilder |
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 |
FUNCTION_FIELD_NUMBER |
static int |
IDENT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Decl.DeclKindCase |
getDeclKindCase() |
static Decl |
getDefaultInstance() |
Decl |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Decl.FunctionDecl |
getFunction()
Function declaration.
|
Decl.FunctionDeclOrBuilder |
getFunctionOrBuilder()
Function declaration.
|
Decl.IdentDecl |
getIdent()
Identifier declaration.
|
Decl.IdentDeclOrBuilder |
getIdentOrBuilder()
Identifier declaration.
|
String |
getName()
The fully qualified name of the declaration.
|
com.google.protobuf.ByteString |
getNameBytes()
The fully qualified name of the declaration.
|
com.google.protobuf.Parser<Decl> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFunction()
Function declaration.
|
int |
hashCode() |
boolean |
hasIdent()
Identifier declaration.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Decl.Builder |
newBuilder() |
static Decl.Builder |
newBuilder(Decl prototype) |
Decl.Builder |
newBuilderForType() |
protected Decl.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Decl |
parseDelimitedFrom(InputStream input) |
static Decl |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decl |
parseFrom(byte[] data) |
static Decl |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decl |
parseFrom(ByteBuffer data) |
static Decl |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decl |
parseFrom(com.google.protobuf.ByteString data) |
static Decl |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decl |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Decl |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decl |
parseFrom(InputStream input) |
static Decl |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Decl> |
parser() |
Decl.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 NAME_FIELD_NUMBER
public static final int IDENT_FIELD_NUMBER
public static final int FUNCTION_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 Decl.DeclKindCase getDeclKindCase()
getDeclKindCase in interface DeclOrBuilderpublic String getName()
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1;getName in interface DeclOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1;getNameBytes in interface DeclOrBuilderpublic boolean hasIdent()
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;hasIdent in interface DeclOrBuilderpublic Decl.IdentDecl getIdent()
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;getIdent in interface DeclOrBuilderpublic Decl.IdentDeclOrBuilder getIdentOrBuilder()
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;getIdentOrBuilder in interface DeclOrBuilderpublic boolean hasFunction()
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;hasFunction in interface DeclOrBuilderpublic Decl.FunctionDecl getFunction()
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;getFunction in interface DeclOrBuilderpublic Decl.FunctionDeclOrBuilder getFunctionOrBuilder()
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;getFunctionOrBuilder in interface DeclOrBuilderpublic 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decl parseFrom(InputStream input) throws IOException
IOExceptionpublic static Decl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decl parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Decl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Decl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Decl.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Decl.Builder newBuilder()
public static Decl.Builder newBuilder(Decl prototype)
public Decl.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Decl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Decl getDefaultInstance()
public static com.google.protobuf.Parser<Decl> parser()
public com.google.protobuf.Parser<Decl> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Decl getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.