Class PropertyDefinition.Builder (0.4.0)

public static final class PropertyDefinition.Builder extends GeneratedMessageV3.Builder<PropertyDefinition.Builder> implements PropertyDefinitionOrBuilder

Defines the metadata for a schema property.

Protobuf type google.cloud.contentwarehouse.v1.PropertyDefinition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PropertyDefinition build()
Returns
TypeDescription
PropertyDefinition

buildPartial()

public PropertyDefinition buildPartial()
Returns
TypeDescription
PropertyDefinition

clear()

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

clearDateTimeTypeOptions()

public PropertyDefinition.Builder clearDateTimeTypeOptions()

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Returns
TypeDescription
PropertyDefinition.Builder

clearDisplayName()

public PropertyDefinition.Builder clearDisplayName()

The display-name for the property, used for front-end.

string display_name = 12;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearEnumTypeOptions()

public PropertyDefinition.Builder clearEnumTypeOptions()

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Returns
TypeDescription
PropertyDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFloatTypeOptions()

public PropertyDefinition.Builder clearFloatTypeOptions()

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Returns
TypeDescription
PropertyDefinition.Builder

clearIntegerTypeOptions()

public PropertyDefinition.Builder clearIntegerTypeOptions()

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Returns
TypeDescription
PropertyDefinition.Builder

clearIsFilterable()

public PropertyDefinition.Builder clearIsFilterable()

Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.

bool is_filterable = 3;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearIsMetadata()

public PropertyDefinition.Builder clearIsMetadata()

Whether the property is user supplied metadata.

bool is_metadata = 5;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearIsRepeatable()

public PropertyDefinition.Builder clearIsRepeatable()

Whether the property can have multiple values.

bool is_repeatable = 2;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearIsRequired()

public PropertyDefinition.Builder clearIsRequired()

Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.

bool is_required = 14;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearIsSearchable()

public PropertyDefinition.Builder clearIsSearchable()

Indicates that the property should be included in a global search.

bool is_searchable = 4;

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearMapTypeOptions()

public PropertyDefinition.Builder clearMapTypeOptions()

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Returns
TypeDescription
PropertyDefinition.Builder

clearName()

public PropertyDefinition.Builder clearName()

Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .

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

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyTypeOptions()

public PropertyDefinition.Builder clearPropertyTypeOptions()

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Returns
TypeDescription
PropertyDefinition.Builder

clearTextTypeOptions()

public PropertyDefinition.Builder clearTextTypeOptions()

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Returns
TypeDescription
PropertyDefinition.Builder

clearTimestampTypeOptions()

public PropertyDefinition.Builder clearTimestampTypeOptions()

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Returns
TypeDescription
PropertyDefinition.Builder

clearValueTypeOptions()

public PropertyDefinition.Builder clearValueTypeOptions()
Returns
TypeDescription
PropertyDefinition.Builder

clone()

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

getDateTimeTypeOptions()

public DateTimeTypeOptions getDateTimeTypeOptions()

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Returns
TypeDescription
DateTimeTypeOptions

The dateTimeTypeOptions.

getDateTimeTypeOptionsBuilder()

public DateTimeTypeOptions.Builder getDateTimeTypeOptionsBuilder()

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Returns
TypeDescription
DateTimeTypeOptions.Builder

getDateTimeTypeOptionsOrBuilder()

public DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder()

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Returns
TypeDescription
DateTimeTypeOptionsOrBuilder

getDefaultInstanceForType()

public PropertyDefinition getDefaultInstanceForType()
Returns
TypeDescription
PropertyDefinition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display-name for the property, used for front-end.

string display_name = 12;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display-name for the property, used for front-end.

string display_name = 12;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEnumTypeOptions()

public EnumTypeOptions getEnumTypeOptions()

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Returns
TypeDescription
EnumTypeOptions

The enumTypeOptions.

getEnumTypeOptionsBuilder()

public EnumTypeOptions.Builder getEnumTypeOptionsBuilder()

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Returns
TypeDescription
EnumTypeOptions.Builder

getEnumTypeOptionsOrBuilder()

public EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder()

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Returns
TypeDescription
EnumTypeOptionsOrBuilder

