public static final class Reservation.Builder extends GeneratedMessage.Builder<Reservation.Builder> implements ReservationOrBuilderMetadata about a reservation resource.
Protobuf type google.cloud.pubsublite.v1.Reservation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Reservation.BuilderImplements
ReservationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Reservation build()| Returns | |
|---|---|
| Type | Description |
Reservation |
|
buildPartial()
public Reservation buildPartial()| Returns | |
|---|---|
| Type | Description |
Reservation |
|
clear()
public Reservation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
|
clearName()
public Reservation.Builder clearName()The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
This builder for chaining. |
clearThroughputCapacity()
public Reservation.Builder clearThroughputCapacity()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 |
Reservation.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Reservation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Reservation other)
public Reservation.Builder mergeFrom(Reservation other)| Parameter | |
|---|---|
| Name | Description |
other |
Reservation |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Reservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Reservation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
|
setName(String value)
public Reservation.Builder setName(String value)The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Reservation.Builder setNameBytes(ByteString value)The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
This builder for chaining. |
setThroughputCapacity(long value)
public Reservation.Builder setThroughputCapacity(long value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe throughputCapacity to set. |
| Returns | |
|---|---|
| Type | Description |
Reservation.Builder |
This builder for chaining. |