public static final class Reservation.Builder extends GeneratedMessageV3.Builder<Reservation.Builder> implements ReservationOrBuilder
Metadata about a reservation resource.
Protobuf type google.cloud.pubsublite.v1.Reservation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Reservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Reservation build()
buildPartial()
public Reservation buildPartial()
clear()
public Reservation.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Reservation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Reservation.Builder clearName()
The name of the reservation.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Reservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
clone()
public Reservation.Builder clone()
Overrides
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Reservation other)
public Reservation.Builder mergeFrom(Reservation other)
public Reservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Reservation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Reservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The name to set.
|
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 |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Reservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 |
long
The throughputCapacity to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides