Package com.google.api.expr.v1alpha1
Class Decl.IdentDecl.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
-
- com.google.api.expr.v1alpha1.Decl.IdentDecl.Builder
-
- All Implemented Interfaces:
Decl.IdentDeclOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Decl.IdentDecl
public static final class Decl.IdentDecl.Builder extends com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder> implements Decl.IdentDeclOrBuilder
Identifier declaration which specifies its type and optional `Expr` value. An identifier without a value is a declaration that must be provided at evaluation time. An identifier with a value should resolve to a constant, but may be used in conjunction with other identifiers bound at evaluation time.
Protobuf typegoogle.api.expr.v1alpha1.Decl.IdentDecl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Decl.IdentDeclbuild()Decl.IdentDeclbuildPartial()Decl.IdentDecl.Builderclear()Decl.IdentDecl.BuilderclearDoc()Documentation string for the identifier.Decl.IdentDecl.BuilderclearType()Required.Decl.IdentDecl.BuilderclearValue()The constant value of the identifier.Decl.IdentDeclgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetDoc()Documentation string for the identifier.com.google.protobuf.ByteStringgetDocBytes()Documentation string for the identifier.TypegetType()Required.Type.BuildergetTypeBuilder()Required.TypeOrBuildergetTypeOrBuilder()Required.ConstantgetValue()The constant value of the identifier.Constant.BuildergetValueBuilder()The constant value of the identifier.ConstantOrBuildergetValueOrBuilder()The constant value of the identifier.booleanhasType()Required.booleanhasValue()The constant value of the identifier.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Decl.IdentDecl.BuildermergeFrom(Decl.IdentDecl other)Decl.IdentDecl.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Decl.IdentDecl.BuildermergeFrom(com.google.protobuf.Message other)Decl.IdentDecl.BuildermergeType(Type value)Required.Decl.IdentDecl.BuildermergeValue(Constant value)The constant value of the identifier.Decl.IdentDecl.BuildersetDoc(java.lang.String value)Documentation string for the identifier.Decl.IdentDecl.BuildersetDocBytes(com.google.protobuf.ByteString value)Documentation string for the identifier.Decl.IdentDecl.BuildersetType(Type value)Required.Decl.IdentDecl.BuildersetType(Type.Builder builderForValue)Required.Decl.IdentDecl.BuildersetValue(Constant value)The constant value of the identifier.Decl.IdentDecl.BuildersetValue(Constant.Builder builderForValue)The constant value of the identifier.-
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
-
-
-
-
Method Detail
-
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.IdentDecl.Builder>
-
clear
public Decl.IdentDecl.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.IdentDecl.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.IdentDecl.Builder>
-
getDefaultInstanceForType
public Decl.IdentDecl getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Decl.IdentDecl build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Decl.IdentDecl buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Decl.IdentDecl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.IdentDecl.Builder>
-
mergeFrom
public Decl.IdentDecl.Builder mergeFrom(Decl.IdentDecl other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
-
mergeFrom
public Decl.IdentDecl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.IdentDecl.Builder>- Throws:
java.io.IOException
-
hasType
public boolean hasType()
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;- Specified by:
hasTypein interfaceDecl.IdentDeclOrBuilder- Returns:
- Whether the type field is set.
-
getType
public Type getType()
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;- Specified by:
getTypein interfaceDecl.IdentDeclOrBuilder- Returns:
- The type.
-
setType
public Decl.IdentDecl.Builder setType(Type value)
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;
-
setType
public Decl.IdentDecl.Builder setType(Type.Builder builderForValue)
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;
-
mergeType
public Decl.IdentDecl.Builder mergeType(Type value)
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;
-
clearType
public Decl.IdentDecl.Builder clearType()
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;
-
getTypeBuilder
public Type.Builder getTypeBuilder()
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;
-
getTypeOrBuilder
public TypeOrBuilder getTypeOrBuilder()
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1;- Specified by:
getTypeOrBuilderin interfaceDecl.IdentDeclOrBuilder
-
hasValue
public boolean hasValue()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;- Specified by:
hasValuein interfaceDecl.IdentDeclOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public Constant getValue()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;- Specified by:
getValuein interfaceDecl.IdentDeclOrBuilder- Returns:
- The value.
-
setValue
public Decl.IdentDecl.Builder setValue(Constant value)
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;
-
setValue
public Decl.IdentDecl.Builder setValue(Constant.Builder builderForValue)
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;
-
mergeValue
public Decl.IdentDecl.Builder mergeValue(Constant value)
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;
-
clearValue
public Decl.IdentDecl.Builder clearValue()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;
-
getValueBuilder
public Constant.Builder getValueBuilder()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;
-
getValueOrBuilder
public ConstantOrBuilder getValueOrBuilder()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
.google.api.expr.v1alpha1.Constant value = 2;- Specified by:
getValueOrBuilderin interfaceDecl.IdentDeclOrBuilder
-
getDoc
public java.lang.String getDoc()
Documentation string for the identifier.
string doc = 3;- Specified by:
getDocin interfaceDecl.IdentDeclOrBuilder- Returns:
- The doc.
-
getDocBytes
public com.google.protobuf.ByteString getDocBytes()
Documentation string for the identifier.
string doc = 3;- Specified by:
getDocBytesin interfaceDecl.IdentDeclOrBuilder- Returns:
- The bytes for doc.
-
setDoc
public Decl.IdentDecl.Builder setDoc(java.lang.String value)
Documentation string for the identifier.
string doc = 3;- Parameters:
value- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
public Decl.IdentDecl.Builder clearDoc()
Documentation string for the identifier.
string doc = 3;- Returns:
- This builder for chaining.
-
setDocBytes
public Decl.IdentDecl.Builder setDocBytes(com.google.protobuf.ByteString value)
Documentation string for the identifier.
string doc = 3;- Parameters:
value- The bytes for doc to set.- Returns:
- This builder for chaining.
-
-