Class Monitoring.MonitoringDestination.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<Monitoring.MonitoringDestination.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<Monitoring.MonitoringDestination.Builder>
      • getDefaultInstanceForType

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

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

        public Monitoring.MonitoringDestination buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Monitoring.MonitoringDestination.Builder>
      • getMonitoredResource

        public String getMonitoredResource()
         The monitored resource type. The type must be defined in
         [Service.monitored_resources][google.api.Service.monitored_resources]
         section.
         
        string monitored_resource = 1;
        Specified by:
        getMonitoredResource in interface Monitoring.MonitoringDestinationOrBuilder
        Returns:
        The monitoredResource.
      • getMonitoredResourceBytes

        public com.google.protobuf.ByteString getMonitoredResourceBytes()
         The monitored resource type. The type must be defined in
         [Service.monitored_resources][google.api.Service.monitored_resources]
         section.
         
        string monitored_resource = 1;
        Specified by:
        getMonitoredResourceBytes in interface Monitoring.MonitoringDestinationOrBuilder
        Returns:
        The bytes for monitoredResource.
      • setMonitoredResource

        public Monitoring.MonitoringDestination.Builder setMonitoredResource​(String value)
         The monitored resource type. The type must be defined in
         [Service.monitored_resources][google.api.Service.monitored_resources]
         section.
         
        string monitored_resource = 1;
        Parameters:
        value - The monitoredResource to set.
        Returns:
        This builder for chaining.
      • clearMonitoredResource

        public Monitoring.MonitoringDestination.Builder clearMonitoredResource()
         The monitored resource type. The type must be defined in
         [Service.monitored_resources][google.api.Service.monitored_resources]
         section.
         
        string monitored_resource = 1;
        Returns:
        This builder for chaining.
      • setMonitoredResourceBytes

        public Monitoring.MonitoringDestination.Builder setMonitoredResourceBytes​(com.google.protobuf.ByteString value)
         The monitored resource type. The type must be defined in
         [Service.monitored_resources][google.api.Service.monitored_resources]
         section.
         
        string monitored_resource = 1;
        Parameters:
        value - The bytes for monitoredResource to set.
        Returns:
        This builder for chaining.
      • getMetricsList

        public com.google.protobuf.ProtocolStringList getMetricsList()
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Specified by:
        getMetricsList in interface Monitoring.MonitoringDestinationOrBuilder
        Returns:
        A list containing the metrics.
      • getMetricsCount

        public int getMetricsCount()
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Specified by:
        getMetricsCount in interface Monitoring.MonitoringDestinationOrBuilder
        Returns:
        The count of metrics.
      • getMetrics

        public String getMetrics​(int index)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Specified by:
        getMetrics in interface Monitoring.MonitoringDestinationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The metrics at the given index.
      • getMetricsBytes

        public com.google.protobuf.ByteString getMetricsBytes​(int index)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Specified by:
        getMetricsBytes in interface Monitoring.MonitoringDestinationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the metrics at the given index.
      • setMetrics

        public Monitoring.MonitoringDestination.Builder setMetrics​(int index,
                                                                   String value)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Parameters:
        index - The index to set the value at.
        value - The metrics to set.
        Returns:
        This builder for chaining.
      • addMetrics

        public Monitoring.MonitoringDestination.Builder addMetrics​(String value)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Parameters:
        value - The metrics to add.
        Returns:
        This builder for chaining.
      • addAllMetrics

        public Monitoring.MonitoringDestination.Builder addAllMetrics​(Iterable<String> values)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Parameters:
        values - The metrics to add.
        Returns:
        This builder for chaining.
      • clearMetrics

        public Monitoring.MonitoringDestination.Builder clearMetrics()
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Returns:
        This builder for chaining.
      • addMetricsBytes

        public Monitoring.MonitoringDestination.Builder addMetricsBytes​(com.google.protobuf.ByteString value)
         Types of the metrics to report to this monitoring destination.
         Each type must be defined in
         [Service.metrics][google.api.Service.metrics] section.
         
        repeated string metrics = 2;
        Parameters:
        value - The bytes of the metrics to add.
        Returns:
        This builder for chaining.