Class MaintenanceSummary.Aggregate.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MaintenanceSummary.Aggregate.Builder>
com.google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate.Builder
All Implemented Interfaces:
MaintenanceSummary.AggregateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MaintenanceSummary.Aggregate

public static final class MaintenanceSummary.Aggregate.Builder extends com.google.protobuf.GeneratedMessage.Builder<MaintenanceSummary.Aggregate.Builder> implements MaintenanceSummary.AggregateOrBuilder
 Aggregate is a <group, count> pair.
 
Protobuf type google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate
  • 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<MaintenanceSummary.Aggregate.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<MaintenanceSummary.Aggregate.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<MaintenanceSummary.Aggregate.Builder>
    • getDefaultInstanceForType

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

      public MaintenanceSummary.Aggregate.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<MaintenanceSummary.Aggregate.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<MaintenanceSummary.Aggregate.Builder>
    • mergeFrom

      public MaintenanceSummary.Aggregate.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<MaintenanceSummary.Aggregate.Builder>
      Throws:
      IOException
    • getGroup

      public String getGroup()
       Specifies what specific value of the group_by the count represents. For
       example if group_by is `"state"` its corresponding group could be
       `"SCHEDULED"`.
       
      string group = 1;
      Specified by:
      getGroup in interface MaintenanceSummary.AggregateOrBuilder
      Returns:
      The group.
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
       Specifies what specific value of the group_by the count represents. For
       example if group_by is `"state"` its corresponding group could be
       `"SCHEDULED"`.
       
      string group = 1;
      Specified by:
      getGroupBytes in interface MaintenanceSummary.AggregateOrBuilder
      Returns:
      The bytes for group.
    • setGroup

       Specifies what specific value of the group_by the count represents. For
       example if group_by is `"state"` its corresponding group could be
       `"SCHEDULED"`.
       
      string group = 1;
      Parameters:
      value - The group to set.
      Returns:
      This builder for chaining.
    • clearGroup

       Specifies what specific value of the group_by the count represents. For
       example if group_by is `"state"` its corresponding group could be
       `"SCHEDULED"`.
       
      string group = 1;
      Returns:
      This builder for chaining.
    • setGroupBytes

      public MaintenanceSummary.Aggregate.Builder setGroupBytes(com.google.protobuf.ByteString value)
       Specifies what specific value of the group_by the count represents. For
       example if group_by is `"state"` its corresponding group could be
       `"SCHEDULED"`.
       
      string group = 1;
      Parameters:
      value - The bytes for group to set.
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       The count of the group.
       
      int64 count = 2;
      Specified by:
      getCount in interface MaintenanceSummary.AggregateOrBuilder
      Returns:
      The count.
    • setCount

      public MaintenanceSummary.Aggregate.Builder setCount(long value)
       The count of the group.
       
      int64 count = 2;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       The count of the group.
       
      int64 count = 2;
      Returns:
      This builder for chaining.