Class DeleteReservationRequest.Builder (1.11.1)

public static final class DeleteReservationRequest.Builder extends GeneratedMessageV3.Builder<DeleteReservationRequest.Builder> implements DeleteReservationRequestOrBuilder

Request for DeleteReservation.

Protobuf type google.cloud.pubsublite.v1.DeleteReservationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteReservationRequest build()
Returns
TypeDescription
DeleteReservationRequest

buildPartial()

public DeleteReservationRequest buildPartial()
Returns
TypeDescription
DeleteReservationRequest

clear()

public DeleteReservationRequest.Builder clear()
Returns
TypeDescription
DeleteReservationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteReservationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteReservationRequest.Builder
Overrides

clearName()

public DeleteReservationRequest.Builder clearName()

Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

Returns
TypeDescription
DeleteReservationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DeleteReservationRequest.Builder clone()
Returns
TypeDescription
DeleteReservationRequest.Builder
Overrides

getDefaultInstanceForType()

public DeleteReservationRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteReservationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

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

public DeleteReservationRequest.Builder mergeFrom(DeleteReservationRequest other)
Parameter
NameDescription
otherDeleteReservationRequest
Returns
TypeDescription
DeleteReservationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteReservationRequest.Builder setName(String value)

Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteReservationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteReservationRequest.Builder setNameBytes(ByteString value)

Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteReservationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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