Class Property.Builder (0.50.0)

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

Property of a document.

Protobuf type google.cloud.contentwarehouse.v1.Property

Implements

PropertyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Property build()
Returns
Type Description
Property

buildPartial()

public Property buildPartial()
Returns
Type Description
Property

clear()

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

clearDateTimeValues()

public Property.Builder clearDateTimeValues()

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Returns
Type Description
Property.Builder

clearEnumValues()

public Property.Builder clearEnumValues()

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Returns
Type Description
Property.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFloatValues()

public Property.Builder clearFloatValues()

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Returns
Type Description
Property.Builder

clearIntegerValues()

public Property.Builder clearIntegerValues()

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Returns
Type Description
Property.Builder

clearMapProperty()

public Property.Builder clearMapProperty()

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Returns
Type Description
Property.Builder

clearName()

public Property.Builder clearName()

Required. Must match the name of a PropertyDefinition in the DocumentSchema.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Property.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyValues()

public Property.Builder clearPropertyValues()

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Returns
Type Description
Property.Builder

clearTextValues()

public Property.Builder clearTextValues()

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Returns
Type Description
Property.Builder

clearTimestampValues()

public Property.Builder clearTimestampValues()

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Returns
Type Description
Property.Builder

clearValues()

public Property.Builder clearValues()
Returns
Type Description
Property.Builder

clone()

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

getDateTimeValues()

public DateTimeArray getDateTimeValues()

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Returns
Type Description
DateTimeArray

The dateTimeValues.

getDateTimeValuesBuilder()

public DateTimeArray.Builder getDateTimeValuesBuilder()

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Returns
Type Description
DateTimeArray.Builder

getDateTimeValuesOrBuilder()

public DateTimeArrayOrBuilder getDateTimeValuesOrBuilder()

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Returns
Type Description
DateTimeArrayOrBuilder

getDefaultInstanceForType()

public Property getDefaultInstanceForType()
Returns
Type Description
Property

getDescriptorForType()

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

getEnumValues()

public EnumArray getEnumValues()

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Returns
Type Description
EnumArray

The enumValues.

getEnumValuesBuilder()

public EnumArray.Builder getEnumValuesBuilder()

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Returns
Type Description
EnumArray.Builder

getEnumValuesOrBuilder()

public EnumArrayOrBuilder getEnumValuesOrBuilder()

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Returns
Type Description
EnumArrayOrBuilder

getFloatValues()

public FloatArray getFloatValues()

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Returns
Type Description
FloatArray

The floatValues.

getFloatValuesBuilder()

public FloatArray.Builder getFloatValuesBuilder()

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Returns
Type Description
FloatArray.Builder

getFloatValuesOrBuilder()

public FloatArrayOrBuilder getFloatValuesOrBuilder()

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Returns
Type Description
FloatArrayOrBuilder

getIntegerValues()

public IntegerArray getIntegerValues()

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Returns
Type Description
IntegerArray

The integerValues.

getIntegerValuesBuilder()

public IntegerArray.Builder getIntegerValuesBuilder()

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Returns
Type Description
IntegerArray.Builder

getIntegerValuesOrBuilder()

public IntegerArrayOrBuilder getIntegerValuesOrBuilder()

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Returns
Type Description
IntegerArrayOrBuilder

getMapProperty()

public MapProperty getMapProperty()

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Returns
Type Description
MapProperty

The mapProperty.

getMapPropertyBuilder()

public MapProperty.Builder getMapPropertyBuilder()

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Returns
Type Description
MapProperty.Builder

getMapPropertyOrBuilder()

public MapPropertyOrBuilder getMapPropertyOrBuilder()

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Returns
Type Description
MapPropertyOrBuilder

getName()

public String getName()

Required. Must match the name of a PropertyDefinition in the DocumentSchema.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Must match the name of a PropertyDefinition in the DocumentSchema.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getPropertyValues()

public PropertyArray getPropertyValues()

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Returns
Type Description
PropertyArray

The propertyValues.

