Class CreateTimeSeriesRequest.Builder

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

public static final class CreateTimeSeriesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateTimeSeriesRequest.Builder> implements CreateTimeSeriesRequestOrBuilder
 The `CreateTimeSeries` request.
 
Protobuf type google.monitoring.v3.CreateTimeSeriesRequest
  • 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<CreateTimeSeriesRequest.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<CreateTimeSeriesRequest.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<CreateTimeSeriesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateTimeSeriesRequest.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<CreateTimeSeriesRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
       to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface CreateTimeSeriesRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
       to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface CreateTimeSeriesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CreateTimeSeriesRequest.Builder setName(String value)
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
       to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CreateTimeSeriesRequest.Builder clearName()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
       to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public CreateTimeSeriesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
       to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTimeSeriesList

      public List<TimeSeries> getTimeSeriesList()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesList in interface CreateTimeSeriesRequestOrBuilder
    • getTimeSeriesCount

      public int getTimeSeriesCount()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesCount in interface CreateTimeSeriesRequestOrBuilder
    • getTimeSeries

      public TimeSeries getTimeSeries(int index)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeries in interface CreateTimeSeriesRequestOrBuilder
    • setTimeSeries

      public CreateTimeSeriesRequest.Builder setTimeSeries(int index, TimeSeries value)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • setTimeSeries

      public CreateTimeSeriesRequest.Builder setTimeSeries(int index, TimeSeries.Builder builderForValue)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addTimeSeries

      public CreateTimeSeriesRequest.Builder addTimeSeries(TimeSeries value)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addTimeSeries

      public CreateTimeSeriesRequest.Builder addTimeSeries(int index, TimeSeries value)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addTimeSeries

      public CreateTimeSeriesRequest.Builder addTimeSeries(TimeSeries.Builder builderForValue)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addTimeSeries

      public CreateTimeSeriesRequest.Builder addTimeSeries(int index, TimeSeries.Builder builderForValue)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllTimeSeries

      public CreateTimeSeriesRequest.Builder addAllTimeSeries(Iterable<? extends TimeSeries> values)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearTimeSeries

      public CreateTimeSeriesRequest.Builder clearTimeSeries()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeTimeSeries

      public CreateTimeSeriesRequest.Builder removeTimeSeries(int index)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesBuilder

      public TimeSeries.Builder getTimeSeriesBuilder(int index)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesOrBuilder

      public TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesOrBuilder in interface CreateTimeSeriesRequestOrBuilder
    • getTimeSeriesOrBuilderList

      public List<? extends TimeSeriesOrBuilder> getTimeSeriesOrBuilderList()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesOrBuilderList in interface CreateTimeSeriesRequestOrBuilder
    • addTimeSeriesBuilder

      public TimeSeries.Builder addTimeSeriesBuilder()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • addTimeSeriesBuilder

      public TimeSeries.Builder addTimeSeriesBuilder(int index)
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesBuilderList

      public List<TimeSeries.Builder> getTimeSeriesBuilderList()
       Required. The new data to be added to a list of time series.
       Adds at most one data point to each of several time series.  The new data
       point must be more recent than any other point in its time series.  Each
       `TimeSeries` value must fully specify a unique time series by supplying
       all label values for the metric and the monitored resource.
      
       The maximum number of `TimeSeries` objects per `Create` request is 200.
       
      repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED];