Class ListBuildsRequest.Builder (3.46.0)

public static final class ListBuildsRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ListBuildsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListBuildsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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