Class ListBuildsResponse.Builder (3.50.0)

public static final class ListBuildsResponse.Builder extends GeneratedMessageV3.Builder<ListBuildsResponse.Builder> implements ListBuildsResponseOrBuilder

Response including listed builds.

Protobuf type google.devtools.cloudbuild.v1.ListBuildsResponse

Static Methods

getDescriptor()

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

Methods

addAllBuilds(Iterable<? extends Build> values)

public ListBuildsResponse.Builder addAllBuilds(Iterable<? extends Build> values)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloudbuild.v1.Build>
Returns
Type Description
ListBuildsResponse.Builder

addBuilds(Build value)

public ListBuildsResponse.Builder addBuilds(Build value)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
value Build
Returns
Type Description
ListBuildsResponse.Builder

addBuilds(Build.Builder builderForValue)

public ListBuildsResponse.Builder addBuilds(Build.Builder builderForValue)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
builderForValue Build.Builder
Returns
Type Description
ListBuildsResponse.Builder

addBuilds(int index, Build value)

public ListBuildsResponse.Builder addBuilds(int index, Build value)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameters
Name Description
index int
value Build
Returns
Type Description
ListBuildsResponse.Builder

addBuilds(int index, Build.Builder builderForValue)

public ListBuildsResponse.Builder addBuilds(int index, Build.Builder builderForValue)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameters
Name Description
index int
builderForValue Build.Builder
Returns
Type Description
ListBuildsResponse.Builder

addBuildsBuilder()

public Build.Builder addBuildsBuilder()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
Build.Builder

addBuildsBuilder(int index)

public Build.Builder addBuildsBuilder(int index)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
index int
Returns
Type Description
Build.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBuildsResponse build()
Returns
Type Description
ListBuildsResponse

buildPartial()

public ListBuildsResponse buildPartial()
Returns
Type Description
ListBuildsResponse

clear()

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

clearBuilds()

public ListBuildsResponse.Builder clearBuilds()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
ListBuildsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBuildsResponse.Builder clearNextPageToken()

Token to receive the next page of results. This will be absent if the end of the response list has been reached.

string next_page_token = 2;

Returns
Type Description
ListBuildsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBuilds(int index)

public Build getBuilds(int index)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
index int
Returns
Type Description
Build

getBuildsBuilder(int index)

public Build.Builder getBuildsBuilder(int index)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
index int
Returns
Type Description
Build.Builder

getBuildsBuilderList()

public List<Build.Builder> getBuildsBuilderList()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
List<Builder>

getBuildsCount()

public int getBuildsCount()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
int

getBuildsList()

public List<Build> getBuildsList()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
List<Build>

getBuildsOrBuilder(int index)

public BuildOrBuilder getBuildsOrBuilder(int index)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
index int
Returns
Type Description
BuildOrBuilder

getBuildsOrBuilderList()

public List<? extends BuildOrBuilder> getBuildsOrBuilderList()

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Returns
Type Description
List<? extends com.google.cloudbuild.v1.BuildOrBuilder>

getDefaultInstanceForType()

public ListBuildsResponse getDefaultInstanceForType()
Returns
Type Description
ListBuildsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to receive the next page of results. This will be absent if the end of the response list has been reached.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to receive the next page of results. This will be absent if the end of the response list has been reached.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBuildsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBuilds(int index)

public ListBuildsResponse.Builder removeBuilds(int index)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBuildsResponse.Builder

setBuilds(int index, Build value)

public ListBuildsResponse.Builder setBuilds(int index, Build value)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameters
Name Description
index int
value Build
Returns
Type Description
ListBuildsResponse.Builder

setBuilds(int index, Build.Builder builderForValue)

public ListBuildsResponse.Builder setBuilds(int index, Build.Builder builderForValue)

Builds will be sorted by create_time, descending.

repeated .google.devtools.cloudbuild.v1.Build builds = 1;

Parameters
Name Description
index int
builderForValue Build.Builder
Returns
Type Description
ListBuildsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBuildsResponse.Builder setNextPageToken(String value)

Token to receive the next page of results. This will be absent if the end of the response list has been reached.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBuildsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBuildsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to receive the next page of results. This will be absent if the end of the response list has been reached.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBuildsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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