Class FetchAclRequest.Builder (0.47.0)

public static final class FetchAclRequest.Builder extends GeneratedMessageV3.Builder<FetchAclRequest.Builder> implements FetchAclRequestOrBuilder

Request message for DocumentService.FetchAcl

Protobuf type google.cloud.contentwarehouse.v1.FetchAclRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchAclRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchAclRequest.Builder
Overrides

build()

public FetchAclRequest build()
Returns
Type Description
FetchAclRequest

buildPartial()

public FetchAclRequest buildPartial()
Returns
Type Description
FetchAclRequest

clear()

public FetchAclRequest.Builder clear()
Returns
Type Description
FetchAclRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FetchAclRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FetchAclRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchAclRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchAclRequest.Builder
Overrides

clearProjectOwner()

public FetchAclRequest.Builder clearProjectOwner()

For Get Project ACL only. Authorization check for end user will be ignored when project_owner=true.

bool project_owner = 3;

Returns
Type Description
FetchAclRequest.Builder

This builder for chaining.

clearRequestMetadata()

public FetchAclRequest.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 = 2;

Returns
Type Description
FetchAclRequest.Builder

clearResource()

public FetchAclRequest.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
Type Description
FetchAclRequest.Builder

This builder for chaining.

clone()

public FetchAclRequest.Builder clone()
Returns
Type Description
FetchAclRequest.Builder
Overrides

getDefaultInstanceForType()

public FetchAclRequest getDefaultInstanceForType()
Returns
Type Description
FetchAclRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProjectOwner()

public boolean getProjectOwner()

For Get Project ACL only. Authorization check for end user will be ignored when project_owner=true.

bool project_owner = 3;

Returns
Type Description
boolean

The projectOwner.

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 = 2;

Returns
Type Description
RequestMetadata

The requestMetadata.

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 = 2;

Returns
Type Description
RequestMetadata.Builder

getRequestMetadataOrBuilder()

public RequestMetadataOrBuilder getRequestMetadataOrBuilder()

The meta information collected about the end user, used to enforce access control for the service.

.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;

Returns
Type Description
RequestMetadataOrBuilder

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];

Returns
Type Description
String

The resource.

getResourceBytes()

public 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];

Returns
Type Description
ByteString

The bytes for resource.

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 = 2;

Returns
Type Description
boolean

Whether the requestMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchAclRequest other)

public FetchAclRequest.Builder mergeFrom(FetchAclRequest other)
Parameter
Name Description
other FetchAclRequest
Returns
Type Description
FetchAclRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchAclRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAclRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchAclRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchAclRequest.Builder
Overrides

mergeRequestMetadata(RequestMetadata value)

public FetchAclRequest.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 = 2;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
FetchAclRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchAclRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchAclRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FetchAclRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchAclRequest.Builder
Overrides

setProjectOwner(boolean value)

public FetchAclRequest.Builder setProjectOwner(boolean value)

For Get Project ACL only. Authorization check for end user will be ignored when project_owner=true.

bool project_owner = 3;

Parameter
Name Description
value boolean

The projectOwner to set.

Returns
Type Description
FetchAclRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FetchAclRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchAclRequest.Builder
Overrides

setRequestMetadata(RequestMetadata value)

public FetchAclRequest.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 = 2;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
FetchAclRequest.Builder

setRequestMetadata(RequestMetadata.Builder builderForValue)

public FetchAclRequest.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 = 2;

Parameter
Name Description
builderForValue RequestMetadata.Builder
Returns
Type Description
FetchAclRequest.Builder

setResource(String value)

public FetchAclRequest.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];

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
FetchAclRequest.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public FetchAclRequest.Builder setResourceBytes(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];

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
FetchAclRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchAclRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchAclRequest.Builder
Overrides