Class Topic.ReservationConfig.Builder (1.13.8)

public static final class Topic.ReservationConfig.Builder extends GeneratedMessageV3.Builder<Topic.ReservationConfig.Builder> implements Topic.ReservationConfigOrBuilder

The settings for this topic's Reservation usage.

Protobuf type google.cloud.pubsublite.v1.Topic.ReservationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Topic.ReservationConfig build()
Returns
Type Description
Topic.ReservationConfig

buildPartial()

public Topic.ReservationConfig buildPartial()
Returns
Type Description
Topic.ReservationConfig

clear()

public Topic.ReservationConfig.Builder clear()
Returns
Type Description
Topic.ReservationConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThroughputReservation()

public Topic.ReservationConfig.Builder clearThroughputReservation()

The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

string throughput_reservation = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
Topic.ReservationConfig.Builder

This builder for chaining.

clone()

public Topic.ReservationConfig.Builder clone()
Returns
Type Description
Topic.ReservationConfig.Builder
Overrides

getDefaultInstanceForType()

public Topic.ReservationConfig getDefaultInstanceForType()
Returns
Type Description
Topic.ReservationConfig

getDescriptorForType()

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

getThroughputReservation()

public String getThroughputReservation()

The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

string throughput_reservation = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The throughputReservation.

getThroughputReservationBytes()

public ByteString getThroughputReservationBytes()

The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

string throughput_reservation = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for throughputReservation.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Topic.ReservationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setThroughputReservation(String value)

public Topic.ReservationConfig.Builder setThroughputReservation(String value)

The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

string throughput_reservation = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The throughputReservation to set.

Returns
Type Description
Topic.ReservationConfig.Builder

This builder for chaining.

setThroughputReservationBytes(ByteString value)

public Topic.ReservationConfig.Builder setThroughputReservationBytes(ByteString value)

The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

string throughput_reservation = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for throughputReservation to set.

Returns
Type Description
Topic.ReservationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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