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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public StateTimeline.StateMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StateTimeline.StateMetadata build()
public StateTimeline.StateMetadata buildPartial()
public StateTimeline.StateMetadata.Builder clear()
Overrides
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];
public StateTimeline.StateMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public StateTimeline.StateMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public StateTimeline.StateMetadata.Builder clone()
Overrides
public StateTimeline.StateMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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];
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];
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];
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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];
public StateTimeline.StateMetadata.Builder mergeFrom(StateTimeline.StateMetadata other)
public StateTimeline.StateMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public StateTimeline.StateMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final StateTimeline.StateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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
|
public StateTimeline.StateMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StateTimeline.StateMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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.
|
public final StateTimeline.StateMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides