Class SetAclRequest.Builder

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

    public static final class SetAclRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SetAclRequest.Builder>
    implements SetAclRequestOrBuilder
     Request message for DocumentService.SetAcl.
     
    Protobuf type google.cloud.contentwarehouse.v1.SetAclRequest
    • 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<SetAclRequest.Builder>
      • clear

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

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

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

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

        public SetAclRequest.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<SetAclRequest.Builder>
      • setField

        public SetAclRequest.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<SetAclRequest.Builder>
      • clearField

        public SetAclRequest.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<SetAclRequest.Builder>
      • clearOneof

        public SetAclRequest.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<SetAclRequest.Builder>
      • setRepeatedField

        public SetAclRequest.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<SetAclRequest.Builder>
      • addRepeatedField

        public SetAclRequest.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<SetAclRequest.Builder>
      • mergeFrom

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

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

        public SetAclRequest.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<SetAclRequest.Builder>
        Throws:
        IOException
      • getResource

        public String getResource()
         Required. REQUIRED: The resource for which the policy is being requested.
         Format for document:
         projects/{project_number}/locations/{location}/documents/{document_id}.
         Format for collection:
         projects/{project_number}/locations/{location}/collections/{collection_id}.
         Format for project: projects/{project_number}.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResource in interface SetAclRequestOrBuilder
        Returns:
        The resource.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         Required. REQUIRED: The resource for which the policy is being requested.
         Format for document:
         projects/{project_number}/locations/{location}/documents/{document_id}.
         Format for collection:
         projects/{project_number}/locations/{location}/collections/{collection_id}.
         Format for project: projects/{project_number}.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResourceBytes in interface SetAclRequestOrBuilder
        Returns:
        The bytes for resource.
      • setResource

        public SetAclRequest.Builder setResource​(String value)
         Required. REQUIRED: The resource for which the policy is being requested.
         Format for document:
         projects/{project_number}/locations/{location}/documents/{document_id}.
         Format for collection:
         projects/{project_number}/locations/{location}/collections/{collection_id}.
         Format for project: projects/{project_number}.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The resource to set.
        Returns:
        This builder for chaining.
      • clearResource

        public SetAclRequest.Builder clearResource()
         Required. REQUIRED: The resource for which the policy is being requested.
         Format for document:
         projects/{project_number}/locations/{location}/documents/{document_id}.
         Format for collection:
         projects/{project_number}/locations/{location}/collections/{collection_id}.
         Format for project: projects/{project_number}.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setResourceBytes

        public SetAclRequest.Builder setResourceBytes​(com.google.protobuf.ByteString value)
         Required. REQUIRED: The resource for which the policy is being requested.
         Format for document:
         projects/{project_number}/locations/{location}/documents/{document_id}.
         Format for collection:
         projects/{project_number}/locations/{location}/collections/{collection_id}.
         Format for project: projects/{project_number}.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for resource to set.
        Returns:
        This builder for chaining.
      • hasPolicy

        public boolean hasPolicy()
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPolicy in interface SetAclRequestOrBuilder
        Returns:
        Whether the policy field is set.
      • getPolicy

        public com.google.iam.v1.Policy getPolicy()
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPolicy in interface SetAclRequestOrBuilder
        Returns:
        The policy.
      • setPolicy

        public SetAclRequest.Builder setPolicy​(com.google.iam.v1.Policy value)
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • setPolicy

        public SetAclRequest.Builder setPolicy​(com.google.iam.v1.Policy.Builder builderForValue)
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergePolicy

        public SetAclRequest.Builder mergePolicy​(com.google.iam.v1.Policy value)
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearPolicy

        public SetAclRequest.Builder clearPolicy()
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPolicyBuilder

        public com.google.iam.v1.Policy.Builder getPolicyBuilder()
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPolicyOrBuilder

        public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder()
         Required. REQUIRED: The complete policy to be applied to the `resource`.
         The size of the policy is limited to a few 10s of KB. This refers to an
         Identity and Access (IAM) policy, which specifies access controls for the
         Document.
        
         You can set ACL with condition for projects only.
        
         Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
         the left of the operator is `DocumentSchemaId` or property name and the
         right of the operator is a number or a quoted string. You must escape
         backslash (\\) and quote (\") characters.
        
         Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
         example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
         allowed in the expression. The expression must be < 6000 bytes in length.
        
         Sample condition:
             `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName
             >= 10"`
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPolicyOrBuilder in interface SetAclRequestOrBuilder
      • hasRequestMetadata

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

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

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

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

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

        public SetAclRequest.Builder clearRequestMetadata()
         The meta information collected about the end user, 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 end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • getProjectOwner

        public boolean getProjectOwner()
         For Set Project ACL only. Authorization check for end user will be ignored
         when project_owner=true.
         
        bool project_owner = 4;
        Specified by:
        getProjectOwner in interface SetAclRequestOrBuilder
        Returns:
        The projectOwner.
      • setProjectOwner

        public SetAclRequest.Builder setProjectOwner​(boolean value)
         For Set Project ACL only. Authorization check for end user will be ignored
         when project_owner=true.
         
        bool project_owner = 4;
        Parameters:
        value - The projectOwner to set.
        Returns:
        This builder for chaining.
      • clearProjectOwner

        public SetAclRequest.Builder clearProjectOwner()
         For Set Project ACL only. Authorization check for end user will be ignored
         when project_owner=true.
         
        bool project_owner = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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