public static final class Host.Builder extends GeneratedMessage.Builder<Host.Builder> implements HostOrBuilderRepresents a host resource.
Protobuf type google.cloud.compute.v1.Host
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Host.BuilderImplements
HostOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAliasLinks(String value)
public Host.Builder addAliasLinks(String value)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe aliasLinks to add. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
addAliasLinksBytes(ByteString value)
public Host.Builder addAliasLinksBytes(ByteString value)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the aliasLinks to add. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
addAllAliasLinks(Iterable<String> values)
public Host.Builder addAllAliasLinks(Iterable<String> values)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The aliasLinks to add. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
build()
public Host build()| Returns | |
|---|---|
| Type | Description |
Host |
|
buildPartial()
public Host buildPartial()| Returns | |
|---|---|
| Type | Description |
Host |
|
clear()
public Host.Builder clear()| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
clearAliasLinks()
public Host.Builder clearAliasLinks()Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearCreationTimestamp()
public Host.Builder clearCreationTimestamp()Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearDescription()
public Host.Builder clearDescription()An optional description of this resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearId()
public Host.Builder clearId()Output only. The unique identifier for this resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearKind()
public Host.Builder clearKind()Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearName()
public Host.Builder clearName()Output only. The name of the host.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearSelfLink()
public Host.Builder clearSelfLink()Output only. The self link of the host.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearSelfLinkWithId()
public Host.Builder clearSelfLinkWithId()Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearState()
public Host.Builder clearState()Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
clearStatus()
public Host.Builder clearStatus()Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
clearZone()
public Host.Builder clearZone()Output only. The zone in which the host resides.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
getAliasLinks(int index)
public String getAliasLinks(int index)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The aliasLinks at the given index. |
getAliasLinksBytes(int index)
public ByteString getAliasLinksBytes(int index)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the aliasLinks at the given index. |
getAliasLinksCount()
public int getAliasLinksCount()Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Returns | |
|---|---|
| Type | Description |
int |
The count of aliasLinks. |
getAliasLinksList()
public ProtocolStringList getAliasLinksList()Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the aliasLinks. |
getCreationTimestamp()
public String getCreationTimestamp()Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
String |
The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for creationTimestamp. |
getDefaultInstanceForType()
public Host getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Host |
|
getDescription()
public String getDescription()An optional description of this resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()An optional description of this resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public long getId()Output only. The unique identifier for this resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
long |
The id. |
getKind()
public String getKind()Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes()Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
public String getName()Output only. The name of the host.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Output only. The name of the host.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSelfLink()
public String getSelfLink()Output only. The self link of the host.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()Output only. The self link of the host.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getSelfLinkWithId()
public String getSelfLinkWithId()Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLinkWithId. |
getSelfLinkWithIdBytes()
public ByteString getSelfLinkWithIdBytes()Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLinkWithId. |
getState()
public String getState()Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Returns | |
|---|---|
| Type | Description |
String |
The state. |
getStateBytes()
public ByteString getStateBytes()Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for state. |
getStatus()
public HostStatus getStatus()Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Returns | |
|---|---|
| Type | Description |
HostStatus |
The status. |
getStatusBuilder()
public HostStatus.Builder getStatusBuilder()Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Returns | |
|---|---|
| Type | Description |
HostStatus.Builder |
|
getStatusOrBuilder()
public HostStatusOrBuilder getStatusOrBuilder()Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Returns | |
|---|---|
| Type | Description |
HostStatusOrBuilder |
|
getZone()
public String getZone()Output only. The zone in which the host resides.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()Output only. The zone in which the host resides.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()An optional description of this resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasId()
public boolean hasId()Output only. The unique identifier for this resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the id field is set. |
hasKind()
public boolean hasKind()Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kind field is set. |
hasName()
public boolean hasName()Output only. The name of the host.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the name field is set. |
hasSelfLink()
public boolean hasSelfLink()Output only. The self link of the host.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selfLink field is set. |
hasSelfLinkWithId()
public boolean hasSelfLinkWithId()Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selfLinkWithId field is set. |
hasState()
public boolean hasState()Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the state field is set. |
hasStatus()
public boolean hasStatus()Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the status field is set. |
hasZone()
public boolean hasZone()Output only. The zone in which the host resides.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the zone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Host other)
public Host.Builder mergeFrom(Host other)| Parameter | |
|---|---|
| Name | Description |
other |
Host |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Host.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Host.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
mergeStatus(HostStatus value)
public Host.Builder mergeStatus(HostStatus value)Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Parameter | |
|---|---|
| Name | Description |
value |
HostStatus |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
setAliasLinks(int index, String value)
public Host.Builder setAliasLinks(int index, String value)Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
repeated string alias_links = 296963338;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe aliasLinks to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setCreationTimestamp(String value)
public Host.Builder setCreationTimestamp(String value)Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public Host.Builder setCreationTimestampBytes(ByteString value)Output only. The creation timestamp, formatted asRFC3339 text.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setDescription(String value)
public Host.Builder setDescription(String value)An optional description of this resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Host.Builder setDescriptionBytes(ByteString value)An optional description of this resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setId(long value)
public Host.Builder setId(long value)Output only. The unique identifier for this resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe id to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setKind(String value)
public Host.Builder setKind(String value)Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public Host.Builder setKindBytes(ByteString value)Output only. The type of resource. Alwayscompute#host for hosts.
optional string kind = 3292052;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setName(String value)
public Host.Builder setName(String value)Output only. The name of the host.
optional string name = 3373707;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Host.Builder setNameBytes(ByteString value)Output only. The name of the host.
optional string name = 3373707;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setSelfLink(String value)
public Host.Builder setSelfLink(String value)Output only. The self link of the host.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Host.Builder setSelfLinkBytes(ByteString value)Output only. The self link of the host.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setSelfLinkWithId(String value)
public Host.Builder setSelfLinkWithId(String value)Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLinkWithId to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setSelfLinkWithIdBytes(ByteString value)
public Host.Builder setSelfLinkWithIdBytes(ByteString value)Output only. The self link with id of the host.
optional string self_link_with_id = 44520962;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLinkWithId to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setState(String value)
public Host.Builder setState(String value)Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setStateBytes(ByteString value)
public Host.Builder setStateBytes(ByteString value)Output only. The state of the host. Check the State enum for the list of possible values.
optional string state = 109757585;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for state to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setStatus(HostStatus value)
public Host.Builder setStatus(HostStatus value)Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Parameter | |
|---|---|
| Name | Description |
value |
HostStatus |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
setStatus(HostStatus.Builder builderForValue)
public Host.Builder setStatus(HostStatus.Builder builderForValue)Output only. The status of the host
optional .google.cloud.compute.v1.HostStatus status = 181260274;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
HostStatus.Builder |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
|
setZone(String value)
public Host.Builder setZone(String value)Output only. The zone in which the host resides.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public Host.Builder setZoneBytes(ByteString value)Output only. The zone in which the host resides.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
Host.Builder |
This builder for chaining. |