Class Topic.ReservationConfig (1.14.8)

public static final class Topic.ReservationConfig extends GeneratedMessageV3 implements Topic.ReservationConfigOrBuilder

The settings for this topic's Reservation usage.

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

Static Fields

THROUGHPUT_RESERVATION_FIELD_NUMBER

public static final int THROUGHPUT_RESERVATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Topic.ReservationConfig getDefaultInstance()
Returns
Type Description
Topic.ReservationConfig

getDescriptor()

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

newBuilder()

public static Topic.ReservationConfig.Builder newBuilder()
Returns
Type Description
Topic.ReservationConfig.Builder

newBuilder(Topic.ReservationConfig prototype)

public static Topic.ReservationConfig.Builder newBuilder(Topic.ReservationConfig prototype)
Parameter
Name Description
prototype Topic.ReservationConfig
Returns
Type Description
Topic.ReservationConfig.Builder

parseDelimitedFrom(InputStream input)

public static Topic.ReservationConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Topic.ReservationConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Topic.ReservationConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Topic.ReservationConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Topic.ReservationConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Topic.ReservationConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.ReservationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Topic.ReservationConfig> parser()
Returns
Type Description
Parser<ReservationConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Topic.ReservationConfig> getParserForType()
Returns
Type Description
Parser<ReservationConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Topic.ReservationConfig.Builder newBuilderForType()
Returns
Type Description
Topic.ReservationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Topic.ReservationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Topic.ReservationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Topic.ReservationConfig.Builder toBuilder()
Returns
Type Description
Topic.ReservationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException