public static final class ResourceStatusShutdownDetails.Builder extends GeneratedMessage.Builder<ResourceStatusShutdownDetails.Builder> implements ResourceStatusShutdownDetailsOrBuilder Specifies if the instance is in PENDING_STOP state or there is a
programmed stop scheduled.
Protobuf type google.cloud.compute.v1.ResourceStatusShutdownDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceStatusShutdownDetails.BuilderImplements
ResourceStatusShutdownDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ResourceStatusShutdownDetails build()| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails |
|
buildPartial()
public ResourceStatusShutdownDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails |
|
clear()
public ResourceStatusShutdownDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
clearMaxDuration()
public ResourceStatusShutdownDetails.Builder clearMaxDuration() The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
clearRequestTimestamp()
public ResourceStatusShutdownDetails.Builder clearRequestTimestamp() Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
clearStopState()
public ResourceStatusShutdownDetails.Builder clearStopState()Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
clearTargetState()
public ResourceStatusShutdownDetails.Builder clearTargetState()Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ResourceStatusShutdownDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxDuration()
public Duration getMaxDuration() The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxDuration. |
getMaxDurationBuilder()
public Duration.Builder getMaxDurationBuilder() The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
Duration.Builder |
|
getMaxDurationOrBuilder()
public DurationOrBuilder getMaxDurationOrBuilder() The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getRequestTimestamp()
public String getRequestTimestamp() Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Returns | |
|---|---|
| Type | Description |
String |
The requestTimestamp. |
getRequestTimestampBytes()
public ByteString getRequestTimestampBytes() Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for requestTimestamp. |
getStopState()
public String getStopState()Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Returns | |
|---|---|
| Type | Description |
String |
The stopState. |
getStopStateBytes()
public ByteString getStopStateBytes()Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for stopState. |
getTargetState()
public String getTargetState()Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Returns | |
|---|---|
| Type | Description |
String |
The targetState. |
getTargetStateBytes()
public ByteString getTargetStateBytes()Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetState. |
hasMaxDuration()
public boolean hasMaxDuration() The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxDuration field is set. |
hasRequestTimestamp()
public boolean hasRequestTimestamp() Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the requestTimestamp field is set. |
hasStopState()
public boolean hasStopState()Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the stopState field is set. |
hasTargetState()
public boolean hasTargetState()Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the targetState field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceStatusShutdownDetails other)
public ResourceStatusShutdownDetails.Builder mergeFrom(ResourceStatusShutdownDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceStatusShutdownDetails |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceStatusShutdownDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceStatusShutdownDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
mergeMaxDuration(Duration value)
public ResourceStatusShutdownDetails.Builder mergeMaxDuration(Duration value) The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
setMaxDuration(Duration value)
public ResourceStatusShutdownDetails.Builder setMaxDuration(Duration value) The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
setMaxDuration(Duration.Builder builderForValue)
public ResourceStatusShutdownDetails.Builder setMaxDuration(Duration.Builder builderForValue) The duration for graceful shutdown. Only applicable when
stop_state=PENDING_STOP.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Duration.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
|
setRequestTimestamp(String value)
public ResourceStatusShutdownDetails.Builder setRequestTimestamp(String value) Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe requestTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
setRequestTimestampBytes(ByteString value)
public ResourceStatusShutdownDetails.Builder setRequestTimestampBytes(ByteString value) Past timestamp indicating the beginning of current stopState in RFC3339 text format.
optional string request_timestamp = 521301862;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for requestTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
setStopState(String value)
public ResourceStatusShutdownDetails.Builder setStopState(String value)Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe stopState to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
setStopStateBytes(ByteString value)
public ResourceStatusShutdownDetails.Builder setStopStateBytes(ByteString value)Current stopping state of the instance. Check the StopState enum for the list of possible values.
optional string stop_state = 67347988;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for stopState to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
setTargetState(String value)
public ResourceStatusShutdownDetails.Builder setTargetState(String value)Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetState to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |
setTargetStateBytes(ByteString value)
public ResourceStatusShutdownDetails.Builder setTargetStateBytes(ByteString value)Target instance state. Check the TargetState enum for the list of possible values.
optional string target_state = 338978915;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetState to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceStatusShutdownDetails.Builder |
This builder for chaining. |