Class GetReservationRequest.Builder (2.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetReservationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

build()

public GetReservationRequest build()
Returns
TypeDescription
GetReservationRequest

buildPartial()

public GetReservationRequest buildPartial()
Returns
TypeDescription
GetReservationRequest

clear()

public GetReservationRequest.Builder clear()
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetReservationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetReservationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetReservationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

clone()

public GetReservationRequest.Builder clone()
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

getDefaultInstanceForType()

public GetReservationRequest getDefaultInstanceForType()
Returns
TypeDescription
GetReservationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetReservationRequest other)

public GetReservationRequest.Builder mergeFrom(GetReservationRequest other)
Parameter
NameDescription
otherGetReservationRequest
Returns
TypeDescription
GetReservationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetReservationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetReservationRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetReservationRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetReservationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetReservationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetReservationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetReservationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetReservationRequest.Builder
Overrides