getPropertyValuesBuilder()

public PropertyArray.Builder getPropertyValuesBuilder()

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Returns
Type Description
PropertyArray.Builder

getPropertyValuesOrBuilder()

public PropertyArrayOrBuilder getPropertyValuesOrBuilder()

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Returns
Type Description
PropertyArrayOrBuilder

getTextValues()

public TextArray getTextValues()

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Returns
Type Description
TextArray

The textValues.

getTextValuesBuilder()

public TextArray.Builder getTextValuesBuilder()

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Returns
Type Description
TextArray.Builder

getTextValuesOrBuilder()

public TextArrayOrBuilder getTextValuesOrBuilder()

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Returns
Type Description
TextArrayOrBuilder

getTimestampValues()

public TimestampArray getTimestampValues()

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Returns
Type Description
TimestampArray

The timestampValues.

getTimestampValuesBuilder()

public TimestampArray.Builder getTimestampValuesBuilder()

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Returns
Type Description
TimestampArray.Builder

getTimestampValuesOrBuilder()

public TimestampArrayOrBuilder getTimestampValuesOrBuilder()

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Returns
Type Description
TimestampArrayOrBuilder

getValuesCase()

public Property.ValuesCase getValuesCase()
Returns
Type Description
Property.ValuesCase

hasDateTimeValues()

public boolean hasDateTimeValues()

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Returns
Type Description
boolean

Whether the dateTimeValues field is set.

hasEnumValues()

public boolean hasEnumValues()

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Returns
Type Description
boolean

Whether the enumValues field is set.

hasFloatValues()

public boolean hasFloatValues()

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Returns
Type Description
boolean

Whether the floatValues field is set.

hasIntegerValues()

public boolean hasIntegerValues()

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Returns
Type Description
boolean

Whether the integerValues field is set.

hasMapProperty()

public boolean hasMapProperty()

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Returns
Type Description
boolean

Whether the mapProperty field is set.

hasPropertyValues()

public boolean hasPropertyValues()

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Returns
Type Description
boolean

Whether the propertyValues field is set.

hasTextValues()

public boolean hasTextValues()

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Returns
Type Description
boolean

Whether the textValues field is set.

hasTimestampValues()

public boolean hasTimestampValues()

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Returns
Type Description
boolean

Whether the timestampValues field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDateTimeValues(DateTimeArray value)

public Property.Builder mergeDateTimeValues(DateTimeArray value)

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Parameter
Name Description
value DateTimeArray
Returns
Type Description
Property.Builder

mergeEnumValues(EnumArray value)

public Property.Builder mergeEnumValues(EnumArray value)

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Parameter
Name Description
value EnumArray
Returns
Type Description
Property.Builder

mergeFloatValues(FloatArray value)

public Property.Builder mergeFloatValues(FloatArray value)

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Parameter
Name Description
value FloatArray
Returns
Type Description
Property.Builder

