- 0.47.0 (latest)
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PropertyDefinition.BuilderImplements
PropertyDefinitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PropertyDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PropertyDefinition.Builder |
build()
public PropertyDefinition build()
Type | Description |
PropertyDefinition |
buildPartial()
public PropertyDefinition buildPartial()
Type | Description |
PropertyDefinition |
clear()
public PropertyDefinition.Builder clear()
Type | Description |
PropertyDefinition.Builder |
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;
Type | Description |
PropertyDefinition.Builder |
clearDisplayName()
public PropertyDefinition.Builder clearDisplayName()
The display-name for the property, used for front-end.
string display_name = 12;
Type | Description |
PropertyDefinition.Builder | This builder for chaining. |
clearEnumTypeOptions()
public PropertyDefinition.Builder clearEnumTypeOptions()
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Type | Description |
PropertyDefinition.Builder |
clearField(Descriptors.FieldDescriptor field)
public PropertyDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PropertyDefinition.Builder |
clearFloatTypeOptions()
public PropertyDefinition.Builder clearFloatTypeOptions()
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Type | Description |
PropertyDefinition.Builder |
clearIntegerTypeOptions()
public PropertyDefinition.Builder clearIntegerTypeOptions()
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Type | Description |
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;
Type | Description |
PropertyDefinition.Builder | This builder for chaining. |
clearIsMetadata()
public PropertyDefinition.Builder clearIsMetadata()
Whether the property is user supplied metadata.
bool is_metadata = 5;
Type | Description |
PropertyDefinition.Builder | This builder for chaining. |
clearIsRepeatable()
public PropertyDefinition.Builder clearIsRepeatable()
Whether the property can have multiple values.
bool is_repeatable = 2;
Type | Description |
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;
Type | Description |
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;
Type | Description |
PropertyDefinition.Builder | This builder for chaining. |
clearMapTypeOptions()
public PropertyDefinition.Builder clearMapTypeOptions()
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Type | Description |
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];
Type | Description |
PropertyDefinition.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PropertyDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PropertyDefinition.Builder |
clearPropertyTypeOptions()
public PropertyDefinition.Builder clearPropertyTypeOptions()
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Type | Description |
PropertyDefinition.Builder |
clearTextTypeOptions()
public PropertyDefinition.Builder clearTextTypeOptions()
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Type | Description |
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;
Type | Description |
PropertyDefinition.Builder |
clearValueTypeOptions()
public PropertyDefinition.Builder clearValueTypeOptions()
Type | Description |
PropertyDefinition.Builder |
clone()
public PropertyDefinition.Builder clone()
Type | Description |
PropertyDefinition.Builder |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
DateTimeTypeOptionsOrBuilder |
getDefaultInstanceForType()
public PropertyDefinition getDefaultInstanceForType()
Type | Description |
PropertyDefinition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
The display-name for the property, used for front-end.
string display_name = 12;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The display-name for the property, used for front-end.
string display_name = 12;
Type | Description |
ByteString | The bytes for displayName. |
getEnumTypeOptions()
public EnumTypeOptions getEnumTypeOptions()
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Type | Description |
EnumTypeOptions | The enumTypeOptions. |
getEnumTypeOptionsBuilder()
public EnumTypeOptions.Builder getEnumTypeOptionsBuilder()
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Type | Description |
EnumTypeOptions.Builder |
getEnumTypeOptionsOrBuilder()
public EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder()
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Type | Description |
EnumTypeOptionsOrBuilder |
getFloatTypeOptions()
public FloatTypeOptions getFloatTypeOptions()
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Type | Description |
FloatTypeOptions | The floatTypeOptions. |
getFloatTypeOptionsBuilder()
public FloatTypeOptions.Builder getFloatTypeOptionsBuilder()
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Type | Description |
FloatTypeOptions.Builder |
getFloatTypeOptionsOrBuilder()
public FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder()
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Type | Description |
FloatTypeOptionsOrBuilder |
getIntegerTypeOptions()
public IntegerTypeOptions getIntegerTypeOptions()
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Type | Description |
IntegerTypeOptions | The integerTypeOptions. |
getIntegerTypeOptionsBuilder()
public IntegerTypeOptions.Builder getIntegerTypeOptionsBuilder()
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Type | Description |
IntegerTypeOptions.Builder |
getIntegerTypeOptionsOrBuilder()
public IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder()
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Type | Description |
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;
Type | Description |
boolean | The isFilterable. |
getIsMetadata()
public boolean getIsMetadata()
Whether the property is user supplied metadata.
bool is_metadata = 5;
Type | Description |
boolean | The isMetadata. |
getIsRepeatable()
public boolean getIsRepeatable()
Whether the property can have multiple values.
bool is_repeatable = 2;
Type | Description |
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;
Type | Description |
boolean | The isRequired. |
getIsSearchable()
public boolean getIsSearchable()
Indicates that the property should be included in a global search.
bool is_searchable = 4;
Type | Description |
boolean | The isSearchable. |
getMapTypeOptions()
public MapTypeOptions getMapTypeOptions()
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Type | Description |
MapTypeOptions | The mapTypeOptions. |
getMapTypeOptionsBuilder()
public MapTypeOptions.Builder getMapTypeOptionsBuilder()
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Type | Description |
MapTypeOptions.Builder |
getMapTypeOptionsOrBuilder()
public MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder()
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Type | Description |
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];
Type | Description |
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];
Type | Description |
ByteString | The bytes for name. |
getPropertyTypeOptions()
public PropertyTypeOptions getPropertyTypeOptions()
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Type | Description |
PropertyTypeOptions | The propertyTypeOptions. |
getPropertyTypeOptionsBuilder()
public PropertyTypeOptions.Builder getPropertyTypeOptionsBuilder()
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Type | Description |
PropertyTypeOptions.Builder |
getPropertyTypeOptionsOrBuilder()
public PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder()
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Type | Description |
PropertyTypeOptionsOrBuilder |
getTextTypeOptions()
public TextTypeOptions getTextTypeOptions()
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Type | Description |
TextTypeOptions | The textTypeOptions. |
getTextTypeOptionsBuilder()
public TextTypeOptions.Builder getTextTypeOptionsBuilder()
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Type | Description |
TextTypeOptions.Builder |
getTextTypeOptionsOrBuilder()
public TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder()
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Type | Description |
TextTypeOptionsOrBuilder |
getTimestampTypeOptions()
public TimestampTypeOptions getTimestampTypeOptions()
Timestamp property. It is not supported by CMEK compliant deployment.
.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
Type | Description |
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;
Type | Description |
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;
Type | Description |
TimestampTypeOptionsOrBuilder |
getValueTypeOptionsCase()
public PropertyDefinition.ValueTypeOptionsCase getValueTypeOptionsCase()
Type | Description |
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;
Type | Description |
boolean | Whether the dateTimeTypeOptions field is set. |
hasEnumTypeOptions()
public boolean hasEnumTypeOptions()
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Type | Description |
boolean | Whether the enumTypeOptions field is set. |
hasFloatTypeOptions()
public boolean hasFloatTypeOptions()
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Type | Description |
boolean | Whether the floatTypeOptions field is set. |
hasIntegerTypeOptions()
public boolean hasIntegerTypeOptions()
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Type | Description |
boolean | Whether the integerTypeOptions field is set. |
hasMapTypeOptions()
public boolean hasMapTypeOptions()
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Type | Description |
boolean | Whether the mapTypeOptions field is set. |
hasPropertyTypeOptions()
public boolean hasPropertyTypeOptions()
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Type | Description |
boolean | Whether the propertyTypeOptions field is set. |
hasTextTypeOptions()
public boolean hasTextTypeOptions()
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Type | Description |
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;
Type | Description |
boolean | Whether the timestampTypeOptions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | DateTimeTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeEnumTypeOptions(EnumTypeOptions value)
public PropertyDefinition.Builder mergeEnumTypeOptions(EnumTypeOptions value)
Enum/categorical property.
.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;
Name | Description |
value | EnumTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeFloatTypeOptions(FloatTypeOptions value)
public PropertyDefinition.Builder mergeFloatTypeOptions(FloatTypeOptions value)
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Name | Description |
value | FloatTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeFrom(PropertyDefinition other)
public PropertyDefinition.Builder mergeFrom(PropertyDefinition other)
Name | Description |
other | PropertyDefinition |
Type | Description |
PropertyDefinition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PropertyDefinition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyDefinition.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PropertyDefinition.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PropertyDefinition.Builder |
mergeIntegerTypeOptions(IntegerTypeOptions value)
public PropertyDefinition.Builder mergeIntegerTypeOptions(IntegerTypeOptions value)
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Name | Description |
value | IntegerTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeMapTypeOptions(MapTypeOptions value)
public PropertyDefinition.Builder mergeMapTypeOptions(MapTypeOptions value)
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Name | Description |
value | MapTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergePropertyTypeOptions(PropertyTypeOptions value)
public PropertyDefinition.Builder mergePropertyTypeOptions(PropertyTypeOptions value)
Nested structured data property.
.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
Name | Description |
value | PropertyTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeTextTypeOptions(TextTypeOptions value)
public PropertyDefinition.Builder mergeTextTypeOptions(TextTypeOptions value)
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Name | Description |
value | TextTypeOptions |
Type | Description |
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;
Name | Description |
value | TimestampTypeOptions |
Type | Description |
PropertyDefinition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PropertyDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PropertyDefinition.Builder |
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;
Name | Description |
value | DateTimeTypeOptions |
Type | Description |
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;
Name | Description |
builderForValue | DateTimeTypeOptions.Builder |
Type | Description |
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;
Name | Description |
value | String The displayName to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
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;
Name | Description |
value | EnumTypeOptions |
Type | Description |
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;
Name | Description |
builderForValue | EnumTypeOptions.Builder |
Type | Description |
PropertyDefinition.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PropertyDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PropertyDefinition.Builder |
setFloatTypeOptions(FloatTypeOptions value)
public PropertyDefinition.Builder setFloatTypeOptions(FloatTypeOptions value)
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Name | Description |
value | FloatTypeOptions |
Type | Description |
PropertyDefinition.Builder |
setFloatTypeOptions(FloatTypeOptions.Builder builderForValue)
public PropertyDefinition.Builder setFloatTypeOptions(FloatTypeOptions.Builder builderForValue)
Float property.
.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;
Name | Description |
builderForValue | FloatTypeOptions.Builder |
Type | Description |
PropertyDefinition.Builder |
setIntegerTypeOptions(IntegerTypeOptions value)
public PropertyDefinition.Builder setIntegerTypeOptions(IntegerTypeOptions value)
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Name | Description |
value | IntegerTypeOptions |
Type | Description |
PropertyDefinition.Builder |
setIntegerTypeOptions(IntegerTypeOptions.Builder builderForValue)
public PropertyDefinition.Builder setIntegerTypeOptions(IntegerTypeOptions.Builder builderForValue)
Integer property.
.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;
Name | Description |
builderForValue | IntegerTypeOptions.Builder |
Type | Description |
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;
Name | Description |
value | boolean The isFilterable to set. |
Type | Description |
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;
Name | Description |
value | boolean The isMetadata to set. |
Type | Description |
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;
Name | Description |
value | boolean The isRepeatable to set. |
Type | Description |
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;
Name | Description |
value | boolean The isRequired to set. |
Type | Description |
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;
Name | Description |
value | boolean The isSearchable to set. |
Type | Description |
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;
Name | Description |
value | MapTypeOptions |
Type | Description |
PropertyDefinition.Builder |
setMapTypeOptions(MapTypeOptions.Builder builderForValue)
public PropertyDefinition.Builder setMapTypeOptions(MapTypeOptions.Builder builderForValue)
Map property.
.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;
Name | Description |
builderForValue | MapTypeOptions.Builder |
Type | Description |
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];
Name | Description |
value | String The name to set. |
Type | Description |
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];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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;
Name | Description |
value | PropertyTypeOptions |
Type | Description |
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;
Name | Description |
builderForValue | PropertyTypeOptions.Builder |
Type | Description |
PropertyDefinition.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PropertyDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PropertyDefinition.Builder |
setTextTypeOptions(TextTypeOptions value)
public PropertyDefinition.Builder setTextTypeOptions(TextTypeOptions value)
Text/string property.
.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;
Name | Description |
value | TextTypeOptions |
Type | Description |
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;
Name | Description |
builderForValue | TextTypeOptions.Builder |
Type | Description |
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;
Name | Description |
value | TimestampTypeOptions |
Type | Description |
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;
Name | Description |
builderForValue | TimestampTypeOptions.Builder |
Type | Description |
PropertyDefinition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PropertyDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PropertyDefinition.Builder |