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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttributeValue.BuilderImplements
AttributeValueOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AttributeValue.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AttributeValue.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AttributeValue.Builder |
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 |
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 |
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 |