Class PatchJobs.ListPatchJobsResponse.Builder (2.16.0)

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
fieldFieldDescriptor
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder
Overrides

clearNextPageToken()

public PatchJobs.ListPatchJobsResponse.Builder clearNextPageToken()

A pagination token that can be used to get the next page of results.

string next_page_token = 2;

Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPatchJobs()

public PatchJobs.ListPatchJobsResponse.Builder clearPatchJobs()

The list of patch jobs.

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

Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A pagination token that can be used to get the next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A pagination token that can be used to get the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getPatchJobs(int index)

public PatchJobs.PatchJob getPatchJobs(int index)

The list of patch jobs.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchJob

getPatchJobsBuilder(int index)

public PatchJobs.PatchJob.Builder getPatchJobsBuilder(int index)

The list of patch jobs.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchJob.Builder

getPatchJobsBuilderList()

public List<PatchJobs.PatchJob.Builder> getPatchJobsBuilderList()

The list of patch jobs.

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

Returns
TypeDescription
List<Builder>

getPatchJobsCount()

public int getPatchJobsCount()

The list of patch jobs.

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

Returns
TypeDescription
int

getPatchJobsList()

public List<PatchJobs.PatchJob> getPatchJobsList()

The list of patch jobs.

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

Returns
TypeDescription
List<PatchJob>

getPatchJobsOrBuilder(int index)

public PatchJobs.PatchJobOrBuilder getPatchJobsOrBuilder(int index)

The list of patch jobs.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchJobOrBuilder

getPatchJobsOrBuilderList()

public List<? extends PatchJobs.PatchJobOrBuilder> getPatchJobsOrBuilderList()

The list of patch jobs.

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

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.PatchJobs.PatchJobOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.ListPatchJobsResponse other)

public PatchJobs.ListPatchJobsResponse.Builder mergeFrom(PatchJobs.ListPatchJobsResponse other)
Parameter
NameDescription
otherPatchJobs.ListPatchJobsResponse
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePatchJobs(int index)

public PatchJobs.ListPatchJobsResponse.Builder removePatchJobs(int index)

The list of patch jobs.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public PatchJobs.ListPatchJobsResponse.Builder setNextPageToken(String value)

A pagination token that can be used to get the next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public PatchJobs.ListPatchJobsResponse.Builder setNextPageTokenBytes(ByteString value)

A pagination token that can be used to get the next page of results.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
PatchJobs.ListPatchJobsResponse.Builder

This builder for chaining.

setPatchJobs(int index, PatchJobs.PatchJob value)

public PatchJobs.ListPatchJobsResponse.Builder setPatchJobs(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

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

public PatchJobs.ListPatchJobsResponse.Builder setPatchJobs(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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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