Class StateTimeline.StateMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder>
com.google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.Builder
All Implemented Interfaces:
StateTimeline.StateMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StateTimeline.StateMetadata

public static final class StateTimeline.StateMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder> implements StateTimeline.StateMetadataOrBuilder
 The state and activation time details of the resource state.
 
Protobuf type google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder>
    • getDefaultInstanceForType

      public StateTimeline.StateMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StateTimeline.StateMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StateTimeline.StateMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StateTimeline.StateMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StateTimeline.StateMetadata.Builder>
    • mergeFrom

      public StateTimeline.StateMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StateTimeline.StateMetadata.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       Output only. The state of the resource.
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface StateTimeline.StateMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public StateTimeline.StateMetadata.Builder setStateValue(int value)
       Output only. The state of the resource.
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. The state of the resource.
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface StateTimeline.StateMetadataOrBuilder
      Returns:
      The state.
    • setState

       Output only. The state of the resource.
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. The state of the resource.
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasEffectiveTime in interface StateTimeline.StateMetadataOrBuilder
      Returns:
      Whether the effectiveTime field is set.
    • getEffectiveTime

      public com.google.protobuf.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];
      Specified by:
      getEffectiveTime in interface StateTimeline.StateMetadataOrBuilder
      Returns:
      The effectiveTime.
    • setEffectiveTime

      public StateTimeline.StateMetadata.Builder setEffectiveTime(com.google.protobuf.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];
    • setEffectiveTime

      public StateTimeline.StateMetadata.Builder setEffectiveTime(com.google.protobuf.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];
    • mergeEffectiveTime

      public StateTimeline.StateMetadata.Builder mergeEffectiveTime(com.google.protobuf.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];
    • 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];
    • getEffectiveTimeBuilder

      public com.google.protobuf.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];
    • getEffectiveTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getEffectiveTimeOrBuilder in interface StateTimeline.StateMetadataOrBuilder