Class PatchJobs.ListPatchJobsResponse.Builder (2.5.6)

public static final class PatchJobs.ListPatchJobsResponse.Builder extends GeneratedMessageV3.Builder<PatchJobs.ListPatchJobsResponse.Builder> implements PatchJobs.ListPatchJobsResponseOrBuilder

A response message for listing patch jobs.

Protobuf type google.cloud.osconfig.v1.ListPatchJobsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPatchJobs(Iterable<? extends PatchJobs.PatchJob> values)

public PatchJobs.ListPatchJobsResponse.Builder addAllPatchJobs(Iterable<? extends PatchJobs.PatchJob> values)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

addPatchJobs(PatchJobs.PatchJob value)

public PatchJobs.ListPatchJobsResponse.Builder addPatchJobs(PatchJobs.PatchJob value)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameter
NameDescription
valuePatchJobs.PatchJob
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

addPatchJobs(PatchJobs.PatchJob.Builder builderForValue)

public PatchJobs.ListPatchJobsResponse.Builder addPatchJobs(PatchJobs.PatchJob.Builder builderForValue)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameter
NameDescription
builderForValuePatchJobs.PatchJob.Builder
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

addPatchJobs(int index, PatchJobs.PatchJob value)

public PatchJobs.ListPatchJobsResponse.Builder addPatchJobs(int index, PatchJobs.PatchJob value)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameters
NameDescription
indexint
valuePatchJobs.PatchJob
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

addPatchJobs(int index, PatchJobs.PatchJob.Builder builderForValue)

public PatchJobs.ListPatchJobsResponse.Builder addPatchJobs(int index, PatchJobs.PatchJob.Builder builderForValue)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameters
NameDescription
indexint
builderForValuePatchJobs.PatchJob.Builder
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

addPatchJobsBuilder()

public PatchJobs.PatchJob.Builder addPatchJobsBuilder()

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Returns
TypeDescription
PatchJobs.PatchJob.Builder

addPatchJobsBuilder(int index)

public PatchJobs.PatchJob.Builder addPatchJobsBuilder(int index)

The list of patch jobs.

repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchJob.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchJobs.ListPatchJobsResponse build()
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse

buildPartial()

public PatchJobs.ListPatchJobsResponse buildPartial()
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse

clear()

public PatchJobs.ListPatchJobsResponse.Builder clear()
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.ListPatchJobsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription