public final class Reservation extends GeneratedMessageV3 implements ReservationOrBuilder
Metadata about a reservation resource.
Protobuf type google.cloud.pubsublite.v1.Reservation
Static Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
THROUGHPUT_CAPACITY_FIELD_NUMBER
public static final int THROUGHPUT_CAPACITY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Reservation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Reservation.Builder newBuilder()
Returns
newBuilder(Reservation prototype)
public static Reservation.Builder newBuilder(Reservation prototype)
Parameter
Returns
public static Reservation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Reservation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Reservation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Reservation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Reservation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Reservation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Reservation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Reservation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Reservation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Reservation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType()
Returns
getName()
The name of the reservation.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of the reservation.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
Returns
getParserForType()
public Parser<Reservation> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getThroughputCapacity()
public long getThroughputCapacity()
The reserved throughput capacity. Every unit of throughput capacity is
equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
messages.
Any topics which are declared as using capacity from a Reservation will
consume resources from this reservation instead of being charged
individually.
int64 throughput_capacity = 2;
Returns
Type | Description |
long | The throughputCapacity.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Reservation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Reservation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Reservation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions