- 0.51.0 (latest)
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 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 DocumentLink.Builder extends GeneratedMessageV3.Builder<DocumentLink.Builder> implements DocumentLinkOrBuilder
A document-link between source and target document.
Protobuf type google.cloud.contentwarehouse.v1.DocumentLink
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentLink.BuilderImplements
DocumentLinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
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. |
clearField(Descriptors.FieldDescriptor field)
public DocumentLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
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 |
clone()
public DocumentLink.Builder clone()
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
String The 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 |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
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 |
String The 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 |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DocumentLink.Builder |
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.State The 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 |
int The 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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |