Class DocumentLink.Builder

  • All Implemented Interfaces:
    DocumentLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DocumentLink

    public static final class DocumentLink.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
    implements DocumentLinkOrBuilder
     A document-link between source and target document.
     
    Protobuf type google.cloud.contentwarehouse.v1.DocumentLink
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • clear

        public DocumentLink.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • getDefaultInstanceForType

        public DocumentLink getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DocumentLink build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DocumentLink buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DocumentLink.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • setField

        public DocumentLink.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • clearField

        public DocumentLink.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • clearOneof

        public DocumentLink.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • setRepeatedField

        public DocumentLink.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • addRepeatedField

        public DocumentLink.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • mergeFrom

        public DocumentLink.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentLink.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • mergeFrom

        public DocumentLink.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentLink.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getName in interface DocumentLinkOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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;
        Specified by:
        getNameBytes in interface DocumentLinkOrBuilder
        Returns:
        The bytes for name.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public DocumentLink.Builder setNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasSourceDocumentReference

        public boolean hasSourceDocumentReference()
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
        Specified by:
        hasSourceDocumentReference in interface DocumentLinkOrBuilder
        Returns:
        Whether the sourceDocumentReference field is set.
      • getSourceDocumentReference

        public DocumentReference getSourceDocumentReference()
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
        Specified by:
        getSourceDocumentReference in interface DocumentLinkOrBuilder
        Returns:
        The sourceDocumentReference.
      • setSourceDocumentReference

        public DocumentLink.Builder setSourceDocumentReference​(DocumentReference value)
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
      • setSourceDocumentReference

        public DocumentLink.Builder setSourceDocumentReference​(DocumentReference.Builder builderForValue)
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
      • mergeSourceDocumentReference

        public DocumentLink.Builder mergeSourceDocumentReference​(DocumentReference value)
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
      • clearSourceDocumentReference

        public DocumentLink.Builder clearSourceDocumentReference()
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
      • getSourceDocumentReferenceBuilder

        public DocumentReference.Builder getSourceDocumentReferenceBuilder()
         Document references of the source document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2;
      • hasTargetDocumentReference

        public boolean hasTargetDocumentReference()
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
        Specified by:
        hasTargetDocumentReference in interface DocumentLinkOrBuilder
        Returns:
        Whether the targetDocumentReference field is set.
      • getTargetDocumentReference

        public DocumentReference getTargetDocumentReference()
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
        Specified by:
        getTargetDocumentReference in interface DocumentLinkOrBuilder
        Returns:
        The targetDocumentReference.
      • setTargetDocumentReference

        public DocumentLink.Builder setTargetDocumentReference​(DocumentReference value)
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
      • setTargetDocumentReference

        public DocumentLink.Builder setTargetDocumentReference​(DocumentReference.Builder builderForValue)
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
      • mergeTargetDocumentReference

        public DocumentLink.Builder mergeTargetDocumentReference​(DocumentReference value)
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
      • clearTargetDocumentReference

        public DocumentLink.Builder clearTargetDocumentReference()
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
      • getTargetDocumentReferenceBuilder

        public DocumentReference.Builder getTargetDocumentReferenceBuilder()
         Document references of the target document.
         
        .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3;
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of this document-link.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface DocumentLinkOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public DocumentLink.Builder setDescription​(String value)
         Description of this document-link.
         
        string description = 4;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public DocumentLink.Builder clearDescription()
         Description of this document-link.
         
        string description = 4;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public DocumentLink.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of this document-link.
         
        string description = 4;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        hasUpdateTime in interface DocumentLinkOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the documentLink is last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface DocumentLinkOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public DocumentLink.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the documentLink is last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public DocumentLink.Builder setUpdateTime​(com.google.protobuf.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];
      • mergeUpdateTime

        public DocumentLink.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the documentLink is last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getUpdateTimeBuilder

        public com.google.protobuf.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];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the documentLink is last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface DocumentLinkOrBuilder
      • 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];
        Specified by:
        hasCreateTime in interface DocumentLinkOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface DocumentLinkOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public DocumentLink.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public DocumentLink.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public DocumentLink.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the documentLink is created.
         
        .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface DocumentLinkOrBuilder
      • 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;
        Specified by:
        getStateValue in interface DocumentLinkOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        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;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getState in interface DocumentLinkOrBuilder
        Returns:
        The state.
      • setState

        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;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setUnknownFields

        public final DocumentLink.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>
      • mergeUnknownFields

        public final DocumentLink.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentLink.Builder>