Class ListBuildsRequest.Builder (3.85.0)

public static final class ListBuildsRequest.Builder extends GeneratedMessage.Builder<ListBuildsRequest.Builder> implements ListBuildsRequestOrBuilder

Request to list builds.

Protobuf type google.devtools.cloudbuild.v1.ListBuildsRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListBuildsRequest build()
Returns
Type Description
ListBuildsRequest

buildPartial()

public ListBuildsRequest buildPartial()
Returns
Type Description
ListBuildsRequest

clear()

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

clearFilter()

public ListBuildsRequest.Builder clearFilter()

The raw filter text to constrain the results.

string filter = 8;

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

clearPageSize()

public ListBuildsRequest.Builder clearPageSize()

Number of results to return in the list.

int32 page_size = 2;

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

clearPageToken()

public ListBuildsRequest.Builder clearPageToken()

The page token for the next page of Builds.

If unspecified, the first page of results is returned.

If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

See https://google.aip.dev/158 for more.

string page_token = 3;

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

clearParent()

public ListBuildsRequest.Builder clearParent()

The parent of the collection of Builds. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

clearProjectId()

public ListBuildsRequest.Builder clearProjectId()

Required. ID of the project.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListBuildsRequest getDefaultInstanceForType()
Returns
Type Description
ListBuildsRequest

getDescriptorForType()

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

getFilter()

public String getFilter()

The raw filter text to constrain the results.

string filter = 8;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

The raw filter text to constrain the results.

string filter = 8;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Number of results to return in the list.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

The page token for the next page of Builds.

If unspecified, the first page of results is returned.

If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

See https://google.aip.dev/158 for more.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

The page token for the next page of Builds.

If unspecified, the first page of results is returned.

If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

See https://google.aip.dev/158 for more.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

The parent of the collection of Builds. Format: projects/{project}/locations/{location}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent of the collection of Builds. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

getProjectId()

public String getProjectId()

Required. ID of the project.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBuildsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFilter(String value)

public ListBuildsRequest.Builder setFilter(String value)

The raw filter text to constrain the results.

string filter = 8;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListBuildsRequest.Builder setFilterBytes(ByteString value)

The raw filter text to constrain the results.

string filter = 8;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListBuildsRequest.Builder setPageSize(int value)

Number of results to return in the list.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListBuildsRequest.Builder setPageToken(String value)

The page token for the next page of Builds.

If unspecified, the first page of results is returned.

If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

See https://google.aip.dev/158 for more.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListBuildsRequest.Builder setPageTokenBytes(ByteString value)

The page token for the next page of Builds.

If unspecified, the first page of results is returned.

If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

See https://google.aip.dev/158 for more.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setParent(String value)

public ListBuildsRequest.Builder setParent(String value)

The parent of the collection of Builds. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListBuildsRequest.Builder setParentBytes(ByteString value)

The parent of the collection of Builds. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setProjectId(String value)

public ListBuildsRequest.Builder setProjectId(String value)

Required. ID of the project.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public ListBuildsRequest.Builder setProjectIdBytes(ByteString value)

Required. ID of the project.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
ListBuildsRequest.Builder

This builder for chaining.