Class Property.Builder (0.27.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
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

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
TypeDescription
Property.Builder

clearEnumValues()

public Property.Builder clearEnumValues()

Enum property values.

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

Returns
TypeDescription
Property.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFloatValues()

public Property.Builder clearFloatValues()

Float property values.

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

Returns
TypeDescription
Property.Builder

clearIntegerValues()

public Property.Builder clearIntegerValues()

Integer property values.

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

Returns
TypeDescription
Property.Builder

clearMapProperty()

public Property.Builder clearMapProperty()

Map property values.

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

Returns
TypeDescription
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
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

clearPropertyValues()

public Property.Builder clearPropertyValues()

Nested structured data property values.

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

Returns
TypeDescription
Property.Builder

clearTextValues()

public Property.Builder clearTextValues()

String/text property values.

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

Returns
TypeDescription
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
TypeDescription
Property.Builder

clearValues()

public Property.Builder clearValues()
Returns
TypeDescription
Property.Builder

clone()

public Property.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DateTimeArrayOrBuilder

getDefaultInstanceForType()

public Property getDefaultInstanceForType()
Returns
TypeDescription
Property

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnumValues()

public EnumArray getEnumValues()

Enum property values.

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

Returns
TypeDescription
EnumArray

The enumValues.

getEnumValuesBuilder()

public EnumArray.Builder getEnumValuesBuilder()

Enum property values.

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

Returns
TypeDescription
EnumArray.Builder

getEnumValuesOrBuilder()

public EnumArrayOrBuilder getEnumValuesOrBuilder()

Enum property values.

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

Returns
TypeDescription
EnumArrayOrBuilder

getFloatValues()

public FloatArray getFloatValues()

Float property values.

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

Returns
TypeDescription
FloatArray

The floatValues.

getFloatValuesBuilder()

public FloatArray.Builder getFloatValuesBuilder()

Float property values.

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

Returns
TypeDescription
FloatArray.Builder

getFloatValuesOrBuilder()

public FloatArrayOrBuilder getFloatValuesOrBuilder()

Float property values.

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

Returns
TypeDescription
FloatArrayOrBuilder

getIntegerValues()

public IntegerArray getIntegerValues()

Integer property values.

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

Returns
TypeDescription
IntegerArray

The integerValues.

getIntegerValuesBuilder()

public IntegerArray.Builder getIntegerValuesBuilder()

Integer property values.

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

Returns
TypeDescription
IntegerArray.Builder

getIntegerValuesOrBuilder()

public IntegerArrayOrBuilder getIntegerValuesOrBuilder()

Integer property values.

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

Returns
TypeDescription
IntegerArrayOrBuilder

getMapProperty()

public MapProperty getMapProperty()

Map property values.

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

Returns
TypeDescription
MapProperty

The mapProperty.

getMapPropertyBuilder()

public MapProperty.Builder getMapPropertyBuilder()

Map property values.

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

Returns
TypeDescription
MapProperty.Builder

getMapPropertyOrBuilder()

public MapPropertyOrBuilder getMapPropertyOrBuilder()

Map property values.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getPropertyValues()

public PropertyArray getPropertyValues()

Nested structured data property values.

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

Returns
TypeDescription
PropertyArray

The propertyValues.

getPropertyValuesBuilder()

public PropertyArray.Builder getPropertyValuesBuilder()

Nested structured data property values.

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

Returns
TypeDescription
PropertyArray.Builder

getPropertyValuesOrBuilder()

public PropertyArrayOrBuilder getPropertyValuesOrBuilder()

Nested structured data property values.

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

Returns
TypeDescription
PropertyArrayOrBuilder

getTextValues()

public TextArray getTextValues()

String/text property values.

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

Returns
TypeDescription
TextArray

The textValues.

getTextValuesBuilder()

public TextArray.Builder getTextValuesBuilder()

String/text property values.

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

Returns
TypeDescription
TextArray.Builder

getTextValuesOrBuilder()

public TextArrayOrBuilder getTextValuesOrBuilder()

String/text property values.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampArrayOrBuilder

getValuesCase()

public Property.ValuesCase getValuesCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the dateTimeValues field is set.

hasEnumValues()

public boolean hasEnumValues()

Enum property values.

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

Returns
TypeDescription
boolean

Whether the enumValues field is set.

hasFloatValues()

public boolean hasFloatValues()

Float property values.

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

Returns
TypeDescription
boolean

Whether the floatValues field is set.

hasIntegerValues()

public boolean hasIntegerValues()

Integer property values.

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

Returns
TypeDescription
boolean

Whether the integerValues field is set.

hasMapProperty()

public boolean hasMapProperty()

Map property values.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the propertyValues field is set.

hasTextValues()

public boolean hasTextValues()

String/text property values.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the timestampValues field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDateTimeArray
Returns
TypeDescription
Property.Builder

mergeEnumValues(EnumArray value)

public Property.Builder mergeEnumValues(EnumArray value)

Enum property values.

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

Parameter
NameDescription
valueEnumArray
Returns
TypeDescription
Property.Builder

mergeFloatValues(FloatArray value)

public Property.Builder mergeFloatValues(FloatArray value)

Float property values.

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

Parameter
NameDescription
valueFloatArray
Returns
TypeDescription
Property.Builder

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

mergeIntegerValues(IntegerArray value)

public Property.Builder mergeIntegerValues(IntegerArray value)

Integer property values.

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

Parameter
NameDescription
valueIntegerArray
Returns
TypeDescription
Property.Builder

mergeMapProperty(MapProperty value)

public Property.Builder mergeMapProperty(MapProperty value)

Map property values.

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

Parameter
NameDescription
valueMapProperty
Returns
TypeDescription
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
NameDescription
valuePropertyArray
Returns
TypeDescription
Property.Builder

mergeTextValues(TextArray value)

public Property.Builder mergeTextValues(TextArray value)

String/text property values.

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

Parameter
NameDescription
valueTextArray
Returns
TypeDescription
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
NameDescription
valueTimestampArray
Returns
TypeDescription
Property.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Property.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDateTimeArray
Returns
TypeDescription
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
NameDescription
builderForValueDateTimeArray.Builder
Returns
TypeDescription
Property.Builder

setEnumValues(EnumArray value)

public Property.Builder setEnumValues(EnumArray value)

Enum property values.

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

Parameter
NameDescription
valueEnumArray
Returns
TypeDescription
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
NameDescription
builderForValueEnumArray.Builder
Returns
TypeDescription
Property.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFloatValues(FloatArray value)

public Property.Builder setFloatValues(FloatArray value)

Float property values.

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

Parameter
NameDescription
valueFloatArray
Returns
TypeDescription
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
NameDescription
builderForValueFloatArray.Builder
Returns
TypeDescription
Property.Builder

setIntegerValues(IntegerArray value)

public Property.Builder setIntegerValues(IntegerArray value)

Integer property values.

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

Parameter
NameDescription
valueIntegerArray
Returns
TypeDescription
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
NameDescription
builderForValueIntegerArray.Builder
Returns
TypeDescription
Property.Builder

setMapProperty(MapProperty value)

public Property.Builder setMapProperty(MapProperty value)

Map property values.

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

Parameter
NameDescription
valueMapProperty
Returns
TypeDescription
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
NameDescription
builderForValueMapProperty.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuePropertyArray
Returns
TypeDescription
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
NameDescription
builderForValuePropertyArray.Builder
Returns
TypeDescription
Property.Builder

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

setTextValues(TextArray value)

public Property.Builder setTextValues(TextArray value)

String/text property values.

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

Parameter
NameDescription
valueTextArray
Returns
TypeDescription
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
NameDescription
builderForValueTextArray.Builder
Returns
TypeDescription
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
NameDescription
valueTimestampArray
Returns
TypeDescription
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
NameDescription
builderForValueTimestampArray.Builder
Returns
TypeDescription
Property.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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