getFloatTypeOptions()

public FloatTypeOptions getFloatTypeOptions()

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Returns
TypeDescription
FloatTypeOptions

The floatTypeOptions.

getFloatTypeOptionsBuilder()

public FloatTypeOptions.Builder getFloatTypeOptionsBuilder()

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Returns
TypeDescription
FloatTypeOptions.Builder

getFloatTypeOptionsOrBuilder()

public FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder()

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Returns
TypeDescription
FloatTypeOptionsOrBuilder

getIntegerTypeOptions()

public IntegerTypeOptions getIntegerTypeOptions()

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Returns
TypeDescription
IntegerTypeOptions

The integerTypeOptions.

getIntegerTypeOptionsBuilder()

public IntegerTypeOptions.Builder getIntegerTypeOptionsBuilder()

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Returns
TypeDescription
IntegerTypeOptions.Builder

getIntegerTypeOptionsOrBuilder()

public IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder()

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Returns
TypeDescription
IntegerTypeOptionsOrBuilder

getIsFilterable()

public boolean getIsFilterable()

Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.

bool is_filterable = 3;

Returns
TypeDescription
boolean

The isFilterable.

getIsMetadata()

public boolean getIsMetadata()

Whether the property is user supplied metadata.

bool is_metadata = 5;

Returns
TypeDescription
boolean

The isMetadata.

getIsRepeatable()

public boolean getIsRepeatable()

Whether the property can have multiple values.

bool is_repeatable = 2;

Returns
TypeDescription
boolean

The isRepeatable.

getIsRequired()

public boolean getIsRequired()

Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.

bool is_required = 14;

Returns
TypeDescription
boolean

The isRequired.

getIsSearchable()

public boolean getIsSearchable()

Indicates that the property should be included in a global search.

bool is_searchable = 4;

Returns
TypeDescription
boolean

The isSearchable.

getMapTypeOptions()

public MapTypeOptions getMapTypeOptions()

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Returns
TypeDescription
MapTypeOptions

The mapTypeOptions.

getMapTypeOptionsBuilder()

public MapTypeOptions.Builder getMapTypeOptionsBuilder()

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Returns
TypeDescription
MapTypeOptions.Builder

getMapTypeOptionsOrBuilder()

public MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder()

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Returns
TypeDescription
MapTypeOptionsOrBuilder

getName()

public String getName()

Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .

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

Returns
TypeDescription
ByteString

The bytes for name.

getPropertyTypeOptions()

public PropertyTypeOptions getPropertyTypeOptions()

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Returns
TypeDescription
PropertyTypeOptions

The propertyTypeOptions.

getPropertyTypeOptionsBuilder()

public PropertyTypeOptions.Builder getPropertyTypeOptionsBuilder()

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Returns
TypeDescription
PropertyTypeOptions.Builder

getPropertyTypeOptionsOrBuilder()

public PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder()

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Returns
TypeDescription
PropertyTypeOptionsOrBuilder

getTextTypeOptions()

public TextTypeOptions getTextTypeOptions()

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Returns
TypeDescription
TextTypeOptions

The textTypeOptions.

getTextTypeOptionsBuilder()

public TextTypeOptions.Builder getTextTypeOptionsBuilder()

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Returns
TypeDescription
TextTypeOptions.Builder

getTextTypeOptionsOrBuilder()

public TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder()

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Returns
TypeDescription
TextTypeOptionsOrBuilder

getTimestampTypeOptions()

public TimestampTypeOptions getTimestampTypeOptions()

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Returns
TypeDescription
TimestampTypeOptions

The timestampTypeOptions.

getTimestampTypeOptionsBuilder()

public TimestampTypeOptions.Builder getTimestampTypeOptionsBuilder()

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Returns
TypeDescription
TimestampTypeOptions.Builder

getTimestampTypeOptionsOrBuilder()

public TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder()

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Returns
TypeDescription
TimestampTypeOptionsOrBuilder

getValueTypeOptionsCase()

public PropertyDefinition.ValueTypeOptionsCase getValueTypeOptionsCase()
Returns
TypeDescription
PropertyDefinition.ValueTypeOptionsCase

hasDateTimeTypeOptions()

public boolean hasDateTimeTypeOptions()

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Returns
TypeDescription
boolean

Whether the dateTimeTypeOptions field is set.

hasEnumTypeOptions()

public boolean hasEnumTypeOptions()

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Returns
TypeDescription
boolean

Whether the enumTypeOptions field is set.

hasFloatTypeOptions()

public boolean hasFloatTypeOptions()

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Returns
TypeDescription
boolean

Whether the floatTypeOptions field is set.

hasIntegerTypeOptions()

public boolean hasIntegerTypeOptions()

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Returns
TypeDescription
boolean

Whether the integerTypeOptions field is set.

hasMapTypeOptions()

public boolean hasMapTypeOptions()

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Returns
TypeDescription
boolean

Whether the mapTypeOptions field is set.

hasPropertyTypeOptions()

public boolean hasPropertyTypeOptions()

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Returns
TypeDescription
boolean

Whether the propertyTypeOptions field is set.

hasTextTypeOptions()

public boolean hasTextTypeOptions()

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Returns
TypeDescription
boolean

Whether the textTypeOptions field is set.

hasTimestampTypeOptions()

public boolean hasTimestampTypeOptions()

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Returns
TypeDescription
boolean

Whether the timestampTypeOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDateTimeTypeOptions(DateTimeTypeOptions value)

public PropertyDefinition.Builder mergeDateTimeTypeOptions(DateTimeTypeOptions value)

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Parameter
NameDescription
valueDateTimeTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeEnumTypeOptions(EnumTypeOptions value)

public PropertyDefinition.Builder mergeEnumTypeOptions(EnumTypeOptions value)

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Parameter
NameDescription
valueEnumTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeFloatTypeOptions(FloatTypeOptions value)

public PropertyDefinition.Builder mergeFloatTypeOptions(FloatTypeOptions value)

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Parameter
NameDescription
valueFloatTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeFrom(PropertyDefinition other)

public PropertyDefinition.Builder mergeFrom(PropertyDefinition other)
Parameter
NameDescription
otherPropertyDefinition
Returns
TypeDescription
PropertyDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntegerTypeOptions(IntegerTypeOptions value)

public PropertyDefinition.Builder mergeIntegerTypeOptions(IntegerTypeOptions value)

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Parameter
NameDescription
valueIntegerTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeMapTypeOptions(MapTypeOptions value)

public PropertyDefinition.Builder mergeMapTypeOptions(MapTypeOptions value)

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Parameter
NameDescription
valueMapTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergePropertyTypeOptions(PropertyTypeOptions value)

public PropertyDefinition.Builder mergePropertyTypeOptions(PropertyTypeOptions value)

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Parameter
NameDescription
valuePropertyTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeTextTypeOptions(TextTypeOptions value)

public PropertyDefinition.Builder mergeTextTypeOptions(TextTypeOptions value)

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Parameter
NameDescription
valueTextTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeTimestampTypeOptions(TimestampTypeOptions value)

public PropertyDefinition.Builder mergeTimestampTypeOptions(TimestampTypeOptions value)

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Parameter
NameDescription
valueTimestampTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDateTimeTypeOptions(DateTimeTypeOptions value)

public PropertyDefinition.Builder setDateTimeTypeOptions(DateTimeTypeOptions value)

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Parameter
NameDescription
valueDateTimeTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setDateTimeTypeOptions(DateTimeTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setDateTimeTypeOptions(DateTimeTypeOptions.Builder builderForValue)

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

.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;

Parameter
NameDescription
builderForValueDateTimeTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setDisplayName(String value)

public PropertyDefinition.Builder setDisplayName(String value)

The display-name for the property, used for front-end.

string display_name = 12;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PropertyDefinition.Builder setDisplayNameBytes(ByteString value)

The display-name for the property, used for front-end.

string display_name = 12;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setEnumTypeOptions(EnumTypeOptions value)

public PropertyDefinition.Builder setEnumTypeOptions(EnumTypeOptions value)

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Parameter
NameDescription
valueEnumTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setEnumTypeOptions(EnumTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setEnumTypeOptions(EnumTypeOptions.Builder builderForValue)

Enum/categorical property.

.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;

Parameter
NameDescription
builderForValueEnumTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFloatTypeOptions(FloatTypeOptions value)

public PropertyDefinition.Builder setFloatTypeOptions(FloatTypeOptions value)

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Parameter
NameDescription
valueFloatTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setFloatTypeOptions(FloatTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setFloatTypeOptions(FloatTypeOptions.Builder builderForValue)

Float property.

.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;

Parameter
NameDescription
builderForValueFloatTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setIntegerTypeOptions(IntegerTypeOptions value)

public PropertyDefinition.Builder setIntegerTypeOptions(IntegerTypeOptions value)

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Parameter
NameDescription
valueIntegerTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setIntegerTypeOptions(IntegerTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setIntegerTypeOptions(IntegerTypeOptions.Builder builderForValue)

Integer property.

.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;

Parameter
NameDescription
builderForValueIntegerTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setIsFilterable(boolean value)

public PropertyDefinition.Builder setIsFilterable(boolean value)

Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.

bool is_filterable = 3;

Parameter
NameDescription
valueboolean

The isFilterable to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setIsMetadata(boolean value)

public PropertyDefinition.Builder setIsMetadata(boolean value)

Whether the property is user supplied metadata.

bool is_metadata = 5;

Parameter
NameDescription
valueboolean

The isMetadata to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setIsRepeatable(boolean value)

public PropertyDefinition.Builder setIsRepeatable(boolean value)

Whether the property can have multiple values.

bool is_repeatable = 2;

Parameter
NameDescription
valueboolean

The isRepeatable to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setIsRequired(boolean value)

public PropertyDefinition.Builder setIsRequired(boolean value)

Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.

bool is_required = 14;

Parameter
NameDescription
valueboolean

The isRequired to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setIsSearchable(boolean value)

public PropertyDefinition.Builder setIsSearchable(boolean value)

Indicates that the property should be included in a global search.

bool is_searchable = 4;

Parameter
NameDescription
valueboolean

The isSearchable to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setMapTypeOptions(MapTypeOptions value)

public PropertyDefinition.Builder setMapTypeOptions(MapTypeOptions value)

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Parameter
NameDescription
valueMapTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setMapTypeOptions(MapTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setMapTypeOptions(MapTypeOptions.Builder builderForValue)

Map property.

.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;

Parameter
NameDescription
builderForValueMapTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setName(String value)

public PropertyDefinition.Builder setName(String value)

Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PropertyDefinition.Builder setNameBytes(ByteString value)

Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PropertyDefinition.Builder

This builder for chaining.

setPropertyTypeOptions(PropertyTypeOptions value)

public PropertyDefinition.Builder setPropertyTypeOptions(PropertyTypeOptions value)

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Parameter
NameDescription
valuePropertyTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setPropertyTypeOptions(PropertyTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setPropertyTypeOptions(PropertyTypeOptions.Builder builderForValue)

Nested structured data property.

.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;

Parameter
NameDescription
builderForValuePropertyTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

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

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

setTextTypeOptions(TextTypeOptions value)

public PropertyDefinition.Builder setTextTypeOptions(TextTypeOptions value)

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Parameter
NameDescription
valueTextTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setTextTypeOptions(TextTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setTextTypeOptions(TextTypeOptions.Builder builderForValue)

Text/string property.

.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;

Parameter
NameDescription
builderForValueTextTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setTimestampTypeOptions(TimestampTypeOptions value)

public PropertyDefinition.Builder setTimestampTypeOptions(TimestampTypeOptions value)

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Parameter
NameDescription
valueTimestampTypeOptions
Returns
TypeDescription
PropertyDefinition.Builder

setTimestampTypeOptions(TimestampTypeOptions.Builder builderForValue)

public PropertyDefinition.Builder setTimestampTypeOptions(TimestampTypeOptions.Builder builderForValue)

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

.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;

Parameter
NameDescription
builderForValueTimestampTypeOptions.Builder
Returns
TypeDescription
PropertyDefinition.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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