Class ListApprovalRequestsMessage.Builder (2.49.0)

public static final class ListApprovalRequestsMessage.Builder extends GeneratedMessageV3.Builder<ListApprovalRequestsMessage.Builder> implements ListApprovalRequestsMessageOrBuilder

Request to list approval requests.

Protobuf type google.cloud.accessapproval.v1.ListApprovalRequestsMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListApprovalRequestsMessage build()
Returns
Type Description
ListApprovalRequestsMessage

buildPartial()

public ListApprovalRequestsMessage buildPartial()
Returns
Type Description
ListApprovalRequestsMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public ListApprovalRequestsMessage.Builder clearFilter()

A filter on the type of approval requests to retrieve. Must be one of the following values:

  • [not set]: Requests that are pending or have active approvals.
  • ALL: All requests.
  • PENDING: Only pending requests.
  • ACTIVE: Only active (i.e. currently approved) requests.
  • DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration.
  • EXPIRED: Only requests that have been approved, and the approval has expired.
  • HISTORY: Active, dismissed and expired requests.

string filter = 2;

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListApprovalRequestsMessage.Builder clearPageSize()

Requested page size.

int32 page_size = 3;

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

clearPageToken()

public ListApprovalRequestsMessage.Builder clearPageToken()

A token identifying the page of results to return.

string page_token = 4;

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

clearParent()

public ListApprovalRequestsMessage.Builder clearParent()

The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListApprovalRequestsMessage getDefaultInstanceForType()
Returns
Type Description
ListApprovalRequestsMessage

getDescriptorForType()

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

getFilter()

public String getFilter()

A filter on the type of approval requests to retrieve. Must be one of the following values:

  • [not set]: Requests that are pending or have active approvals.
  • ALL: All requests.
  • PENDING: Only pending requests.
  • ACTIVE: Only active (i.e. currently approved) requests.
  • DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration.
  • EXPIRED: Only requests that have been approved, and the approval has expired.
  • HISTORY: Active, dismissed and expired requests.

string filter = 2;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

A filter on the type of approval requests to retrieve. Must be one of the following values:

  • [not set]: Requests that are pending or have active approvals.
  • ALL: All requests.
  • PENDING: Only pending requests.
  • ACTIVE: Only active (i.e. currently approved) requests.
  • DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration.
  • EXPIRED: Only requests that have been approved, and the approval has expired.
  • HISTORY: Active, dismissed and expired requests.

string filter = 2;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Requested page size.

int32 page_size = 3;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying the page of results to return.

string page_token = 4;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying the page of results to return.

string page_token = 4;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListApprovalRequestsMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ListApprovalRequestsMessage.Builder setFilter(String value)

A filter on the type of approval requests to retrieve. Must be one of the following values:

  • [not set]: Requests that are pending or have active approvals.
  • ALL: All requests.
  • PENDING: Only pending requests.
  • ACTIVE: Only active (i.e. currently approved) requests.
  • DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration.
  • EXPIRED: Only requests that have been approved, and the approval has expired.
  • HISTORY: Active, dismissed and expired requests.

string filter = 2;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListApprovalRequestsMessage.Builder setFilterBytes(ByteString value)

A filter on the type of approval requests to retrieve. Must be one of the following values:

  • [not set]: Requests that are pending or have active approvals.
  • ALL: All requests.
  • PENDING: Only pending requests.
  • ACTIVE: Only active (i.e. currently approved) requests.
  • DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration.
  • EXPIRED: Only requests that have been approved, and the approval has expired.
  • HISTORY: Active, dismissed and expired requests.

string filter = 2;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setPageSize(int value)

public ListApprovalRequestsMessage.Builder setPageSize(int value)

Requested page size.

int32 page_size = 3;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setPageToken(String value)

public ListApprovalRequestsMessage.Builder setPageToken(String value)

A token identifying the page of results to return.

string page_token = 4;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListApprovalRequestsMessage.Builder setPageTokenBytes(ByteString value)

A token identifying the page of results to return.

string page_token = 4;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setParent(String value)

public ListApprovalRequestsMessage.Builder setParent(String value)

The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListApprovalRequestsMessage.Builder setParentBytes(ByteString value)

The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListApprovalRequestsMessage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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