public final class Reservation extends GeneratedMessageV3 implements ReservationOrBuilder
Metadata about a reservation resource.
Protobuf type google.cloud.pubsublite.v1.Reservation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReservationImplements
ReservationOrBuilderStatic Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
THROUGHPUT_CAPACITY_FIELD_NUMBER
public static final int THROUGHPUT_CAPACITY_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Reservation getDefaultInstance()
Type | Description |
Reservation |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Reservation.Builder newBuilder()
Type | Description |
Reservation.Builder |
newBuilder(Reservation prototype)
public static Reservation.Builder newBuilder(Reservation prototype)
Name | Description |
prototype | Reservation |
Type | Description |
Reservation.Builder |
parseDelimitedFrom(InputStream input)
public static Reservation parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Reservation |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Reservation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Reservation parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Reservation parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Reservation parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Reservation |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Reservation parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Reservation |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Reservation parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Reservation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Reservation |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Reservation> parser()
Type | Description |
Parser<Reservation> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType()
Type | Description |
Reservation |
getName()
public String getName()
The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
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;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Reservation> getParserForType()
Type | Description |
Parser<Reservation> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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;
Type | Description |
long | The throughputCapacity. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Reservation.Builder newBuilderForType()
Type | Description |
Reservation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Reservation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Reservation.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Reservation.Builder toBuilder()
Type | Description |
Reservation.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |