Package com.google.api.expr.v1alpha1
Class Decl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Decl.Builder>
com.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
com.google.api.expr.v1alpha1.Decl.Builder
- All Implemented Interfaces:
DeclOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
Decl
public static final class Decl.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
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-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate intprivate com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl, Decl.FunctionDecl.Builder, Decl.FunctionDeclOrBuilder> private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl, Decl.IdentDecl.Builder, Decl.IdentDeclOrBuilder> private Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Decl result) private voidbuildPartialOneofs(Decl result) clear()Function declaration.Identifier declaration.The fully qualified name of the declaration.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFunction declaration.Function declaration.private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl, Decl.FunctionDecl.Builder, Decl.FunctionDeclOrBuilder> Function declaration.Function declaration.getIdent()Identifier declaration.Identifier declaration.private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl, Decl.IdentDecl.Builder, Decl.IdentDeclOrBuilder> Identifier declaration.Identifier declaration.getName()The fully qualified name of the declaration.com.google.protobuf.ByteStringThe fully qualified name of the declaration.booleanFunction declaration.booleanhasIdent()Identifier declaration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFunction(Decl.FunctionDecl value) Function declaration.mergeIdent(Decl.IdentDecl value) Identifier declaration.setFunction(Decl.FunctionDecl value) Function declaration.setFunction(Decl.FunctionDecl.Builder builderForValue) Function declaration.setIdent(Decl.IdentDecl value) Identifier declaration.setIdent(Decl.IdentDecl.Builder builderForValue) Identifier declaration.The fully qualified name of the declaration.setNameBytes(com.google.protobuf.ByteString value) The fully qualified name of the 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
declKindCase_
private int declKindCase_ -
declKind_
-
bitField0_
private int bitField0_ -
name_
-
identBuilder_
private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder, identBuilder_Decl.IdentDeclOrBuilder> -
functionBuilder_
private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder, functionBuilder_Decl.FunctionDeclOrBuilder>
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
mergeFrom
public Decl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>- Throws:
IOException
-
getDeclKindCase
- Specified by:
getDeclKindCasein interfaceDeclOrBuilder
-
clearDeclKind
-
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;- Specified by:
getNamein interfaceDeclOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceDeclOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasIdent
public boolean hasIdent()Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;- Specified by:
hasIdentin interfaceDeclOrBuilder- Returns:
- Whether the ident field is set.
-
getIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;- Specified by:
getIdentin interfaceDeclOrBuilder- Returns:
- The ident.
-
setIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
setIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
mergeIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
clearIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
getIdentBuilder
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
getIdentOrBuilder
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;- Specified by:
getIdentOrBuilderin interfaceDeclOrBuilder
-
getIdentFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder, getIdentFieldBuilder()Decl.IdentDeclOrBuilder> Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; -
hasFunction
public boolean hasFunction()Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;- Specified by:
hasFunctionin interfaceDeclOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;- Specified by:
getFunctionin interfaceDeclOrBuilder- Returns:
- The function.
-
setFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; -
setFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; -
mergeFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; -
clearFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; -
getFunctionBuilder
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; -
getFunctionOrBuilder
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;- Specified by:
getFunctionOrBuilderin interfaceDeclOrBuilder
-
getFunctionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder, getFunctionFieldBuilder()Decl.FunctionDeclOrBuilder> Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;
-