Class AttributeValue.Builder (0.12.0)

public static final class AttributeValue.Builder extends GeneratedMessageV3.Builder<AttributeValue.Builder> implements AttributeValueOrBuilder

Represents an actual value of an operator attribute.

Protobuf type google.cloud.visionai.v1.AttributeValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttributeValue.Builder
Overrides

build()

public AttributeValue build()
Returns
Type Description
AttributeValue

buildPartial()

public AttributeValue buildPartial()
Returns
Type Description
AttributeValue

clear()

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

clearB()

public AttributeValue.Builder clearB()

bool.

bool b = 3;

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

clearF()

public AttributeValue.Builder clearF()

float.

float f = 2;

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttributeValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttributeValue.Builder
Overrides

clearI()

public AttributeValue.Builder clearI()

int.

int64 i = 1;

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttributeValue.Builder
Overrides

clearS()

public AttributeValue.Builder clearS()

string.

bytes s = 4;

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

clearValue()

public AttributeValue.Builder clearValue()
Returns
Type Description
AttributeValue.Builder

clone()

public AttributeValue.Builder clone()
Returns
Type Description
AttributeValue.Builder
Overrides

getB()

public boolean getB()

bool.

bool b = 3;

Returns
Type Description
boolean

The b.

getDefaultInstanceForType()

public AttributeValue getDefaultInstanceForType()
Returns
Type Description
AttributeValue

getDescriptorForType()

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

getF()

public float getF()

float.

float f = 2;

Returns
Type Description
float

The f.

getI()

public long getI()

int.

int64 i = 1;

Returns
Type Description
long

The i.

getS()

public ByteString getS()

string.

bytes s = 4;

Returns
Type Description
ByteString

The s.

getValueCase()

public AttributeValue.ValueCase getValueCase()
Returns
Type Description
AttributeValue.ValueCase

hasB()

public boolean hasB()

bool.

bool b = 3;

Returns
Type Description
boolean

Whether the b field is set.

hasF()

public boolean hasF()

float.

float f = 2;

Returns
Type Description
boolean

Whether the f field is set.

hasI()

public boolean hasI()

int.

int64 i = 1;

Returns
Type Description
boolean

Whether the i field is set.

hasS()

public boolean hasS()

string.

bytes s = 4;

Returns
Type Description
boolean

Whether the s field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttributeValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttributeValue.Builder
Overrides

setB(boolean value)

public AttributeValue.Builder setB(boolean value)

bool.

bool b = 3;

Parameter
Name Description
value boolean

The b to set.

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

setF(float value)

public AttributeValue.Builder setF(float value)

float.

float f = 2;

Parameter
Name Description
value float

The f to set.

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttributeValue.Builder
Overrides

setI(long value)

public AttributeValue.Builder setI(long value)

int.

int64 i = 1;

Parameter
Name Description
value long

The i to set.

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttributeValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttributeValue.Builder
Overrides

setS(ByteString value)

public AttributeValue.Builder setS(ByteString value)

string.

bytes s = 4;

Parameter
Name Description
value ByteString

The s to set.

Returns
Type Description
AttributeValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttributeValue.Builder
Overrides