public static final class IntValue.Builder extends GeneratedMessage.Builder<IntValue.Builder> implements IntValueOrBuilderIntValue represents a property that has an integer value type.
Protobuf type google.cloud.apptopology.v1.IntValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > IntValue.BuilderImplements
IntValueOrBuilderStatic 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 |
longThe 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 |
|
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 |
intThe 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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public IntValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
IntValue.Builder |
|
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 |
intThe index to set the value at. |
value |
longThe 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 |
booleanThe repeated to set. |
| Returns | |
|---|---|
| Type | Description |
IntValue.Builder |
This builder for chaining. |