Class ListTimeSeriesResponse.Builder

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

public static final class ListTimeSeriesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListTimeSeriesResponse.Builder> implements ListTimeSeriesResponseOrBuilder
 The `ListTimeSeries` response.
 
Protobuf type google.monitoring.v3.ListTimeSeriesResponse
  • 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<ListTimeSeriesResponse.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<ListTimeSeriesResponse.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<ListTimeSeriesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListTimeSeriesResponse.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<ListTimeSeriesResponse.Builder>
      Throws:
      IOException
    • getTimeSeriesList

      public List<TimeSeries> getTimeSeriesList()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
      Specified by:
      getTimeSeriesList in interface ListTimeSeriesResponseOrBuilder
    • getTimeSeriesCount

      public int getTimeSeriesCount()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
      Specified by:
      getTimeSeriesCount in interface ListTimeSeriesResponseOrBuilder
    • getTimeSeries

      public TimeSeries getTimeSeries(int index)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
      Specified by:
      getTimeSeries in interface ListTimeSeriesResponseOrBuilder
    • setTimeSeries

      public ListTimeSeriesResponse.Builder setTimeSeries(int index, TimeSeries value)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • setTimeSeries

      public ListTimeSeriesResponse.Builder setTimeSeries(int index, TimeSeries.Builder builderForValue)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addTimeSeries

      public ListTimeSeriesResponse.Builder addTimeSeries(TimeSeries value)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addTimeSeries

      public ListTimeSeriesResponse.Builder addTimeSeries(int index, TimeSeries value)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addTimeSeries

      public ListTimeSeriesResponse.Builder addTimeSeries(TimeSeries.Builder builderForValue)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addTimeSeries

      public ListTimeSeriesResponse.Builder addTimeSeries(int index, TimeSeries.Builder builderForValue)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addAllTimeSeries

      public ListTimeSeriesResponse.Builder addAllTimeSeries(Iterable<? extends TimeSeries> values)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • clearTimeSeries

      public ListTimeSeriesResponse.Builder clearTimeSeries()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • removeTimeSeries

      public ListTimeSeriesResponse.Builder removeTimeSeries(int index)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • getTimeSeriesBuilder

      public TimeSeries.Builder getTimeSeriesBuilder(int index)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • getTimeSeriesOrBuilder

      public TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
      Specified by:
      getTimeSeriesOrBuilder in interface ListTimeSeriesResponseOrBuilder
    • getTimeSeriesOrBuilderList

      public List<? extends TimeSeriesOrBuilder> getTimeSeriesOrBuilderList()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
      Specified by:
      getTimeSeriesOrBuilderList in interface ListTimeSeriesResponseOrBuilder
    • addTimeSeriesBuilder

      public TimeSeries.Builder addTimeSeriesBuilder()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • addTimeSeriesBuilder

      public TimeSeries.Builder addTimeSeriesBuilder(int index)
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • getTimeSeriesBuilderList

      public List<TimeSeries.Builder> getTimeSeriesBuilderList()
       One or more time series that match the filter included in the request.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 1;
    • getNextPageToken

      public String getNextPageToken()
       If there are more results than have been returned, then this field is set
       to a non-empty value.  To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListTimeSeriesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       If there are more results than have been returned, then this field is set
       to a non-empty value.  To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListTimeSeriesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListTimeSeriesResponse.Builder setNextPageToken(String value)
       If there are more results than have been returned, then this field is set
       to a non-empty value.  To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListTimeSeriesResponse.Builder clearNextPageToken()
       If there are more results than have been returned, then this field is set
       to a non-empty value.  To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListTimeSeriesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       If there are more results than have been returned, then this field is set
       to a non-empty value.  To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getExecutionErrorsList

      public List<Status> getExecutionErrorsList()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
      Specified by:
      getExecutionErrorsList in interface ListTimeSeriesResponseOrBuilder
    • getExecutionErrorsCount

      public int getExecutionErrorsCount()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
      Specified by:
      getExecutionErrorsCount in interface ListTimeSeriesResponseOrBuilder
    • getExecutionErrors

      public Status getExecutionErrors(int index)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
      Specified by:
      getExecutionErrors in interface ListTimeSeriesResponseOrBuilder
    • setExecutionErrors

      public ListTimeSeriesResponse.Builder setExecutionErrors(int index, Status value)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • setExecutionErrors

      public ListTimeSeriesResponse.Builder setExecutionErrors(int index, Status.Builder builderForValue)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addExecutionErrors

      public ListTimeSeriesResponse.Builder addExecutionErrors(Status value)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addExecutionErrors

      public ListTimeSeriesResponse.Builder addExecutionErrors(int index, Status value)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addExecutionErrors

      public ListTimeSeriesResponse.Builder addExecutionErrors(Status.Builder builderForValue)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addExecutionErrors

      public ListTimeSeriesResponse.Builder addExecutionErrors(int index, Status.Builder builderForValue)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addAllExecutionErrors

      public ListTimeSeriesResponse.Builder addAllExecutionErrors(Iterable<? extends Status> values)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • clearExecutionErrors

      public ListTimeSeriesResponse.Builder clearExecutionErrors()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • removeExecutionErrors

      public ListTimeSeriesResponse.Builder removeExecutionErrors(int index)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • getExecutionErrorsBuilder

      public Status.Builder getExecutionErrorsBuilder(int index)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • getExecutionErrorsOrBuilder

      public StatusOrBuilder getExecutionErrorsOrBuilder(int index)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
      Specified by:
      getExecutionErrorsOrBuilder in interface ListTimeSeriesResponseOrBuilder
    • getExecutionErrorsOrBuilderList

      public List<? extends StatusOrBuilder> getExecutionErrorsOrBuilderList()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
      Specified by:
      getExecutionErrorsOrBuilderList in interface ListTimeSeriesResponseOrBuilder
    • addExecutionErrorsBuilder

      public Status.Builder addExecutionErrorsBuilder()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • addExecutionErrorsBuilder

      public Status.Builder addExecutionErrorsBuilder(int index)
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • getExecutionErrorsBuilderList

      public List<Status.Builder> getExecutionErrorsBuilderList()
       Query execution errors that may have caused the time series data returned
       to be incomplete.
       
      repeated .google.rpc.Status execution_errors = 3;
    • getUnit

      public String getUnit()
       The unit in which all `time_series` point values are reported. `unit`
       follows the UCUM format for units as seen in
       https://unitsofmeasure.org/ucum.html.
       If different `time_series` have different units (for example, because they
       come from different metric types, or a unit is absent), then `unit` will be
       "{not_a_unit}".
       
      string unit = 5;
      Specified by:
      getUnit in interface ListTimeSeriesResponseOrBuilder
      Returns:
      The unit.
    • getUnitBytes

      public com.google.protobuf.ByteString getUnitBytes()
       The unit in which all `time_series` point values are reported. `unit`
       follows the UCUM format for units as seen in
       https://unitsofmeasure.org/ucum.html.
       If different `time_series` have different units (for example, because they
       come from different metric types, or a unit is absent), then `unit` will be
       "{not_a_unit}".
       
      string unit = 5;
      Specified by:
      getUnitBytes in interface ListTimeSeriesResponseOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

      public ListTimeSeriesResponse.Builder setUnit(String value)
       The unit in which all `time_series` point values are reported. `unit`
       follows the UCUM format for units as seen in
       https://unitsofmeasure.org/ucum.html.
       If different `time_series` have different units (for example, because they
       come from different metric types, or a unit is absent), then `unit` will be
       "{not_a_unit}".
       
      string unit = 5;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public ListTimeSeriesResponse.Builder clearUnit()
       The unit in which all `time_series` point values are reported. `unit`
       follows the UCUM format for units as seen in
       https://unitsofmeasure.org/ucum.html.
       If different `time_series` have different units (for example, because they
       come from different metric types, or a unit is absent), then `unit` will be
       "{not_a_unit}".
       
      string unit = 5;
      Returns:
      This builder for chaining.
    • setUnitBytes

      public ListTimeSeriesResponse.Builder setUnitBytes(com.google.protobuf.ByteString value)
       The unit in which all `time_series` point values are reported. `unit`
       follows the UCUM format for units as seen in
       https://unitsofmeasure.org/ucum.html.
       If different `time_series` have different units (for example, because they
       come from different metric types, or a unit is absent), then `unit` will be
       "{not_a_unit}".
       
      string unit = 5;
      Parameters:
      value - The bytes for unit to set.
      Returns:
      This builder for chaining.