Class PatchJobs.CancelPatchJobRequest.Builder (2.49.0)

public static final class PatchJobs.CancelPatchJobRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.CancelPatchJobRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.CancelPatchJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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