Class Topic.ReservationConfig (1.6.3)

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

Static Methods

getDefaultInstance()

public static Topic.ReservationConfig getDefaultInstance()
Returns
TypeDescription
Topic.ReservationConfig

getDescriptor()

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

newBuilder()

public static Topic.ReservationConfig.Builder newBuilder()
Returns
TypeDescription
Topic.ReservationConfig.Builder

newBuilder(Topic.ReservationConfig prototype)

public static Topic.ReservationConfig.Builder newBuilder(Topic.ReservationConfig prototype)
Parameter
NameDescription
prototypeTopic.ReservationConfig
Returns
TypeDescription
Topic.ReservationConfig.Builder

parseDelimitedFrom(InputStream input)

public static Topic.ReservationConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Topic.ReservationConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Topic.ReservationConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Topic.ReservationConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Topic.ReservationConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Topic.ReservationConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Topic.ReservationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.ReservationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Topic.ReservationConfig.Builder newBuilderForType()
Returns
TypeDescription
Topic.ReservationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Topic.ReservationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Topic.ReservationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Topic.ReservationConfig.Builder toBuilder()
Returns
TypeDescription
Topic.ReservationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException