Class DoubleValue.Builder (0.3.0)

public static final class DoubleValue.Builder extends GeneratedMessage.Builder<DoubleValue.Builder> implements DoubleValueOrBuilder

DoubleValue represents a property that has a double value type.

Protobuf type google.cloud.apptopology.v1.DoubleValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllowedValues(Iterable<? extends Double> values)

public DoubleValue.Builder addAllAllowedValues(Iterable<? extends Double> values)

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Parameter
Name Description
values Iterable<? extends java.lang.Double>

The allowedValues to add.

Returns
Type Description
DoubleValue.Builder

This builder for chaining.

addAllowedValues(double value)

public DoubleValue.Builder addAllowedValues(double value)

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Parameter
Name Description
value double

The allowedValues to add.

Returns
Type Description
DoubleValue.Builder

This builder for chaining.

build()

public DoubleValue build()
Returns
Type Description
DoubleValue

buildPartial()

public DoubleValue buildPartial()
Returns
Type Description
DoubleValue

clear()

public DoubleValue.Builder clear()
Returns
Type Description
DoubleValue.Builder
Overrides

clearAllowedValues()

public DoubleValue.Builder clearAllowedValues()

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Returns
Type Description
DoubleValue.Builder

This builder for chaining.

clearRepeated()

public DoubleValue.Builder clearRepeated()

OPTIONAL Whether the property is repeated.

bool repeated = 1;

Returns
Type Description
DoubleValue.Builder

This builder for chaining.

getAllowedValues(int index)

public double getAllowedValues(int index)

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The allowedValues at the given index.

getAllowedValuesCount()

public int getAllowedValuesCount()

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Returns
Type Description
int

The count of allowedValues.

getAllowedValuesList()

public List<Double> getAllowedValuesList()

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Returns
Type Description
List<Double>

A list containing the allowedValues.

getDefaultInstanceForType()

public DoubleValue getDefaultInstanceForType()
Returns
Type Description
DoubleValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRepeated()

public boolean getRepeated()

OPTIONAL Whether the property is repeated.

bool repeated = 1;

Returns
Type Description
boolean

The repeated.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DoubleValue other)

public DoubleValue.Builder mergeFrom(DoubleValue other)
Parameter
Name Description
other DoubleValue
Returns
Type Description
DoubleValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DoubleValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DoubleValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DoubleValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DoubleValue.Builder
Overrides

setAllowedValues(int index, double value)

public DoubleValue.Builder setAllowedValues(int index, double value)

OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.

repeated double allowed_values = 2;

Parameters
Name Description
index int

The index to set the value at.

value double

The allowedValues to set.

Returns
Type Description
DoubleValue.Builder

This builder for chaining.

setRepeated(boolean value)

public DoubleValue.Builder setRepeated(boolean value)

OPTIONAL Whether the property is repeated.

bool repeated = 1;

Parameter
Name Description
value boolean

The repeated to set.

Returns
Type Description
DoubleValue.Builder

This builder for chaining.