Class StateTimeline.StateMetadata.Builder (1.73.0)

public static final class StateTimeline.StateMetadata.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StateTimeline.StateMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public StateTimeline.StateMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StateTimeline.StateMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StateTimeline.StateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public StateTimeline.StateMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StateTimeline.StateMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final StateTimeline.StateMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StateTimeline.StateMetadata.Builder
Overrides