Send feedback
Class Reservation.Builder (1.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.1 keyboard_arrow_down
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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Reservation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Reservation build ()
Returns
buildPartial()
public Reservation buildPartial ()
Returns
clear()
public Reservation . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Reservation . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearName()
public Reservation . Builder clearName ()
The name of the reservation.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Reservation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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;
Returns
clone()
public Reservation . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Reservation getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Reservation other)
public Reservation . Builder mergeFrom ( Reservation other )
Parameter
Returns
public Reservation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Reservation . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Reservation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Reservation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.
Returns
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.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Reservation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Reservation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]