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 int
private Object
private int
private 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 void
buildPartial0
(Decl result) private void
buildPartialOneofs
(Decl result) clear()
Function declaration.Identifier declaration.The fully qualified name of the declaration.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Function 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.ByteString
The fully qualified name of the declaration.boolean
Function declaration.boolean
hasIdent()
Identifier declaration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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, 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
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
-
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.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.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
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Decl.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.Builder>
- Throws:
IOException
-
getDeclKindCase
- Specified by:
getDeclKindCase
in 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:
getName
in 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:
getNameBytes
in 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:
hasIdent
in interfaceDeclOrBuilder
- Returns:
- Whether the ident field is set.
-
getIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;
- Specified by:
getIdent
in 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:
getIdentOrBuilder
in 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:
hasFunction
in interfaceDeclOrBuilder
- Returns:
- Whether the function field is set.
-
getFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;
- Specified by:
getFunction
in 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:
getFunctionOrBuilder
in 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;
-