Class AttributeValue.Builder (0.14.1)

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

Represents an actual value of an operator attribute.

Protobuf type google.events.cloud.visionai.v1.AttributeValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

build()

public AttributeValue build()
Returns
TypeDescription
AttributeValue

buildPartial()

public AttributeValue buildPartial()
Returns
TypeDescription
AttributeValue

clear()

public AttributeValue.Builder clear()
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearB()

public AttributeValue.Builder clearB()

bool.

bool b = 3;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearF()

public AttributeValue.Builder clearF()

float.

float f = 2;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttributeValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearI()

public AttributeValue.Builder clearI()

int.

int64 i = 1;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearS()

public AttributeValue.Builder clearS()

string.

bytes s = 4;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearValue()

public AttributeValue.Builder clearValue()
Returns
TypeDescription
AttributeValue.Builder

clone()

public AttributeValue.Builder clone()
Returns
TypeDescription
AttributeValue.Builder
Overrides

getB()

public boolean getB()

bool.

bool b = 3;

Returns
TypeDescription
boolean

The b.

getDefaultInstanceForType()

public AttributeValue getDefaultInstanceForType()
Returns
TypeDescription
AttributeValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getF()

public float getF()

float.

float f = 2;

Returns
TypeDescription
float

The f.

getI()

public long getI()

int.

int64 i = 1;

Returns
TypeDescription
long

The i.

getS()

public ByteString getS()

string.

bytes s = 4;

Returns
TypeDescription
ByteString

The s.

getValueCase()

public AttributeValue.ValueCase getValueCase()
Returns
TypeDescription
AttributeValue.ValueCase

hasB()

public boolean hasB()

bool.

bool b = 3;

Returns
TypeDescription
boolean

Whether the b field is set.

hasF()

public boolean hasF()

float.

float f = 2;

Returns
TypeDescription
boolean

Whether the f field is set.

hasI()

public boolean hasI()

int.

int64 i = 1;

Returns
TypeDescription
boolean

Whether the i field is set.

hasS()

public boolean hasS()

string.

bytes s = 4;

Returns
TypeDescription
boolean

Whether the s field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttributeValue other)

public AttributeValue.Builder mergeFrom(AttributeValue other)
Parameter
NameDescription
otherAttributeValue
Returns
TypeDescription
AttributeValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttributeValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttributeValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeValue.Builder
Overrides

setB(boolean value)

public AttributeValue.Builder setB(boolean value)

bool.

bool b = 3;

Parameter
NameDescription
valueboolean

The b to set.

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

setF(float value)

public AttributeValue.Builder setF(float value)

float.

float f = 2;

Parameter
NameDescription
valuefloat

The f to set.

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

setI(long value)

public AttributeValue.Builder setI(long value)

int.

int64 i = 1;

Parameter
NameDescription
valuelong

The i to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

setS(ByteString value)

public AttributeValue.Builder setS(ByteString value)

string.

bytes s = 4;

Parameter
NameDescription
valueByteString

The s to set.

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeValue.Builder
Overrides