Class Topic.ReservationConfig.Builder (1.11.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Topic.ReservationConfig build()
Returns
TypeDescription
Topic.ReservationConfig

buildPartial()

public Topic.ReservationConfig buildPartial()
Returns
TypeDescription
Topic.ReservationConfig

clear()

public Topic.ReservationConfig.Builder clear()
Returns
TypeDescription
Topic.ReservationConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Topic.ReservationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Topic.ReservationConfig.Builder

This builder for chaining.

clone()

public Topic.ReservationConfig.Builder clone()
Returns
TypeDescription
Topic.ReservationConfig.Builder
Overrides

getDefaultInstanceForType()

public Topic.ReservationConfig getDefaultInstanceForType()
Returns
TypeDescription
Topic.ReservationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for throughputReservation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Topic.ReservationConfig other)

public Topic.ReservationConfig.Builder mergeFrom(Topic.ReservationConfig other)
Parameter
NameDescription
otherTopic.ReservationConfig
Returns
TypeDescription
Topic.ReservationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Topic.ReservationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The throughputReservation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for throughputReservation to set.

Returns
TypeDescription
Topic.ReservationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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