Class SpokeSummary.SpokeTypeCount.Builder

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

public static final class SpokeSummary.SpokeTypeCount.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpokeSummary.SpokeTypeCount.Builder> implements SpokeSummary.SpokeTypeCountOrBuilder
 The number of spokes of a given type that are associated
 with a specific hub. The type indicates what kind of
 resource is associated with the spoke.
 
Protobuf type google.cloud.networkconnectivity.v1beta.SpokeSummary.SpokeTypeCount
  • 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.SpokeTypeCount.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.SpokeTypeCount.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.SpokeTypeCount.Builder>
    • getDefaultInstanceForType

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

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

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

      public int getSpokeTypeValue()
       Output only. The type of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSpokeTypeValue in interface SpokeSummary.SpokeTypeCountOrBuilder
      Returns:
      The enum numeric value on the wire for spokeType.
    • setSpokeTypeValue

      public SpokeSummary.SpokeTypeCount.Builder setSpokeTypeValue(int value)
       Output only. The type of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for spokeType to set.
      Returns:
      This builder for chaining.
    • getSpokeType

      public SpokeType getSpokeType()
       Output only. The type of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSpokeType in interface SpokeSummary.SpokeTypeCountOrBuilder
      Returns:
      The spokeType.
    • setSpokeType

      public SpokeSummary.SpokeTypeCount.Builder setSpokeType(SpokeType value)
       Output only. The type of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The spokeType to set.
      Returns:
      This builder for chaining.
    • clearSpokeType

      public SpokeSummary.SpokeTypeCount.Builder clearSpokeType()
       Output only. The type of the spokes.
       
      .google.cloud.networkconnectivity.v1beta.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       Output only. The total number of spokes of this type that are
       associated with the hub.
       
      int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCount in interface SpokeSummary.SpokeTypeCountOrBuilder
      Returns:
      The count.
    • setCount

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