Class Property.Builder (3.13.0)

public static final class Property.Builder extends GeneratedMessageV3.Builder<Property.Builder> implements PropertyOrBuilder

A Property consists of a user-supplied name/value pair.

Protobuf type google.cloud.vision.v1p2beta1.Property

Implements

PropertyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Property build()
Returns
TypeDescription
Property

buildPartial()

public Property buildPartial()
Returns
TypeDescription
Property

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Property.Builder clearName()

Name of the property.

string name = 1;

Returns
TypeDescription
Property.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUint64Value()

public Property.Builder clearUint64Value()

Value of numeric properties.

uint64 uint64_value = 3;

Returns
TypeDescription
Property.Builder

This builder for chaining.

clearValue()

public Property.Builder clearValue()

Value of the property.

string value = 2;

Returns
TypeDescription
Property.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Property getDefaultInstanceForType()
Returns
TypeDescription
Property

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the property.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the property.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUint64Value()

public long getUint64Value()

Value of numeric properties.

uint64 uint64_value = 3;

Returns
TypeDescription
long

The uint64Value.

getValue()

public String getValue()

Value of the property.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value of the property.

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Property other)

public Property.Builder mergeFrom(Property other)
Parameter
NameDescription
otherProperty
Returns
TypeDescription
Property.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Property.Builder setName(String value)

Name of the property.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Property.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Property.Builder setNameBytes(ByteString value)

Name of the property.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Property.Builder

This builder for chaining.

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

public Property.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Property.Builder
Overrides

setUint64Value(long value)

public Property.Builder setUint64Value(long value)

Value of numeric properties.

uint64 uint64_value = 3;

Parameter
NameDescription
valuelong

The uint64Value to set.

Returns
TypeDescription
Property.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public Property.Builder setValue(String value)

Value of the property.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
Property.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Property.Builder setValueBytes(ByteString value)

Value of the property.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
Property.Builder

This builder for chaining.