Class DocumentSchema.Builder (0.1.0)

public static final class DocumentSchema.Builder extends GeneratedMessageV3.Builder<DocumentSchema.Builder> implements DocumentSchemaOrBuilder

A document schema used to define document structure.

Protobuf type google.cloud.contentwarehouse.v1.DocumentSchema

Static Methods

getDescriptor()

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

Methods

addAllPropertyDefinitions(Iterable<? extends PropertyDefinition> values)

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

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition>
Returns
TypeDescription
DocumentSchema.Builder

addPropertyDefinitions(PropertyDefinition value)

public DocumentSchema.Builder addPropertyDefinitions(PropertyDefinition value)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
valuePropertyDefinition
Returns
TypeDescription
DocumentSchema.Builder

addPropertyDefinitions(PropertyDefinition.Builder builderForValue)

public DocumentSchema.Builder addPropertyDefinitions(PropertyDefinition.Builder builderForValue)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
DocumentSchema.Builder

addPropertyDefinitions(int index, PropertyDefinition value)

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

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameters
NameDescription
indexint
valuePropertyDefinition
Returns
TypeDescription
DocumentSchema.Builder

addPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

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

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameters
NameDescription
indexint
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
DocumentSchema.Builder

addPropertyDefinitionsBuilder()

public PropertyDefinition.Builder addPropertyDefinitionsBuilder()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Returns
TypeDescription
PropertyDefinition.Builder

addPropertyDefinitionsBuilder(int index)

public PropertyDefinition.Builder addPropertyDefinitionsBuilder(int index)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentSchema build()
Returns
TypeDescription
DocumentSchema

buildPartial()

public DocumentSchema buildPartial()
Returns
TypeDescription
DocumentSchema

clear()

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

clearCreateTime()

public DocumentSchema.Builder clearCreateTime()

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DocumentSchema.Builder

clearDescription()

public DocumentSchema.Builder clearDescription()

Schema description.

string description = 7;

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

clearDisplayName()

public DocumentSchema.Builder clearDisplayName()

Required. Name of the schema given by the user. Must be unique per customer.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

clearDocumentIsFolder()

public DocumentSchema.Builder clearDocumentIsFolder()

Document Type, true refers the document is a folder, otherwise it is a typical document.

bool document_is_folder = 4;

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DocumentSchema.Builder clearName()

The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.

string name = 1;

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyDefinitions()

public DocumentSchema.Builder clearPropertyDefinitions()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Returns
TypeDescription
DocumentSchema.Builder

clearUpdateTime()

public DocumentSchema.Builder clearUpdateTime()

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DocumentSchema.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DocumentSchema getDefaultInstanceForType()
Returns
TypeDescription
DocumentSchema

getDescription()

public String getDescription()

Schema description.

string description = 7;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Schema description.

string description = 7;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Name of the schema given by the user. Must be unique per customer.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Name of the schema given by the user. Must be unique per customer.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getDocumentIsFolder()

public boolean getDocumentIsFolder()

Document Type, true refers the document is a folder, otherwise it is a typical document.

bool document_is_folder = 4;

Returns
TypeDescription
boolean

The documentIsFolder.

getName()

public String getName()

The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPropertyDefinitions(int index)

public PropertyDefinition getPropertyDefinitions(int index)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyDefinition

getPropertyDefinitionsBuilder(int index)

public PropertyDefinition.Builder getPropertyDefinitionsBuilder(int index)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyDefinition.Builder

getPropertyDefinitionsBuilderList()

public List<PropertyDefinition.Builder> getPropertyDefinitionsBuilderList()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Returns
TypeDescription
List<Builder>

getPropertyDefinitionsCount()

public int getPropertyDefinitionsCount()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Returns
TypeDescription
int

getPropertyDefinitionsList()

public List<PropertyDefinition> getPropertyDefinitionsList()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Returns
TypeDescription
List<PropertyDefinition>

getPropertyDefinitionsOrBuilder(int index)

public PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder(int index)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyDefinitionOrBuilder

getPropertyDefinitionsOrBuilderList()

public List<? extends PropertyDefinitionOrBuilder> getPropertyDefinitionsOrBuilderList()

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

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

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DocumentSchema.Builder mergeCreateTime(Timestamp value)

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentSchema.Builder

mergeFrom(DocumentSchema other)

public DocumentSchema.Builder mergeFrom(DocumentSchema other)
Parameter
NameDescription
otherDocumentSchema
Returns
TypeDescription
DocumentSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public DocumentSchema.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentSchema.Builder

removePropertyDefinitions(int index)

public DocumentSchema.Builder removePropertyDefinitions(int index)

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentSchema.Builder

setCreateTime(Timestamp value)

public DocumentSchema.Builder setCreateTime(Timestamp value)

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentSchema.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DocumentSchema.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the document schema is created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DocumentSchema.Builder

setDescription(String value)

public DocumentSchema.Builder setDescription(String value)

Schema description.

string description = 7;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DocumentSchema.Builder setDescriptionBytes(ByteString value)

Schema description.

string description = 7;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setDisplayName(String value)

public DocumentSchema.Builder setDisplayName(String value)

Required. Name of the schema given by the user. Must be unique per customer.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DocumentSchema.Builder setDisplayNameBytes(ByteString value)

Required. Name of the schema given by the user. Must be unique per customer.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setDocumentIsFolder(boolean value)

public DocumentSchema.Builder setDocumentIsFolder(boolean value)

Document Type, true refers the document is a folder, otherwise it is a typical document.

bool document_is_folder = 4;

Parameter
NameDescription
valueboolean

The documentIsFolder to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DocumentSchema.Builder setName(String value)

The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DocumentSchema.Builder setNameBytes(ByteString value)

The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DocumentSchema.Builder

This builder for chaining.

setPropertyDefinitions(int index, PropertyDefinition value)

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

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameters
NameDescription
indexint
valuePropertyDefinition
Returns
TypeDescription
DocumentSchema.Builder

setPropertyDefinitions(int index, PropertyDefinition.Builder builderForValue)

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

Document details.

repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3;

Parameters
NameDescription
indexint
builderForValuePropertyDefinition.Builder
Returns
TypeDescription
DocumentSchema.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DocumentSchema.Builder setUpdateTime(Timestamp value)

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentSchema.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DocumentSchema.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the document schema is last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DocumentSchema.Builder