Class CreateTimeSeriesRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CreateTimeSeriesRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • clearField

        public CreateTimeSeriesRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • clearOneof

        public CreateTimeSeriesRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • setRepeatedField

        public CreateTimeSeriesRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • addRepeatedField

        public CreateTimeSeriesRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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];
      • setUnknownFields

        public final CreateTimeSeriesRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>
      • mergeUnknownFields

        public final CreateTimeSeriesRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTimeSeriesRequest.Builder>