Class PropertyTypeOptions.Builder (0.25.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition>
Returns
TypeDescription
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
NameDescription
valuePropertyDefinition
Returns
TypeDescription
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
NameDescription
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePropertyDefinition
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PropertyDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PropertyTypeOptions build()
Returns
TypeDescription
PropertyTypeOptions

buildPartial()

public PropertyTypeOptions buildPartial()
Returns
TypeDescription
PropertyTypeOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PropertyTypeOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PropertyTypeOptions.Builder

clone()

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

getDefaultInstanceForType()

public PropertyTypeOptions getDefaultInstanceForType()
Returns
TypeDescription
PropertyTypeOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PropertyTypeOptions other)

public PropertyTypeOptions.Builder mergeFrom(PropertyTypeOptions other)
Parameter
NameDescription
otherPropertyTypeOptions
Returns
TypeDescription
PropertyTypeOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PropertyTypeOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuePropertyDefinition
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
PropertyTypeOptions.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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