Class PropertyTypeOptions.Builder (0.48.0)

public static final class PropertyTypeOptions.Builder extends GeneratedMessageV3.Builder<PropertyTypeOptions.Builder> implements PropertyTypeOptionsOrBuilder

Configurations for a nested structured data property.

Protobuf type google.cloud.contentwarehouse.v1.PropertyTypeOptions

Static Methods

getDescriptor()

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

Methods

addAllPropertyDefinitions(Iterable<? extends PropertyDefinition> values)

public PropertyTypeOptions.Builder addAllPropertyDefinitions(Iterable<? extends PropertyDefinition> values)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition>
Returns
Type Description
PropertyTypeOptions.Builder

addPropertyDefinitions(PropertyDefinition value)

public PropertyTypeOptions.Builder addPropertyDefinitions(PropertyDefinition value)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PropertyDefinition
Returns
Type Description
PropertyTypeOptions.Builder

addPropertyDefinitions(PropertyDefinition.Builder builderForValue)

public PropertyTypeOptions.Builder addPropertyDefinitions(PropertyDefinition.Builder builderForValue)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PropertyDefinition.Builder
Returns
Type Description
PropertyTypeOptions.Builder

addPropertyDefinitions(int index, PropertyDefinition value)

public PropertyTypeOptions.Builder addPropertyDefinitions(int index, PropertyDefinition value)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PropertyDefinition
Returns
Type Description
PropertyTypeOptions.Builder

addPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

public PropertyTypeOptions.Builder addPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PropertyDefinition.Builder
Returns
Type Description
PropertyTypeOptions.Builder

addPropertyDefinitionsBuilder()

public PropertyDefinition.Builder addPropertyDefinitionsBuilder()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PropertyDefinition.Builder

addPropertyDefinitionsBuilder(int index)

public PropertyDefinition.Builder addPropertyDefinitionsBuilder(int index)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PropertyDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PropertyTypeOptions build()
Returns
Type Description
PropertyTypeOptions

buildPartial()

public PropertyTypeOptions buildPartial()
Returns
Type Description
PropertyTypeOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyDefinitions()

public PropertyTypeOptions.Builder clearPropertyDefinitions()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PropertyTypeOptions.Builder

clone()

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

getDefaultInstanceForType()

public PropertyTypeOptions getDefaultInstanceForType()
Returns
Type Description
PropertyTypeOptions

getDescriptorForType()

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

getPropertyDefinitions(int index)

public PropertyDefinition getPropertyDefinitions(int index)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PropertyDefinition

getPropertyDefinitionsBuilder(int index)

public PropertyDefinition.Builder getPropertyDefinitionsBuilder(int index)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PropertyDefinition.Builder

getPropertyDefinitionsBuilderList()

public List<PropertyDefinition.Builder> getPropertyDefinitionsBuilderList()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getPropertyDefinitionsCount()

public int getPropertyDefinitionsCount()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPropertyDefinitionsList()

public List<PropertyDefinition> getPropertyDefinitionsList()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<PropertyDefinition>

getPropertyDefinitionsOrBuilder(int index)

public PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder(int index)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PropertyDefinitionOrBuilder

getPropertyDefinitionsOrBuilderList()

public List<? extends PropertyDefinitionOrBuilder> getPropertyDefinitionsOrBuilderList()

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PropertyTypeOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePropertyDefinitions(int index)

public PropertyTypeOptions.Builder removePropertyDefinitions(int index)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PropertyTypeOptions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPropertyDefinitions(int index, PropertyDefinition value)

public PropertyTypeOptions.Builder setPropertyDefinitions(int index, PropertyDefinition value)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PropertyDefinition
Returns
Type Description
PropertyTypeOptions.Builder

setPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

public PropertyTypeOptions.Builder setPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

Required. List of property definitions.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PropertyDefinition.Builder
Returns
Type Description
PropertyTypeOptions.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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