Class CancelOperationRequest.Builder (2.44.0)

public static final class CancelOperationRequest.Builder extends GeneratedMessageV3.Builder<CancelOperationRequest.Builder> implements CancelOperationRequestOrBuilder

The request message for Operations.CancelOperation.

Protobuf type google.longrunning.CancelOperationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CancelOperationRequest build()
Returns
Type Description
CancelOperationRequest

buildPartial()

public CancelOperationRequest buildPartial()
Returns
Type Description
CancelOperationRequest

clear()

public CancelOperationRequest.Builder clear()
Returns
Type Description
CancelOperationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CancelOperationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CancelOperationRequest.Builder
Overrides

clearName()

public CancelOperationRequest.Builder clearName()

The name of the operation resource to be cancelled.

string name = 1;

Returns
Type Description
CancelOperationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CancelOperationRequest.Builder clone()
Returns
Type Description
CancelOperationRequest.Builder
Overrides

getDefaultInstanceForType()

public CancelOperationRequest getDefaultInstanceForType()
Returns
Type Description
CancelOperationRequest

getDescriptorForType()

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

getName()

public String getName()

The name of the operation resource to be cancelled.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the operation resource to be cancelled.

string name = 1;

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(CancelOperationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CancelOperationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CancelOperationRequest.Builder
Overrides

setName(String value)

public CancelOperationRequest.Builder setName(String value)

The name of the operation resource to be cancelled.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CancelOperationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CancelOperationRequest.Builder setNameBytes(ByteString value)

The name of the operation resource to be cancelled.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CancelOperationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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