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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Topic.ReservationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Topic.ReservationConfig build()
Returns
buildPartial()
public Topic.ReservationConfig buildPartial()
Returns
clear()
public Topic.ReservationConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Topic.ReservationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Topic.ReservationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public Topic.ReservationConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Topic.ReservationConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Topic.ReservationConfig other)
public Topic.ReservationConfig.Builder mergeFrom(Topic.ReservationConfig other)
Parameter
Returns
public Topic.ReservationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Topic.ReservationConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Topic.ReservationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Topic.ReservationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Topic.ReservationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final Topic.ReservationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides