Class CreateDocumentLinkRequest.Builder

    • 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<CreateDocumentLinkRequest.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<CreateDocumentLinkRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateDocumentLinkRequest.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<CreateDocumentLinkRequest.Builder>
      • isInitialized

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

        public CreateDocumentLinkRequest.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<CreateDocumentLinkRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. Parent of the document-link to be created.
         parent of document-link should be a document.
         Format:
         projects/{project_number}/locations/{location}/documents/{source_document_id}.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. Parent of the document-link to be created.
         parent of document-link should be a document.
         Format:
         projects/{project_number}/locations/{location}/documents/{source_document_id}.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateDocumentLinkRequest.Builder setParent​(String value)
         Required. Parent of the document-link to be created.
         parent of document-link should be a document.
         Format:
         projects/{project_number}/locations/{location}/documents/{source_document_id}.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateDocumentLinkRequest.Builder clearParent()
         Required. Parent of the document-link to be created.
         parent of document-link should be a document.
         Format:
         projects/{project_number}/locations/{location}/documents/{source_document_id}.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateDocumentLinkRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. Parent of the document-link to be created.
         parent of document-link should be a document.
         Format:
         projects/{project_number}/locations/{location}/documents/{source_document_id}.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasDocumentLink

        public boolean hasDocumentLink()
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDocumentLink in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        Whether the documentLink field is set.
      • getDocumentLink

        public DocumentLink getDocumentLink()
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDocumentLink in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        The documentLink.
      • setDocumentLink

        public CreateDocumentLinkRequest.Builder setDocumentLink​(DocumentLink value)
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
      • setDocumentLink

        public CreateDocumentLinkRequest.Builder setDocumentLink​(DocumentLink.Builder builderForValue)
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeDocumentLink

        public CreateDocumentLinkRequest.Builder mergeDocumentLink​(DocumentLink value)
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearDocumentLink

        public CreateDocumentLinkRequest.Builder clearDocumentLink()
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDocumentLinkBuilder

        public DocumentLink.Builder getDocumentLinkBuilder()
         Required. Document links associated with the source documents
         (source_document_id).
         
        .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED];
      • hasRequestMetadata

        public boolean hasRequestMetadata()
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
        Specified by:
        hasRequestMetadata in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        Whether the requestMetadata field is set.
      • getRequestMetadata

        public RequestMetadata getRequestMetadata()
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
        Specified by:
        getRequestMetadata in interface CreateDocumentLinkRequestOrBuilder
        Returns:
        The requestMetadata.
      • setRequestMetadata

        public CreateDocumentLinkRequest.Builder setRequestMetadata​(RequestMetadata value)
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • setRequestMetadata

        public CreateDocumentLinkRequest.Builder setRequestMetadata​(RequestMetadata.Builder builderForValue)
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • mergeRequestMetadata

        public CreateDocumentLinkRequest.Builder mergeRequestMetadata​(RequestMetadata value)
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • clearRequestMetadata

        public CreateDocumentLinkRequest.Builder clearRequestMetadata()
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • getRequestMetadataBuilder

        public RequestMetadata.Builder getRequestMetadataBuilder()
         The meta information collected about the document creator, used to enforce
         access control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • setUnknownFields

        public final CreateDocumentLinkRequest.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<CreateDocumentLinkRequest.Builder>
      • mergeUnknownFields

        public final CreateDocumentLinkRequest.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<CreateDocumentLinkRequest.Builder>