Class ListBuildsResponse.Builder (3.14.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.Build>
Returns
TypeDescription
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
NameDescription
valueBuild
Returns
TypeDescription
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
NameDescription
builderForValueBuild.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBuild
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuild.Builder
Returns
TypeDescription
ListBuildsResponse.Builder

addBuildsBuilder()

public Build.Builder addBuildsBuilder()

Builds will be sorted by create_time, descending.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Build.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBuildsResponse build()
Returns
TypeDescription
ListBuildsResponse

buildPartial()

public ListBuildsResponse buildPartial()
Returns
TypeDescription
ListBuildsResponse

clear()

public ListBuildsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListBuildsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListBuildsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getBuildsCount()

public int getBuildsCount()

Builds will be sorted by create_time, descending.

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

Returns
TypeDescription
int

getBuildsList()

public List<Build> getBuildsList()

Builds will be sorted by create_time, descending.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BuildOrBuilder

getBuildsOrBuilderList()

public List<? extends BuildOrBuilder> getBuildsOrBuilderList()

Builds will be sorted by create_time, descending.

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

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

getDefaultInstanceForType()

public ListBuildsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBuildsResponse

getDescriptorForType()

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

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBuildsResponse other)

public ListBuildsResponse.Builder mergeFrom(ListBuildsResponse other)
Parameter
NameDescription
otherListBuildsResponse
Returns
TypeDescription
ListBuildsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBuildsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBuild
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuild.Builder
Returns
TypeDescription
ListBuildsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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