Class FetchAclRequest.Builder (0.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchAclRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FetchAclRequest.Builder
Overrides

build()

public FetchAclRequest build()
Returns
TypeDescription
FetchAclRequest

buildPartial()

public FetchAclRequest buildPartial()
Returns
TypeDescription
FetchAclRequest

clear()

public FetchAclRequest.Builder clear()
Returns
TypeDescription
FetchAclRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FetchAclRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FetchAclRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchAclRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FetchAclRequest.Builder

This builder for chaining.

clone()

public FetchAclRequest.Builder clone()
Returns
TypeDescription
FetchAclRequest.Builder
Overrides

getDefaultInstanceForType()

public FetchAclRequest getDefaultInstanceForType()
Returns
TypeDescription
FetchAclRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the requestMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FetchAclRequest other)

public FetchAclRequest.Builder mergeFrom(FetchAclRequest other)
Parameter
NameDescription
otherFetchAclRequest
Returns
TypeDescription
FetchAclRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchAclRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FetchAclRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FetchAclRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRequestMetadata
Returns
TypeDescription
FetchAclRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchAclRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FetchAclRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FetchAclRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The projectOwner to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRequestMetadata
Returns
TypeDescription
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
NameDescription
builderForValueRequestMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueString

The resource to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
FetchAclRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchAclRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FetchAclRequest.Builder
Overrides