Class Monitoring.Builder (2.24.0)

public static final class Monitoring.Builder extends GeneratedMessageV3.Builder<Monitoring.Builder> implements MonitoringOrBuilder

Monitoring configuration of the service.

The example below shows how to configure monitored resources and metrics for monitoring. In the example, a monitored resource and two metrics are defined. The library.googleapis.com/book/returned_count metric is sent to both producer and consumer projects, whereas the library.googleapis.com/book/num_overdue metric is only sent to the consumer project.

 monitored_resources:
 - type: library.googleapis.com/Branch
   display_name: "Library Branch"
   description: "A branch of a library."
   launch_stage: GA
   labels:
   - key: resource_container
     description: "The Cloud container (ie. project id) for the Branch."
   - key: location
     description: "The location of the library branch."
   - key: branch_id
     description: "The id of the branch."
 metrics:
 - name: library.googleapis.com/book/returned_count
   display_name: "Books Returned"
   description: "The count of books that have been returned."
   launch_stage: GA
   metric_kind: DELTA
   value_type: INT64
   unit: "1"
   labels:
   - key: customer_id
     description: "The id of the customer."
 - name: library.googleapis.com/book/num_overdue
   display_name: "Books Overdue"
   description: "The current number of overdue books."
   launch_stage: GA
   metric_kind: GAUGE
   value_type: INT64
   unit: "1"
   labels:
   - key: customer_id
     description: "The id of the customer."
 monitoring:
   producer_destinations:
   - monitored_resource: library.googleapis.com/Branch
     metrics:
     - library.googleapis.com/book/returned_count
   consumer_destinations:
   - monitored_resource: library.googleapis.com/Branch
     metrics:
     - library.googleapis.com/book/returned_count
     - library.googleapis.com/book/num_overdue

Protobuf type google.api.Monitoring

Implements

MonitoringOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllConsumerDestinations(Iterable<? extends Monitoring.MonitoringDestination> values)

public Monitoring.Builder addAllConsumerDestinations(Iterable<? extends Monitoring.MonitoringDestination> values)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.api.Monitoring.MonitoringDestination>
Returns
TypeDescription
Monitoring.Builder

addAllProducerDestinations(Iterable<? extends Monitoring.MonitoringDestination> values)

public Monitoring.Builder addAllProducerDestinations(Iterable<? extends Monitoring.MonitoringDestination> values)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.api.Monitoring.MonitoringDestination>
Returns
TypeDescription
Monitoring.Builder

addConsumerDestinations(Monitoring.MonitoringDestination value)

public Monitoring.Builder addConsumerDestinations(Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

addConsumerDestinations(Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder addConsumerDestinations(Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

addConsumerDestinations(int index, Monitoring.MonitoringDestination value)

public Monitoring.Builder addConsumerDestinations(int index, Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameters
NameDescription
indexint
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

addConsumerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder addConsumerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameters
NameDescription
indexint
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

addConsumerDestinationsBuilder()

public Monitoring.MonitoringDestination.Builder addConsumerDestinationsBuilder()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

addConsumerDestinationsBuilder(int index)

public Monitoring.MonitoringDestination.Builder addConsumerDestinationsBuilder(int index)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

addProducerDestinations(Monitoring.MonitoringDestination value)

public Monitoring.Builder addProducerDestinations(Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

addProducerDestinations(Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder addProducerDestinations(Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

addProducerDestinations(int index, Monitoring.MonitoringDestination value)

public Monitoring.Builder addProducerDestinations(int index, Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameters
NameDescription
indexint
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

addProducerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder addProducerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameters
NameDescription
indexint
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

addProducerDestinationsBuilder()

public Monitoring.MonitoringDestination.Builder addProducerDestinationsBuilder()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

addProducerDestinationsBuilder(int index)

public Monitoring.MonitoringDestination.Builder addProducerDestinationsBuilder(int index)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Monitoring.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Monitoring.Builder
Overrides

build()

public Monitoring build()
Returns
TypeDescription
Monitoring

buildPartial()

public Monitoring buildPartial()
Returns
TypeDescription
Monitoring

clear()

public Monitoring.Builder clear()
Returns
TypeDescription
Monitoring.Builder
Overrides

clearConsumerDestinations()

public Monitoring.Builder clearConsumerDestinations()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
Monitoring.Builder

clearField(Descriptors.FieldDescriptor field)

public Monitoring.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Monitoring.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Monitoring.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Monitoring.Builder
Overrides

clearProducerDestinations()

public Monitoring.Builder clearProducerDestinations()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
Monitoring.Builder

clone()

public Monitoring.Builder clone()
Returns
TypeDescription
Monitoring.Builder
Overrides

getConsumerDestinations(int index)

public Monitoring.MonitoringDestination getConsumerDestinations(int index)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination

getConsumerDestinationsBuilder(int index)

public Monitoring.MonitoringDestination.Builder getConsumerDestinationsBuilder(int index)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

getConsumerDestinationsBuilderList()

public List<Monitoring.MonitoringDestination.Builder> getConsumerDestinationsBuilderList()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
List<Builder>

getConsumerDestinationsCount()

public int getConsumerDestinationsCount()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
int

getConsumerDestinationsList()

public List<Monitoring.MonitoringDestination> getConsumerDestinationsList()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
List<MonitoringDestination>

getConsumerDestinationsOrBuilder(int index)

public Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestinationOrBuilder

getConsumerDestinationsOrBuilderList()

public List<? extends Monitoring.MonitoringDestinationOrBuilder> getConsumerDestinationsOrBuilderList()

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Returns
TypeDescription
List<? extends com.google.api.Monitoring.MonitoringDestinationOrBuilder>

getDefaultInstanceForType()

public Monitoring getDefaultInstanceForType()
Returns
TypeDescription
Monitoring

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProducerDestinations(int index)

public Monitoring.MonitoringDestination getProducerDestinations(int index)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination

getProducerDestinationsBuilder(int index)

public Monitoring.MonitoringDestination.Builder getProducerDestinationsBuilder(int index)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

getProducerDestinationsBuilderList()

public List<Monitoring.MonitoringDestination.Builder> getProducerDestinationsBuilderList()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
List<Builder>

getProducerDestinationsCount()

public int getProducerDestinationsCount()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
int

getProducerDestinationsList()

public List<Monitoring.MonitoringDestination> getProducerDestinationsList()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
List<MonitoringDestination>

getProducerDestinationsOrBuilder(int index)

public Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(int index)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.MonitoringDestinationOrBuilder

getProducerDestinationsOrBuilderList()

public List<? extends Monitoring.MonitoringDestinationOrBuilder> getProducerDestinationsOrBuilderList()

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Returns
TypeDescription
List<? extends com.google.api.Monitoring.MonitoringDestinationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Monitoring other)

public Monitoring.Builder mergeFrom(Monitoring other)
Parameter
NameDescription
otherMonitoring
Returns
TypeDescription
Monitoring.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Monitoring.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Monitoring.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Monitoring.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Monitoring.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Monitoring.Builder
Overrides

removeConsumerDestinations(int index)

public Monitoring.Builder removeConsumerDestinations(int index)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.Builder

removeProducerDestinations(int index)

public Monitoring.Builder removeProducerDestinations(int index)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Monitoring.Builder

setConsumerDestinations(int index, Monitoring.MonitoringDestination value)

public Monitoring.Builder setConsumerDestinations(int index, Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameters
NameDescription
indexint
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

setConsumerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder setConsumerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;

Parameters
NameDescription
indexint
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Monitoring.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Monitoring.Builder
Overrides

setProducerDestinations(int index, Monitoring.MonitoringDestination value)

public Monitoring.Builder setProducerDestinations(int index, Monitoring.MonitoringDestination value)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameters
NameDescription
indexint
valueMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.Builder

setProducerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

public Monitoring.Builder setProducerDestinations(int index, Monitoring.MonitoringDestination.Builder builderForValue)

Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.

repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;

Parameters
NameDescription
indexint
builderForValueMonitoring.MonitoringDestination.Builder
Returns
TypeDescription
Monitoring.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Monitoring.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Monitoring.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Monitoring.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Monitoring.Builder
Overrides