Class PatchJobs.CancelPatchJobRequest.Builder (2.85.0)

public static final class PatchJobs.CancelPatchJobRequest.Builder extends GeneratedMessage.Builder<PatchJobs.CancelPatchJobRequest.Builder> implements PatchJobs.CancelPatchJobRequestOrBuilder

Message for canceling a patch job.

Protobuf type google.cloud.osconfig.v1.CancelPatchJobRequest

Static Methods

getDescriptor()

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

Methods

build()

public PatchJobs.CancelPatchJobRequest build()
Returns
Type Description
PatchJobs.CancelPatchJobRequest

buildPartial()

public PatchJobs.CancelPatchJobRequest buildPartial()
Returns
Type Description
PatchJobs.CancelPatchJobRequest

clear()

public PatchJobs.CancelPatchJobRequest.Builder clear()
Returns
Type Description
PatchJobs.CancelPatchJobRequest.Builder
Overrides

clearName()

public PatchJobs.CancelPatchJobRequest.Builder clearName()

Required. Name of the patch in the form projects/*/patchJobs/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PatchJobs.CancelPatchJobRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public PatchJobs.CancelPatchJobRequest getDefaultInstanceForType()
Returns
Type Description
PatchJobs.CancelPatchJobRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the patch in the form projects/*/patchJobs/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the patch in the form projects/*/patchJobs/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchJobs.CancelPatchJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public PatchJobs.CancelPatchJobRequest.Builder setName(String value)

Required. Name of the patch in the form projects/*/patchJobs/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PatchJobs.CancelPatchJobRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PatchJobs.CancelPatchJobRequest.Builder setNameBytes(ByteString value)

Required. Name of the patch in the form projects/*/patchJobs/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PatchJobs.CancelPatchJobRequest.Builder

This builder for chaining.