Class ListApprovalRequestsMessage.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListApprovalRequestsMessage build()
Returns
TypeDescription
ListApprovalRequestsMessage

buildPartial()

public ListApprovalRequestsMessage buildPartial()
Returns
TypeDescription
ListApprovalRequestsMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListApprovalRequestsMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListApprovalRequestsMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListApprovalRequestsMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListApprovalRequestsMessage.Builder
Overrides

clearPageSize()

public ListApprovalRequestsMessage.Builder clearPageSize()

Requested page size.

int32 page_size = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListApprovalRequestsMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListApprovalRequestsMessage getDefaultInstanceForType()
Returns
TypeDescription
ListApprovalRequestsMessage

getDescriptorForType()

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

The bytes for filter.

getPageSize()

public int getPageSize()

Requested page size.

int32 page_size = 3;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying the page of results to return.

string page_token = 4;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying the page of results to return.

string page_token = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListApprovalRequestsMessage other)

public ListApprovalRequestsMessage.Builder mergeFrom(ListApprovalRequestsMessage other)
Parameter
NameDescription
otherListApprovalRequestsMessage
Returns
TypeDescription
ListApprovalRequestsMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ListApprovalRequestsMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListApprovalRequestsMessage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The filter to set.

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

The bytes for filter to set.

Returns
TypeDescription
ListApprovalRequestsMessage.Builder

This builder for chaining.

setPageSize(int value)

public ListApprovalRequestsMessage.Builder setPageSize(int value)

Requested page size.

int32 page_size = 3;

Parameter
NameDescription
valueint

The pageSize to set.

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

The pageToken to set.

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

The bytes for pageToken to set.

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListApprovalRequestsMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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