public static final class ResourceStatusScheduling.Builder extends GeneratedMessage.Builder<ResourceStatusScheduling.Builder> implements ResourceStatusSchedulingOrBuilder Protobuf type google.cloud.compute.v1.ResourceStatusScheduling
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceStatusScheduling.BuilderImplements
ResourceStatusSchedulingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ResourceStatusScheduling build()| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling |
|
buildPartial()
public ResourceStatusScheduling buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling |
|
clear()
public ResourceStatusScheduling.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
|
clearAvailabilityDomain()
public ResourceStatusScheduling.Builder clearAvailabilityDomain()Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
optional int32 availability_domain = 252514344;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
clearGracefulShutdownTimestamp()
public ResourceStatusScheduling.Builder clearGracefulShutdownTimestamp()Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
clearTerminationTimestamp()
public ResourceStatusScheduling.Builder clearTerminationTimestamp()Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
getAvailabilityDomain()
public int getAvailabilityDomain()Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
optional int32 availability_domain = 252514344;
| Returns | |
|---|---|
| Type | Description |
int |
The availabilityDomain. |
getDefaultInstanceForType()
public ResourceStatusScheduling getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGracefulShutdownTimestamp()
public String getGracefulShutdownTimestamp()Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Returns | |
|---|---|
| Type | Description |
String |
The gracefulShutdownTimestamp. |
getGracefulShutdownTimestampBytes()
public ByteString getGracefulShutdownTimestampBytes()Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gracefulShutdownTimestamp. |
getTerminationTimestamp()
public String getTerminationTimestamp()Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Returns | |
|---|---|
| Type | Description |
String |
The terminationTimestamp. |
getTerminationTimestampBytes()
public ByteString getTerminationTimestampBytes()Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for terminationTimestamp. |
hasAvailabilityDomain()
public boolean hasAvailabilityDomain()Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
optional int32 availability_domain = 252514344;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the availabilityDomain field is set. |
hasGracefulShutdownTimestamp()
public boolean hasGracefulShutdownTimestamp()Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gracefulShutdownTimestamp field is set. |
hasTerminationTimestamp()
public boolean hasTerminationTimestamp()Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the terminationTimestamp field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceStatusScheduling other)
public ResourceStatusScheduling.Builder mergeFrom(ResourceStatusScheduling other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceStatusScheduling |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceStatusScheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceStatusScheduling.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
|
setAvailabilityDomain(int value)
public ResourceStatusScheduling.Builder setAvailabilityDomain(int value)Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
optional int32 availability_domain = 252514344;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe availabilityDomain to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
setGracefulShutdownTimestamp(String value)
public ResourceStatusScheduling.Builder setGracefulShutdownTimestamp(String value)Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gracefulShutdownTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
setGracefulShutdownTimestampBytes(ByteString value)
public ResourceStatusScheduling.Builder setGracefulShutdownTimestampBytes(ByteString value)Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
optional string graceful_shutdown_timestamp = 403022375;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gracefulShutdownTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
setTerminationTimestamp(String value)
public ResourceStatusScheduling.Builder setTerminationTimestamp(String value)Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe terminationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |
setTerminationTimestampBytes(ByteString value)
public ResourceStatusScheduling.Builder setTerminationTimestampBytes(ByteString value)Time in future when the instance will be terminated inRFC3339 text format.
optional string termination_timestamp = 364180891;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for terminationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusScheduling.Builder |
This builder for chaining. |