Class DocumentLink (0.24.0)

public final class DocumentLink extends GeneratedMessageV3 implements DocumentLinkOrBuilder

A document-link between source and target document.

Protobuf type google.cloud.contentwarehouse.v1.DocumentLink

Static Fields

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SOURCE_DOCUMENT_REFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int TARGET_DOCUMENT_REFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static DocumentLink getDefaultInstance()
Returns
TypeDescription
DocumentLink
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static DocumentLink.Builder newBuilder()
Returns
TypeDescription
DocumentLink.Builder
public static DocumentLink.Builder newBuilder(DocumentLink prototype)
Parameter
NameDescription
prototypeDocumentLink
Returns
TypeDescription
DocumentLink.Builder
public static DocumentLink parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static DocumentLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static DocumentLink parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static DocumentLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static DocumentLink parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
IOException
public static DocumentLink parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static DocumentLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<DocumentLink> parser()
Returns
TypeDescription
Parser<DocumentLink>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
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
TypeDescription
Timestamp

The createTime.

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
TypeDescription
TimestampOrBuilder
public DocumentLink getDefaultInstanceForType()
Returns
TypeDescription
DocumentLink
public String getDescription()

Description of this document-link.

string description = 4;

Returns
TypeDescription
String

The description.

public ByteString getDescriptionBytes()

Description of this document-link.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

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
TypeDescription
String

The name.

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
TypeDescription
ByteString

The bytes for name.

public Parser<DocumentLink> getParserForType()
Returns
TypeDescription
Parser<DocumentLink>
Overrides
public int getSerializedSize()
Returns
TypeDescription
int
Overrides
public DocumentReference getSourceDocumentReference()

Document references of the source document.

.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;

Returns
TypeDescription
DocumentReference

The sourceDocumentReference.

public DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder()

Document references of the source document.

.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;

Returns
TypeDescription
DocumentReferenceOrBuilder
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
TypeDescription
DocumentLink.State

The state.

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
TypeDescription
int

The enum numeric value on the wire for state.

public DocumentReference getTargetDocumentReference()

Document references of the target document.

.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;

Returns
TypeDescription
DocumentReference

The targetDocumentReference.

public DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder()

Document references of the target document.

.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;

Returns
TypeDescription
DocumentReferenceOrBuilder
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
TypeDescription
Timestamp

The updateTime.

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
TypeDescription
TimestampOrBuilder
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
TypeDescription
boolean

Whether the createTime field is set.

public boolean hasSourceDocumentReference()

Document references of the source document.

.google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;

Returns
TypeDescription
boolean

Whether the sourceDocumentReference field is set.

public boolean hasTargetDocumentReference()

Document references of the target document.

.google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;

Returns
TypeDescription
boolean

Whether the targetDocumentReference field is set.

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
TypeDescription
boolean

Whether the updateTime field is set.

public int hashCode()
Returns
TypeDescription
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public DocumentLink.Builder newBuilderForType()
Returns
TypeDescription
DocumentLink.Builder
protected DocumentLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DocumentLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides
public DocumentLink.Builder toBuilder()
Returns
TypeDescription
DocumentLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException