Class StateTimeline.StateMetadata.Builder (1.84.0)

public static final class StateTimeline.StateMetadata.Builder extends GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder> implements StateTimeline.StateMetadataOrBuilder

The state and activation time details of the resource state.

Protobuf type google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata

Static Methods

getDescriptor()

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

Methods

build()

public StateTimeline.StateMetadata build()
Returns
Type Description
StateTimeline.StateMetadata

buildPartial()

public StateTimeline.StateMetadata buildPartial()
Returns
Type Description
StateTimeline.StateMetadata

clear()

public StateTimeline.StateMetadata.Builder clear()
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

clearEffectiveTime()

public StateTimeline.StateMetadata.Builder clearEffectiveTime()

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimeline.StateMetadata.Builder

clearState()

public StateTimeline.StateMetadata.Builder clearState()

Output only. The state of the resource.

.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimeline.StateMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public StateTimeline.StateMetadata getDefaultInstanceForType()
Returns
Type Description
StateTimeline.StateMetadata

getDescriptorForType()

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

getEffectiveTime()

public Timestamp getEffectiveTime()

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeBuilder()

public Timestamp.Builder getEffectiveTimeBuilder()

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEffectiveTimeOrBuilder()

public TimestampOrBuilder getEffectiveTimeOrBuilder()

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public StateTimeline.StateMetadata.State getState()

Output only. The state of the resource.

.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimeline.StateMetadata.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the resource.

.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasEffectiveTime()

public boolean hasEffectiveTime()

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the effectiveTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEffectiveTime(Timestamp value)

public StateTimeline.StateMetadata.Builder mergeEffectiveTime(Timestamp value)

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StateTimeline.StateMetadata.Builder

mergeFrom(StateTimeline.StateMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEffectiveTime(Timestamp value)

public StateTimeline.StateMetadata.Builder setEffectiveTime(Timestamp value)

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StateTimeline.StateMetadata.Builder

setEffectiveTime(Timestamp.Builder builderForValue)

public StateTimeline.StateMetadata.Builder setEffectiveTime(Timestamp.Builder builderForValue)

Output only. Accompanies only the transient states, which include ADDING, DELETING, and SUSPENDING, to denote the time until which the transient state of the resource will be effective. For instance, if the state is ADDING, this field shows the time when the resource state transitions to ACTIVE.

.google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StateTimeline.StateMetadata.Builder

setState(StateTimeline.StateMetadata.State value)

public StateTimeline.StateMetadata.Builder setState(StateTimeline.StateMetadata.State value)

Output only. The state of the resource.

.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StateTimeline.StateMetadata.State

The state to set.

Returns
Type Description
StateTimeline.StateMetadata.Builder

This builder for chaining.

setStateValue(int value)

public StateTimeline.StateMetadata.Builder setStateValue(int value)

Output only. The state of the resource.

.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
StateTimeline.StateMetadata.Builder

This builder for chaining.