Class SpokeSummary.SpokeStateCount.Builder

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

public static final class SpokeSummary.SpokeStateCount.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpokeSummary.SpokeStateCount.Builder> implements SpokeSummary.SpokeStateCountOrBuilder
 The number of spokes that are in a particular state
 and associated with a given hub.
 
Protobuf type google.cloud.networkconnectivity.v1beta.SpokeSummary.SpokeStateCount
  • 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.SpokeStateCount.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.SpokeStateCount.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.SpokeStateCount.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SpokeSummary.SpokeStateCount.Builder setStateValue(int value)
       Output only. The state of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.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

      public State getState()
       Output only. The state of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface SpokeSummary.SpokeStateCountOrBuilder
      Returns:
      The state.
    • setState

       Output only. The state of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.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 spokes.
       
      .google.cloud.networkconnectivity.v1beta.State state = 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 in this state
       and associated with a given hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCount in interface SpokeSummary.SpokeStateCountOrBuilder
      Returns:
      The count.
    • setCount

      public SpokeSummary.SpokeStateCount.Builder setCount(long value)
       Output only. The total number of spokes that are in this state
       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 in this state
       and associated with a given hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.