Class GetReservationRequest.Builder (2.43.0)

public static final class GetReservationRequest.Builder extends GeneratedMessageV3.Builder<GetReservationRequest.Builder> implements GetReservationRequestOrBuilder

The request for ReservationService.GetReservation.

Protobuf type google.cloud.bigquery.reservation.v1.GetReservationRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetReservationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetReservationRequest.Builder
Overrides

build()

public GetReservationRequest build()
Returns
Type Description
GetReservationRequest

buildPartial()

public GetReservationRequest buildPartial()
Returns
Type Description
GetReservationRequest

clear()

public GetReservationRequest.Builder clear()
Returns
Type Description
GetReservationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetReservationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetReservationRequest.Builder
Overrides

clearName()

public GetReservationRequest.Builder clearName()

Required. Resource name of the reservation to retrieve. E.g., projects/myproject/locations/US/reservations/team1-prod

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetReservationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetReservationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetReservationRequest.Builder
Overrides

clone()

public GetReservationRequest.Builder clone()
Returns
Type Description
GetReservationRequest.Builder
Overrides

getDefaultInstanceForType()

public GetReservationRequest getDefaultInstanceForType()
Returns
Type Description
GetReservationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Resource name of the reservation to retrieve. E.g., projects/myproject/locations/US/reservations/team1-prod

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the reservation to retrieve. E.g., projects/myproject/locations/US/reservations/team1-prod

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetReservationRequest other)

public GetReservationRequest.Builder mergeFrom(GetReservationRequest other)
Parameter
Name Description
other GetReservationRequest
Returns
Type Description
GetReservationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetReservationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetReservationRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetReservationRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetReservationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetReservationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetReservationRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetReservationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetReservationRequest.Builder
Overrides

setName(String value)

public GetReservationRequest.Builder setName(String value)

Required. Resource name of the reservation to retrieve. E.g., projects/myproject/locations/US/reservations/team1-prod

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetReservationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetReservationRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the reservation to retrieve. E.g., projects/myproject/locations/US/reservations/team1-prod

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetReservationRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetReservationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetReservationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetReservationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetReservationRequest.Builder
Overrides