public static final class TypedValue.Builder extends GeneratedMessage.Builder<TypedValue.Builder> implements TypedValueOrBuilderTypedValue represents the value of the metric based on data type.
Protobuf type google.cloud.databasecenter.v1beta.TypedValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TypedValue.BuilderImplements
TypedValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TypedValue build()| Returns | |
|---|---|
| Type | Description |
TypedValue |
|
buildPartial()
public TypedValue buildPartial()| Returns | |
|---|---|
| Type | Description |
TypedValue |
|
clear()
public TypedValue.Builder clear()| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
|
clearDoubleValue()
public TypedValue.Builder clearDoubleValue()The value of the metric as double.
double double_value = 1;
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
This builder for chaining. |
clearInt64Value()
public TypedValue.Builder clearInt64Value()The value of the metric as int.
int64 int64_value = 2;
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
This builder for chaining. |
clearValue()
public TypedValue.Builder clearValue()| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
|
getDefaultInstanceForType()
public TypedValue getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TypedValue |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDoubleValue()
public double getDoubleValue()The value of the metric as double.
double double_value = 1;
| Returns | |
|---|---|
| Type | Description |
double |
The doubleValue. |
getInt64Value()
public long getInt64Value()The value of the metric as int.
int64 int64_value = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The int64Value. |
getValueCase()
public TypedValue.ValueCase getValueCase()| Returns | |
|---|---|
| Type | Description |
TypedValue.ValueCase |
|
hasDoubleValue()
public boolean hasDoubleValue()The value of the metric as double.
double double_value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the doubleValue field is set. |
hasInt64Value()
public boolean hasInt64Value()The value of the metric as int.
int64 int64_value = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the int64Value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TypedValue other)
public TypedValue.Builder mergeFrom(TypedValue other)| Parameter | |
|---|---|
| Name | Description |
other |
TypedValue |
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TypedValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TypedValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
|
setDoubleValue(double value)
public TypedValue.Builder setDoubleValue(double value)The value of the metric as double.
double double_value = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe doubleValue to set. |
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
This builder for chaining. |
setInt64Value(long value)
public TypedValue.Builder setInt64Value(long value)The value of the metric as int.
int64 int64_value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe int64Value to set. |
| Returns | |
|---|---|
| Type | Description |
TypedValue.Builder |
This builder for chaining. |