Class SpokeSummary.SpokeStateReasonCount.Builder

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

public static final class SpokeSummary.SpokeStateReasonCount.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpokeSummary.SpokeStateReasonCount.Builder> implements SpokeSummary.SpokeStateReasonCountOrBuilder
 The number of spokes in the hub that are inactive for this reason.
 
Protobuf type google.cloud.networkconnectivity.v1beta.SpokeSummary.SpokeStateReasonCount
  • 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<SpokeSummary.SpokeStateReasonCount.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<SpokeSummary.SpokeStateReasonCount.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<SpokeSummary.SpokeStateReasonCount.Builder>
    • getDefaultInstanceForType

      public SpokeSummary.SpokeStateReasonCount 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 SpokeSummary.SpokeStateReasonCount buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SpokeSummary.SpokeStateReasonCount.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<SpokeSummary.SpokeStateReasonCount.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<SpokeSummary.SpokeStateReasonCount.Builder>
    • mergeFrom

      public SpokeSummary.SpokeStateReasonCount.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<SpokeSummary.SpokeStateReasonCount.Builder>
      Throws:
      IOException
    • getStateReasonCodeValue

      public int getStateReasonCodeValue()
       Output only. The reason that a spoke is inactive.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateReasonCodeValue in interface SpokeSummary.SpokeStateReasonCountOrBuilder
      Returns:
      The enum numeric value on the wire for stateReasonCode.
    • setStateReasonCodeValue

      public SpokeSummary.SpokeStateReasonCount.Builder setStateReasonCodeValue(int value)
       Output only. The reason that a spoke is inactive.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for stateReasonCode to set.
      Returns:
      This builder for chaining.
    • getStateReasonCode

      public Spoke.StateReason.Code getStateReasonCode()
       Output only. The reason that a spoke is inactive.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateReasonCode in interface SpokeSummary.SpokeStateReasonCountOrBuilder
      Returns:
      The stateReasonCode.
    • setStateReasonCode

       Output only. The reason that a spoke is inactive.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The stateReasonCode to set.
      Returns:
      This builder for chaining.
    • clearStateReasonCode

      public SpokeSummary.SpokeStateReasonCount.Builder clearStateReasonCode()
       Output only. The reason that a spoke is inactive.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       Output only. The total number of spokes that are inactive for a
       particular reason and associated with a given hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCount in interface SpokeSummary.SpokeStateReasonCountOrBuilder
      Returns:
      The count.
    • setCount

      public SpokeSummary.SpokeStateReasonCount.Builder setCount(long value)
       Output only. The total number of spokes that are inactive for a
       particular reason and associated with a given hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       Output only. The total number of spokes that are inactive for a
       particular reason and associated with a given hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.