Class Reference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Reference.Builder>
com.google.protobuf.GeneratedMessage.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, Cloneable
- Enclosing class:
Reference
public static final class Reference.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Reference.Builder>
implements ReferenceOrBuilder
Describes a resolved reference to a declaration.Protobuf type
google.api.expr.v1alpha1.Reference-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate com.google.protobuf.LazyStringArrayListprivate Constantprivate com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllOverloadId(Iterable<String> values) For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.addOverloadId(String value) For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.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.build()private voidbuildPartial0(Reference result) clear()The fully qualified name of the declaration.For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.For references to constants, this may contain the value of the constant if known at compile time.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The fully qualified name of the declaration.com.google.protobuf.ByteStringThe fully qualified name of the declaration.getOverloadId(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.intFor references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.com.google.protobuf.ProtocolStringListFor references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.getValue()For references to constants, this may contain the value of the constant if known at compile time.For references to constants, this may contain the value of the constant if known at compile time.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.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> For references to constants, this may contain the value of the constant if known at compile time.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeValue(Constant value) For references to constants, this may contain the value of the constant if known at compile time.The fully qualified name of the declaration.setNameBytes(com.google.protobuf.ByteString value) The fully qualified name of the declaration.setOverloadId(int index, String value) For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.For references to constants, this may contain the value of the constant if known at compile time.setValue(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.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 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
-
bitField0_
private int bitField0_ -
name_
-
overloadId_
private com.google.protobuf.LazyStringArrayList overloadId_ -
value_
-
valueBuilder_
private com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> valueBuilder_
-
-
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<Reference.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Reference.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Reference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Reference.Builder>
-
mergeFrom
public Reference.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<Reference.Builder>- Throws:
IOException
-
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
The fully qualified name of the declaration.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The fully qualified name of the declaration.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The fully qualified name of the declaration.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
ensureOverloadIdIsMutable
private void ensureOverloadIdIsMutable() -
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
internalGetValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Constant, Constant.Builder, ConstantOrBuilder> internalGetValueFieldBuilder()For references to constants, this may contain the value of the constant if known at compile time.
.google.api.expr.v1alpha1.Constant value = 4;
-