Class ListBuildsRequest.Builder (3.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBuildsRequest build()
Returns
TypeDescription
ListBuildsRequest

buildPartial()

public ListBuildsRequest buildPartial()
Returns
TypeDescription
ListBuildsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListBuildsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListBuildsRequest.Builder
Overrides

clearFilter()

public ListBuildsRequest.Builder clearFilter()

The raw filter text to constrain the results.

string filter = 8;

Returns
TypeDescription
ListBuildsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListBuildsRequest.Builder clearPageSize()

Number of results to return in the list.

int32 page_size = 2;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListBuildsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListBuildsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilter()

public String getFilter()

The raw filter text to constrain the results.

string filter = 8;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

The raw filter text to constrain the results.

string filter = 8;

Returns
TypeDescription
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Number of results to return in the list.

int32 page_size = 2;

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

The bytes for parent.

getProjectId()

public String getProjectId()

Required. ID of the project.

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

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project.

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

Returns
TypeDescription
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBuildsRequest other)

public ListBuildsRequest.Builder mergeFrom(ListBuildsRequest other)
Parameter
NameDescription
otherListBuildsRequest
Returns
TypeDescription
ListBuildsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ListBuildsRequest.Builder setFilter(String value)

The raw filter text to constrain the results.

string filter = 8;

Parameter
NameDescription
valueString

The filter to set.

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

The bytes for filter to set.

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

The pageSize to set.

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

The pageToken to set.

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

The bytes for pageToken to set.

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

The parent to set.

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

The bytes for parent to set.

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

The projectId to set.

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

The bytes for projectId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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