mergeFrom(Property other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntegerValues(IntegerArray value)

public Property.Builder mergeIntegerValues(IntegerArray value)

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Parameter
Name Description
value IntegerArray
Returns
Type Description
Property.Builder

mergeMapProperty(MapProperty value)

public Property.Builder mergeMapProperty(MapProperty value)

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Parameter
Name Description
value MapProperty
Returns
Type Description
Property.Builder

mergePropertyValues(PropertyArray value)

public Property.Builder mergePropertyValues(PropertyArray value)

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Parameter
Name Description
value PropertyArray
Returns
Type Description
Property.Builder

mergeTextValues(TextArray value)

public Property.Builder mergeTextValues(TextArray value)

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Parameter
Name Description
value TextArray
Returns
Type Description
Property.Builder

mergeTimestampValues(TimestampArray value)

public Property.Builder mergeTimestampValues(TimestampArray value)

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Parameter
Name Description
value TimestampArray
Returns
Type Description
Property.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDateTimeValues(DateTimeArray value)

public Property.Builder setDateTimeValues(DateTimeArray value)

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Parameter
Name Description
value DateTimeArray
Returns
Type Description
Property.Builder

setDateTimeValues(DateTimeArray.Builder builderForValue)

public Property.Builder setDateTimeValues(DateTimeArray.Builder builderForValue)

Date time property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;

Parameter
Name Description
builderForValue DateTimeArray.Builder
Returns
Type Description
Property.Builder

setEnumValues(EnumArray value)

public Property.Builder setEnumValues(EnumArray value)

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Parameter
Name Description
value EnumArray
Returns
Type Description
Property.Builder

setEnumValues(EnumArray.Builder builderForValue)

public Property.Builder setEnumValues(EnumArray.Builder builderForValue)

Enum property values.

.google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;

Parameter
Name Description
builderForValue EnumArray.Builder
Returns
Type Description
Property.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFloatValues(FloatArray value)

public Property.Builder setFloatValues(FloatArray value)

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Parameter
Name Description
value FloatArray
Returns
Type Description
Property.Builder

setFloatValues(FloatArray.Builder builderForValue)

public Property.Builder setFloatValues(FloatArray.Builder builderForValue)

Float property values.

.google.cloud.contentwarehouse.v1.FloatArray float_values = 3;

Parameter
Name Description
builderForValue FloatArray.Builder
Returns
Type Description
Property.Builder

setIntegerValues(IntegerArray value)

public Property.Builder setIntegerValues(IntegerArray value)

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Parameter
Name Description
value IntegerArray
Returns
Type Description
Property.Builder

setIntegerValues(IntegerArray.Builder builderForValue)

public Property.Builder setIntegerValues(IntegerArray.Builder builderForValue)

Integer property values.

.google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;

Parameter
Name Description
builderForValue IntegerArray.Builder
Returns
Type Description
Property.Builder

setMapProperty(MapProperty value)

public Property.Builder setMapProperty(MapProperty value)

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Parameter
Name Description
value MapProperty
Returns
Type Description
Property.Builder

setMapProperty(MapProperty.Builder builderForValue)

public Property.Builder setMapProperty(MapProperty.Builder builderForValue)

Map property values.

.google.cloud.contentwarehouse.v1.MapProperty map_property = 8;

Parameter
Name Description
builderForValue MapProperty.Builder
Returns
Type Description
Property.Builder

setName(String value)

public Property.Builder setName(String value)

Required. Must match the name of a PropertyDefinition in the DocumentSchema.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Property.Builder setNameBytes(ByteString value)

Required. Must match the name of a PropertyDefinition in the DocumentSchema.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setPropertyValues(PropertyArray value)

public Property.Builder setPropertyValues(PropertyArray value)

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Parameter
Name Description
value PropertyArray
Returns
Type Description
Property.Builder

setPropertyValues(PropertyArray.Builder builderForValue)

public Property.Builder setPropertyValues(PropertyArray.Builder builderForValue)

Nested structured data property values.

.google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;

Parameter
Name Description
builderForValue PropertyArray.Builder
Returns
Type Description
Property.Builder

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

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

setTextValues(TextArray value)

public Property.Builder setTextValues(TextArray value)

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Parameter
Name Description
value TextArray
Returns
Type Description
Property.Builder

setTextValues(TextArray.Builder builderForValue)

public Property.Builder setTextValues(TextArray.Builder builderForValue)

String/text property values.

.google.cloud.contentwarehouse.v1.TextArray text_values = 4;

Parameter
Name Description
builderForValue TextArray.Builder
Returns
Type Description
Property.Builder

setTimestampValues(TimestampArray value)

public Property.Builder setTimestampValues(TimestampArray value)

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Parameter
Name Description
value TimestampArray
Returns
Type Description
Property.Builder

setTimestampValues(TimestampArray.Builder builderForValue)

public Property.Builder setTimestampValues(TimestampArray.Builder builderForValue)

Timestamp property values. It is not supported by CMEK compliant deployment.

.google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;

Parameter
Name Description
builderForValue TimestampArray.Builder
Returns
Type Description
Property.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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