Class ListContentPoliciesRequest.Builder (3.103.0)

public static final class ListContentPoliciesRequest.Builder extends GeneratedMessage.Builder<ListContentPoliciesRequest.Builder> implements ListContentPoliciesRequestOrBuilder

Request message for ListContentPolicies.

Protobuf type google.privacy.dlp.v2.ListContentPoliciesRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListContentPoliciesRequest build()
Returns
Type Description
ListContentPoliciesRequest

buildPartial()

public ListContentPoliciesRequest buildPartial()
Returns
Type Description
ListContentPoliciesRequest

clear()

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

clearPageSize()

public ListContentPoliciesRequest.Builder clearPageSize()

Optional. Number of results per page, max 1000.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

clearPageToken()

public ListContentPoliciesRequest.Builder clearPageToken()

Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

clearParent()

public ListContentPoliciesRequest.Builder clearParent()

Required. Resource name of the project, for example, projects/project-id/locations/asia.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListContentPoliciesRequest getDefaultInstanceForType()
Returns
Type Description
ListContentPoliciesRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. Number of results per page, max 1000.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. Resource name of the project, for example, projects/project-id/locations/asia.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the project, for example, projects/project-id/locations/asia.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListContentPoliciesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public ListContentPoliciesRequest.Builder setPageSize(int value)

Optional. Number of results per page, max 1000.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListContentPoliciesRequest.Builder setPageToken(String value)

Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListContentPoliciesRequest.Builder setPageTokenBytes(ByteString value)

Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

setParent(String value)

public ListContentPoliciesRequest.Builder setParent(String value)

Required. Resource name of the project, for example, projects/project-id/locations/asia.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListContentPoliciesRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the project, for example, projects/project-id/locations/asia.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListContentPoliciesRequest.Builder

This builder for chaining.