public static final class DocumentLink.Builder extends GeneratedMessage.Builder<DocumentLink.Builder> implements DocumentLinkOrBuilderA document-link between source and target document.
Protobuf type google.cloud.contentwarehouse.v1.DocumentLink
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DocumentLink.BuilderImplements
DocumentLinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DocumentLink build()| Returns | |
|---|---|
| Type | Description |
DocumentLink |
|
buildPartial()
public DocumentLink buildPartial()| Returns | |
|---|---|
| Type | Description |
DocumentLink |
|
clear()
public DocumentLink.Builder clear()| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
clearCreateTime()
public DocumentLink.Builder clearCreateTime()Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
clearDescription()
public DocumentLink.Builder clearDescription()Description of this document-link.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
clearName()
public DocumentLink.Builder clearName()Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
clearSourceDocumentReference()
public DocumentLink.Builder clearSourceDocumentReference()Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
clearState()
public DocumentLink.Builder clearState()The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
.google.cloud.contentwarehouse.v1.DocumentLink.State state = 7;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
clearTargetDocumentReference()
public DocumentLink.Builder clearTargetDocumentReference()Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
clearUpdateTime()
public DocumentLink.Builder clearUpdateTime()Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public DocumentLink getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DocumentLink |
|
getDescription()
public String getDescription()Description of this document-link.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Description of this document-link.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSourceDocumentReference()
public DocumentReference getSourceDocumentReference()Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Returns | |
|---|---|
| Type | Description |
DocumentReference |
The sourceDocumentReference. |
getSourceDocumentReferenceBuilder()
public DocumentReference.Builder getSourceDocumentReferenceBuilder()Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Returns | |
|---|---|
| Type | Description |
DocumentReference.Builder |
|
getSourceDocumentReferenceOrBuilder()
public DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder()Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Returns | |
|---|---|
| Type | Description |
DocumentReferenceOrBuilder |
|
getState()
public DocumentLink.State getState()The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
.google.cloud.contentwarehouse.v1.DocumentLink.State state = 7;
| Returns | |
|---|---|
| Type | Description |
DocumentLink.State |
The state. |
getStateValue()
public int getStateValue()The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
.google.cloud.contentwarehouse.v1.DocumentLink.State state = 7;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTargetDocumentReference()
public DocumentReference getTargetDocumentReference()Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Returns | |
|---|---|
| Type | Description |
DocumentReference |
The targetDocumentReference. |
getTargetDocumentReferenceBuilder()
public DocumentReference.Builder getTargetDocumentReferenceBuilder()Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Returns | |
|---|---|
| Type | Description |
DocumentReference.Builder |
|
getTargetDocumentReferenceOrBuilder()
public DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder()Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Returns | |
|---|---|
| Type | Description |
DocumentReferenceOrBuilder |
|
getUpdateTime()
public Timestamp getUpdateTime()Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasSourceDocumentReference()
public boolean hasSourceDocumentReference()Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceDocumentReference field is set. |
hasTargetDocumentReference()
public boolean hasTargetDocumentReference()Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the targetDocumentReference field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public DocumentLink.Builder mergeCreateTime(Timestamp value)Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
mergeFrom(DocumentLink other)
public DocumentLink.Builder mergeFrom(DocumentLink other)| Parameter | |
|---|---|
| Name | Description |
other |
DocumentLink |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DocumentLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DocumentLink.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
mergeSourceDocumentReference(DocumentReference value)
public DocumentLink.Builder mergeSourceDocumentReference(DocumentReference value)Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
DocumentReference |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
mergeTargetDocumentReference(DocumentReference value)
public DocumentLink.Builder mergeTargetDocumentReference(DocumentReference value)Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
DocumentReference |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
mergeUpdateTime(Timestamp value)
public DocumentLink.Builder mergeUpdateTime(Timestamp value)Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setCreateTime(Timestamp value)
public DocumentLink.Builder setCreateTime(Timestamp value)Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public DocumentLink.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time when the documentLink is created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setDescription(String value)
public DocumentLink.Builder setDescription(String value)Description of this document-link.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public DocumentLink.Builder setDescriptionBytes(ByteString value)Description of this document-link.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setName(String value)
public DocumentLink.Builder setName(String value)Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DocumentLink.Builder setNameBytes(ByteString value)Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setSourceDocumentReference(DocumentReference value)
public DocumentLink.Builder setSourceDocumentReference(DocumentReference value)Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
DocumentReference |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setSourceDocumentReference(DocumentReference.Builder builderForValue)
public DocumentLink.Builder setSourceDocumentReference(DocumentReference.Builder builderForValue)Document references of the source document.
.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DocumentReference.Builder |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setState(DocumentLink.State value)
public DocumentLink.Builder setState(DocumentLink.State value)The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
.google.cloud.contentwarehouse.v1.DocumentLink.State state = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
DocumentLink.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setStateValue(int value)
public DocumentLink.Builder setStateValue(int value)The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
.google.cloud.contentwarehouse.v1.DocumentLink.State state = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setTargetDocumentReference(DocumentReference value)
public DocumentLink.Builder setTargetDocumentReference(DocumentReference value)Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
DocumentReference |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setTargetDocumentReference(DocumentReference.Builder builderForValue)
public DocumentLink.Builder setTargetDocumentReference(DocumentReference.Builder builderForValue)Document references of the target document.
.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DocumentReference.Builder |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setUpdateTime(Timestamp value)
public DocumentLink.Builder setUpdateTime(Timestamp value)Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public DocumentLink.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The time when the documentLink is last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DocumentLink.Builder |
|