Class GetHealthReservationSlotRequest.Builder (1.109.0)

public static final class GetHealthReservationSlotRequest.Builder extends GeneratedMessage.Builder<GetHealthReservationSlotRequest.Builder> implements GetHealthReservationSlotRequestOrBuilder

A request message for ReservationSlots.GetHealth. See the method description for details.

Protobuf type google.cloud.compute.v1.GetHealthReservationSlotRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetHealthReservationSlotRequest build()
Returns
Type Description
GetHealthReservationSlotRequest

buildPartial()

public GetHealthReservationSlotRequest buildPartial()
Returns
Type Description
GetHealthReservationSlotRequest

clear()

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

clearParentName()

public GetHealthReservationSlotRequest.Builder clearParentName()

The name of the parent reservation, parent block and parent sub-block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}

string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

clearProject()

public GetHealthReservationSlotRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

clearRequestId()

public GetHealthReservationSlotRequest.Builder clearRequestId()

An optional request ID to identify requests.

optional string request_id = 37109963;

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

clearReservationSlot()

public GetHealthReservationSlotRequest.Builder clearReservationSlot()

The name of the reservation slot. Name should conform to RFC1035 or be a resource ID.

string reservation_slot = 277470865 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

clearZone()

public GetHealthReservationSlotRequest.Builder clearZone()

Name of the zone for this request. Zone name should conform to RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetHealthReservationSlotRequest getDefaultInstanceForType()
Returns
Type Description
GetHealthReservationSlotRequest

getDescriptorForType()

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

getParentName()

public String getParentName()

The name of the parent reservation, parent block and parent sub-block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}

string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parentName.

getParentNameBytes()

public ByteString getParentNameBytes()

The name of the parent reservation, parent block and parent sub-block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}

string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parentName.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
ByteString

The bytes for project.

getRequestId()

public String getRequestId()

An optional request ID to identify requests.

optional string request_id = 37109963;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

An optional request ID to identify requests.

optional string request_id = 37109963;

Returns
Type Description
ByteString

The bytes for requestId.

getReservationSlot()

public String getReservationSlot()

The name of the reservation slot. Name should conform to RFC1035 or be a resource ID.

string reservation_slot = 277470865 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The reservationSlot.

getReservationSlotBytes()

public ByteString getReservationSlotBytes()

The name of the reservation slot. Name should conform to RFC1035 or be a resource ID.

string reservation_slot = 277470865 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for reservationSlot.

getZone()

public String getZone()

Name of the zone for this request. Zone name should conform to RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Name of the zone for this request. Zone name should conform to RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];

Returns
Type Description
ByteString

The bytes for zone.

hasRequestId()

public boolean hasRequestId()

An optional request ID to identify requests.

optional string request_id = 37109963;

Returns
Type Description
boolean

Whether the requestId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetHealthReservationSlotRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setParentName(String value)

public GetHealthReservationSlotRequest.Builder setParentName(String value)

The name of the parent reservation, parent block and parent sub-block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}

string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parentName to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setParentNameBytes(ByteString value)

public GetHealthReservationSlotRequest.Builder setParentNameBytes(ByteString value)

The name of the parent reservation, parent block and parent sub-block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}

string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parentName to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setProject(String value)

public GetHealthReservationSlotRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetHealthReservationSlotRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setRequestId(String value)

public GetHealthReservationSlotRequest.Builder setRequestId(String value)

An optional request ID to identify requests.

optional string request_id = 37109963;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public GetHealthReservationSlotRequest.Builder setRequestIdBytes(ByteString value)

An optional request ID to identify requests.

optional string request_id = 37109963;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setReservationSlot(String value)

public GetHealthReservationSlotRequest.Builder setReservationSlot(String value)

The name of the reservation slot. Name should conform to RFC1035 or be a resource ID.

string reservation_slot = 277470865 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The reservationSlot to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setReservationSlotBytes(ByteString value)

public GetHealthReservationSlotRequest.Builder setReservationSlotBytes(ByteString value)

The name of the reservation slot. Name should conform to RFC1035 or be a resource ID.

string reservation_slot = 277470865 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for reservationSlot to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setZone(String value)

public GetHealthReservationSlotRequest.Builder setZone(String value)

Name of the zone for this request. Zone name should conform to RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public GetHealthReservationSlotRequest.Builder setZoneBytes(ByteString value)

Name of the zone for this request. Zone name should conform to RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
GetHealthReservationSlotRequest.Builder

This builder for chaining.