Class AggregateUsageResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AggregateUsageResponse.Builder>
com.google.cloud.licensemanager.v1.AggregateUsageResponse.Builder
All Implemented Interfaces:
AggregateUsageResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AggregateUsageResponse

public static final class AggregateUsageResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AggregateUsageResponse.Builder> implements AggregateUsageResponseOrBuilder
 Message for response for aggregating usage count
 
Protobuf type google.cloud.licensemanager.v1.AggregateUsageResponse
  • 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<AggregateUsageResponse.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<AggregateUsageResponse.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<AggregateUsageResponse.Builder>
    • getDefaultInstanceForType

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

      public AggregateUsageResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public AggregateUsageResponse.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<AggregateUsageResponse.Builder>
      Throws:
      IOException
    • getUsagesList

      public List<Usage> getUsagesList()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
      Specified by:
      getUsagesList in interface AggregateUsageResponseOrBuilder
    • getUsagesCount

      public int getUsagesCount()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
      Specified by:
      getUsagesCount in interface AggregateUsageResponseOrBuilder
    • getUsages

      public Usage getUsages(int index)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
      Specified by:
      getUsages in interface AggregateUsageResponseOrBuilder
    • setUsages

      public AggregateUsageResponse.Builder setUsages(int index, Usage value)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • setUsages

      public AggregateUsageResponse.Builder setUsages(int index, Usage.Builder builderForValue)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addUsages

      public AggregateUsageResponse.Builder addUsages(Usage value)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addUsages

      public AggregateUsageResponse.Builder addUsages(int index, Usage value)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addUsages

      public AggregateUsageResponse.Builder addUsages(Usage.Builder builderForValue)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addUsages

      public AggregateUsageResponse.Builder addUsages(int index, Usage.Builder builderForValue)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addAllUsages

      public AggregateUsageResponse.Builder addAllUsages(Iterable<? extends Usage> values)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • clearUsages

      public AggregateUsageResponse.Builder clearUsages()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • removeUsages

      public AggregateUsageResponse.Builder removeUsages(int index)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • getUsagesBuilder

      public Usage.Builder getUsagesBuilder(int index)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • getUsagesOrBuilder

      public UsageOrBuilder getUsagesOrBuilder(int index)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
      Specified by:
      getUsagesOrBuilder in interface AggregateUsageResponseOrBuilder
    • getUsagesOrBuilderList

      public List<? extends UsageOrBuilder> getUsagesOrBuilderList()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
      Specified by:
      getUsagesOrBuilderList in interface AggregateUsageResponseOrBuilder
    • addUsagesBuilder

      public Usage.Builder addUsagesBuilder()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • addUsagesBuilder

      public Usage.Builder addUsagesBuilder(int index)
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • getUsagesBuilderList

      public List<Usage.Builder> getUsagesBuilderList()
       The aggregated records of usage per configuration
       
      repeated .google.cloud.licensemanager.v1.Usage usages = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface AggregateUsageResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface AggregateUsageResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public AggregateUsageResponse.Builder setNextPageToken(String value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public AggregateUsageResponse.Builder clearNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public AggregateUsageResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList getUnreachableList()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface AggregateUsageResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface AggregateUsageResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface AggregateUsageResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.ByteString getUnreachableBytes(int index)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface AggregateUsageResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public AggregateUsageResponse.Builder setUnreachable(int index, String value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public AggregateUsageResponse.Builder addUnreachable(String value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public AggregateUsageResponse.Builder addAllUnreachable(Iterable<String> values)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public AggregateUsageResponse.Builder clearUnreachable()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public AggregateUsageResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.