Class PatchJobs.CancelPatchJobRequest.Builder (2.25.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.v1beta.CancelPatchJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

Returns
TypeDescription
PatchJobs.CancelPatchJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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];

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.CancelPatchJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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