Package com.google.api.expr.v1alpha1
Class Reference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Reference,Reference.Builder>
com.google.api.expr.v1alpha1.Reference.Builder
- All Implemented Interfaces:
ReferenceOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- Reference
public static final class Reference.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Reference,Reference.Builder>
implements ReferenceOrBuilder
Describes a resolved reference to a declaration.Protobuf type
google.api.expr.v1alpha1.Reference
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
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.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.getName()
The fully qualified name of the declaration.com.google.protobuf.ByteString
The 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.ByteString
getOverloadIdBytes
(int index) For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.int
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.For 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.boolean
hasValue()
For references to constants, this may contain the value of the constant if known at compile time.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.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceReferenceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceReferenceOrBuilder
- Returns:
- The bytes for name.
-
setName
The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
The fully qualified name of the declaration.
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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 [json_name = "overloadId"];
- Specified by:
getOverloadIdList
in 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 [json_name = "overloadId"];
- Specified by:
getOverloadIdCount
in 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 [json_name = "overloadId"];
- Specified by:
getOverloadId
in 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 [json_name = "overloadId"];
- Specified by:
getOverloadIdBytes
in 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 [json_name = "overloadId"];
- 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 [json_name = "overloadId"];
- 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 [json_name = "overloadId"];
- 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 [json_name = "overloadId"];
- 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 [json_name = "overloadId"];
- 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 [json_name = "value"];
- Specified by:
hasValue
in 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 [json_name = "value"];
- Specified by:
getValue
in 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 [json_name = "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 [json_name = "value"];
-
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 [json_name = "value"];
-
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 [json_name = "value"];
-