Class CreateTimeSeriesSummary.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateTimeSeriesSummary.Builder>
com.google.monitoring.v3.CreateTimeSeriesSummary.Builder
All Implemented Interfaces:
CreateTimeSeriesSummaryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateTimeSeriesSummary

public static final class CreateTimeSeriesSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateTimeSeriesSummary.Builder> implements CreateTimeSeriesSummaryOrBuilder
 Summary of the result of a failed request to write data to a time series.
 
Protobuf type google.monitoring.v3.CreateTimeSeriesSummary
  • 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<CreateTimeSeriesSummary.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<CreateTimeSeriesSummary.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<CreateTimeSeriesSummary.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateTimeSeriesSummary.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<CreateTimeSeriesSummary.Builder>
      Throws:
      IOException
    • getTotalPointCount

      public int getTotalPointCount()
       The number of points in the request.
       
      int32 total_point_count = 1;
      Specified by:
      getTotalPointCount in interface CreateTimeSeriesSummaryOrBuilder
      Returns:
      The totalPointCount.
    • setTotalPointCount

      public CreateTimeSeriesSummary.Builder setTotalPointCount(int value)
       The number of points in the request.
       
      int32 total_point_count = 1;
      Parameters:
      value - The totalPointCount to set.
      Returns:
      This builder for chaining.
    • clearTotalPointCount

      public CreateTimeSeriesSummary.Builder clearTotalPointCount()
       The number of points in the request.
       
      int32 total_point_count = 1;
      Returns:
      This builder for chaining.
    • getSuccessPointCount

      public int getSuccessPointCount()
       The number of points that were successfully written.
       
      int32 success_point_count = 2;
      Specified by:
      getSuccessPointCount in interface CreateTimeSeriesSummaryOrBuilder
      Returns:
      The successPointCount.
    • setSuccessPointCount

      public CreateTimeSeriesSummary.Builder setSuccessPointCount(int value)
       The number of points that were successfully written.
       
      int32 success_point_count = 2;
      Parameters:
      value - The successPointCount to set.
      Returns:
      This builder for chaining.
    • clearSuccessPointCount

      public CreateTimeSeriesSummary.Builder clearSuccessPointCount()
       The number of points that were successfully written.
       
      int32 success_point_count = 2;
      Returns:
      This builder for chaining.
    • getErrorsList

      public List<CreateTimeSeriesSummary.Error> getErrorsList()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
      Specified by:
      getErrorsList in interface CreateTimeSeriesSummaryOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
      Specified by:
      getErrorsCount in interface CreateTimeSeriesSummaryOrBuilder
    • getErrors

      public CreateTimeSeriesSummary.Error getErrors(int index)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
      Specified by:
      getErrors in interface CreateTimeSeriesSummaryOrBuilder
    • setErrors

      public CreateTimeSeriesSummary.Builder setErrors(int index, CreateTimeSeriesSummary.Error value)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • setErrors

      public CreateTimeSeriesSummary.Builder setErrors(int index, CreateTimeSeriesSummary.Error.Builder builderForValue)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addErrors

       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addErrors

      public CreateTimeSeriesSummary.Builder addErrors(int index, CreateTimeSeriesSummary.Error value)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addErrors

       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addErrors

      public CreateTimeSeriesSummary.Builder addErrors(int index, CreateTimeSeriesSummary.Error.Builder builderForValue)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addAllErrors

       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • clearErrors

      public CreateTimeSeriesSummary.Builder clearErrors()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • removeErrors

      public CreateTimeSeriesSummary.Builder removeErrors(int index)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • getErrorsBuilder

      public CreateTimeSeriesSummary.Error.Builder getErrorsBuilder(int index)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • getErrorsOrBuilder

      public CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder(int index)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
      Specified by:
      getErrorsOrBuilder in interface CreateTimeSeriesSummaryOrBuilder
    • getErrorsOrBuilderList

      public List<? extends CreateTimeSeriesSummary.ErrorOrBuilder> getErrorsOrBuilderList()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
      Specified by:
      getErrorsOrBuilderList in interface CreateTimeSeriesSummaryOrBuilder
    • addErrorsBuilder

      public CreateTimeSeriesSummary.Error.Builder addErrorsBuilder()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • addErrorsBuilder

      public CreateTimeSeriesSummary.Error.Builder addErrorsBuilder(int index)
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;
    • getErrorsBuilderList

      public List<CreateTimeSeriesSummary.Error.Builder> getErrorsBuilderList()
       The number of points that failed to be written. Order is not guaranteed.
       
      repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3;