Package com.google.api.expr.v1alpha1
Class Reference.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
- com.google.api.expr.v1alpha1.Reference.Builder
-
- All Implemented Interfaces:
ReferenceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Reference
public static final class Reference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder> implements ReferenceOrBuilder
Describes a resolved reference to a declaration.
Protobuf typegoogle.api.expr.v1alpha1.Reference
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Reference.BuilderaddAllOverloadId(java.lang.Iterable<java.lang.String> values)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.Reference.BuilderaddOverloadId(java.lang.String value)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.Reference.BuilderaddOverloadIdBytes(com.google.protobuf.ByteString value)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.Reference.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Referencebuild()ReferencebuildPartial()Reference.Builderclear()Reference.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Reference.BuilderclearName()The fully qualified name of the declaration.Reference.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Reference.BuilderclearOverloadId()For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.Reference.BuilderclearValue()For references to constants, this may contain the value of the constant if known at compile time.Reference.Builderclone()ReferencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()The fully qualified name of the declaration.com.google.protobuf.ByteStringgetNameBytes()The fully qualified name of the declaration.java.lang.StringgetOverloadId(int index)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.com.google.protobuf.ByteStringgetOverloadIdBytes(int index)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.intgetOverloadIdCount()For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.com.google.protobuf.ProtocolStringListgetOverloadIdList()For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.ConstantgetValue()For references to constants, this may contain the value of the constant if known at compile time.Constant.BuildergetValueBuilder()For references to constants, this may contain the value of the constant if known at compile time.ConstantOrBuildergetValueOrBuilder()For references to constants, this may contain the value of the constant if known at compile time.booleanhasValue()For references to constants, this may contain the value of the constant if known at compile time.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Reference.BuildermergeFrom(Reference other)Reference.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Reference.BuildermergeFrom(com.google.protobuf.Message other)Reference.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Reference.BuildermergeValue(Constant value)For references to constants, this may contain the value of the constant if known at compile time.Reference.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Reference.BuildersetName(java.lang.String value)The fully qualified name of the declaration.Reference.BuildersetNameBytes(com.google.protobuf.ByteString value)The fully qualified name of the declaration.Reference.BuildersetOverloadId(int index, java.lang.String value)For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.Reference.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Reference.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Reference.BuildersetValue(Constant value)For references to constants, this may contain the value of the constant if known at compile time.Reference.BuildersetValue(Constant.Builder builderForValue)For references to constants, this may contain the value of the constant if known at compile time.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
clear
public Reference.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.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.GeneratedMessageV3.Builder<Reference.Builder>
-
getDefaultInstanceForType
public Reference getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Reference build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Reference buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Reference.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
setField
public Reference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
clearField
public Reference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
clearOneof
public Reference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
setRepeatedField
public Reference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
addRepeatedField
public Reference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
mergeFrom
public Reference.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Reference.Builder>
-
mergeFrom
public Reference.Builder mergeFrom(Reference other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
mergeFrom
public Reference.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<Reference.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The fully qualified name of the declaration.
string name = 1;- Specified by:
getNamein interfaceReferenceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The fully qualified name of the declaration.
string name = 1;- Specified by:
getNameBytesin interfaceReferenceOrBuilder- Returns:
- The bytes for name.
-
setName
public Reference.Builder setName(java.lang.String value)
The fully qualified name of the declaration.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Reference.Builder clearName()
The fully qualified name of the declaration.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Reference.Builder setNameBytes(com.google.protobuf.ByteString value)
The fully qualified name of the declaration.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getOverloadIdList
public com.google.protobuf.ProtocolStringList getOverloadIdList()
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Specified by:
getOverloadIdListin interfaceReferenceOrBuilder- Returns:
- A list containing the overloadId.
-
getOverloadIdCount
public int getOverloadIdCount()
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Specified by:
getOverloadIdCountin interfaceReferenceOrBuilder- Returns:
- The count of overloadId.
-
getOverloadId
public java.lang.String getOverloadId(int index)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Specified by:
getOverloadIdin interfaceReferenceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The overloadId at the given index.
-
getOverloadIdBytes
public com.google.protobuf.ByteString getOverloadIdBytes(int index)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Specified by:
getOverloadIdBytesin interfaceReferenceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the overloadId at the given index.
-
setOverloadId
public Reference.Builder setOverloadId(int index, java.lang.String value)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Parameters:
index- The index to set the value at.value- The overloadId to set.- Returns:
- This builder for chaining.
-
addOverloadId
public Reference.Builder addOverloadId(java.lang.String value)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Parameters:
value- The overloadId to add.- Returns:
- This builder for chaining.
-
addAllOverloadId
public Reference.Builder addAllOverloadId(java.lang.Iterable<java.lang.String> values)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Parameters:
values- The overloadId to add.- Returns:
- This builder for chaining.
-
clearOverloadId
public Reference.Builder clearOverloadId()
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Returns:
- This builder for chaining.
-
addOverloadIdBytes
public Reference.Builder addOverloadIdBytes(com.google.protobuf.ByteString value)
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
repeated string overload_id = 3;- Parameters:
value- The bytes of the overloadId to add.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;- Specified by:
hasValuein interfaceReferenceOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public Constant getValue()
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;- Specified by:
getValuein interfaceReferenceOrBuilder- Returns:
- The value.
-
setValue
public Reference.Builder setValue(Constant value)
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-
setValue
public Reference.Builder setValue(Constant.Builder builderForValue)
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-
mergeValue
public Reference.Builder mergeValue(Constant value)
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-
clearValue
public Reference.Builder clearValue()
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-
getValueBuilder
public Constant.Builder getValueBuilder()
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-
getValueOrBuilder
public ConstantOrBuilder getValueOrBuilder()
For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;- Specified by:
getValueOrBuilderin interfaceReferenceOrBuilder
-
setUnknownFields
public final Reference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
mergeUnknownFields
public final Reference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Reference.Builder>
-
-