Class IntValue.Builder (0.3.0)

public static final class IntValue.Builder extends GeneratedMessage.Builder<IntValue.Builder> implements IntValueOrBuilder

IntValue represents a property that has an integer value type.

Protobuf type google.cloud.apptopology.v1.IntValue

Implements

IntValueOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAllowedValues(Iterable<? extends Long> values)

public IntValue.Builder addAllAllowedValues(Iterable<? extends Long> values)

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

repeated int64 allowed_values = 2;

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

The allowedValues to add.

Returns
Type Description
IntValue.Builder

This builder for chaining.

addAllowedValues(long value)

public IntValue.Builder addAllowedValues(long value)

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

repeated int64 allowed_values = 2;

Parameter
Name Description
value long

The allowedValues to add.

Returns
Type Description
IntValue.Builder

This builder for chaining.

build()

public IntValue build()
Returns
Type Description
IntValue

buildPartial()

public IntValue buildPartial()
Returns
Type Description
IntValue

clear()

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

clearAllowedValues()

public IntValue.Builder clearAllowedValues()

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

repeated int64 allowed_values = 2;

Returns
Type Description
IntValue.Builder

This builder for chaining.

clearRepeated()

public IntValue.Builder clearRepeated()

OPTIONAL Whether the property is repeated.

bool repeated = 1;

Returns
Type Description
IntValue.Builder

This builder for chaining.

getAllowedValues(int index)

public long getAllowedValues(int index)

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

repeated int64 allowed_values = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

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 int64 allowed_values = 2;

Returns
Type Description
int

The count of allowedValues.

getAllowedValuesList()

public List<Long> getAllowedValuesList()

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

repeated int64 allowed_values = 2;

Returns
Type Description
List<Long>

A list containing the allowedValues.

getDefaultInstanceForType()

public IntValue getDefaultInstanceForType()
Returns
Type Description
IntValue

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(IntValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAllowedValues(int index, long value)

public IntValue.Builder setAllowedValues(int index, long value)

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

repeated int64 allowed_values = 2;

Parameters
Name Description
index int

The index to set the value at.

value long

The allowedValues to set.

Returns
Type Description
IntValue.Builder

This builder for chaining.

setRepeated(boolean value)

public IntValue.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
IntValue.Builder

This builder for chaining.