public static final class GetReservationRequest.Builder extends GeneratedMessageV3.Builder<GetReservationRequest.Builder> implements GetReservationRequestOrBuilder
Request for GetReservation.
Protobuf type google.cloud.pubsublite.v1.GetReservationRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetReservationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetReservationRequest build()
Returns
buildPartial()
public GetReservationRequest buildPartial()
Returns
clear()
public GetReservationRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetReservationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public GetReservationRequest.Builder clearName()
Required. The name of the reservation whose configuration to return.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetReservationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public GetReservationRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetReservationRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. The name of the reservation whose configuration to return.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The name of the reservation whose configuration to return.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetReservationRequest other)
public GetReservationRequest.Builder mergeFrom(GetReservationRequest other)
Parameter
Returns
public GetReservationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetReservationRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetReservationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetReservationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public GetReservationRequest.Builder setName(String value)
Required. The name of the reservation whose configuration to return.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public GetReservationRequest.Builder setNameBytes(ByteString value)
Required. The name of the reservation whose configuration to return.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetReservationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetReservationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides