Class GetHostRequest.Builder (1.109.0)

public static final class GetHostRequest.Builder extends GeneratedMessage.Builder<GetHostRequest.Builder> implements GetHostRequestOrBuilder

A request message for Hosts.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetHostRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetHostRequest build()
Returns
Type Description
GetHostRequest

buildPartial()

public GetHostRequest buildPartial()
Returns
Type Description
GetHostRequest

clear()

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

clearAssociation()

public GetHostRequest.Builder clearAssociation()

The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.

string association = 449371265 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

clearHost()

public GetHostRequest.Builder clearHost()

The name of the host, formatted as RFC1035 or a resource ID number.

string host = 3208616 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

clearProject()

public GetHostRequest.Builder clearProject()

The project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

clearZone()

public GetHostRequest.Builder clearZone()

The name of the zone for this request, formatted as RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

getAssociation()

public String getAssociation()

The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.

string association = 449371265 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The association.

getAssociationBytes()

public ByteString getAssociationBytes()

The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.

string association = 449371265 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for association.

getDefaultInstanceForType()

public GetHostRequest getDefaultInstanceForType()
Returns
Type Description
GetHostRequest

getDescriptorForType()

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

getHost()

public String getHost()

The name of the host, formatted as RFC1035 or a resource ID number.

string host = 3208616 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

The name of the host, formatted as RFC1035 or a resource ID number.

string host = 3208616 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for host.

getProject()

public String getProject()

The project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getZone()

public String getZone()

The name of the zone for this request, formatted as RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The name of the zone for this request, formatted as RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetHostRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAssociation(String value)

public GetHostRequest.Builder setAssociation(String value)

The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.

string association = 449371265 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The association to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setAssociationBytes(ByteString value)

public GetHostRequest.Builder setAssociationBytes(ByteString value)

The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.

string association = 449371265 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for association to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setHost(String value)

public GetHostRequest.Builder setHost(String value)

The name of the host, formatted as RFC1035 or a resource ID number.

string host = 3208616 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The host to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setHostBytes(ByteString value)

public GetHostRequest.Builder setHostBytes(ByteString value)

The name of the host, formatted as RFC1035 or a resource ID number.

string host = 3208616 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setProject(String value)

public GetHostRequest.Builder setProject(String value)

The project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetHostRequest.Builder setProjectBytes(ByteString value)

The project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setZone(String value)

public GetHostRequest.Builder setZone(String value)

The name of the zone for this request, formatted as RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public GetHostRequest.Builder setZoneBytes(ByteString value)

The name of the zone for this request, formatted as RFC1035.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
GetHostRequest.Builder

This builder for chaining.