Class Monitoring.MonitoringDestination.Builder (2.15.0)

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

Configuration of a specific monitoring destination (the producer project or the consumer project).

Protobuf type google.api.Monitoring.MonitoringDestination

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<String> values)

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 section.

repeated string metrics = 2;

Parameter
NameDescription
valuesIterable<String>

The metrics to add.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

addMetrics(String value)

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 section.

repeated string metrics = 2;

Parameter
NameDescription
valueString

The metrics to add.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

addMetricsBytes(ByteString value)

public Monitoring.MonitoringDestination.Builder addMetricsBytes(ByteString value)

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
valueByteString

The bytes of the metrics to add.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Monitoring.MonitoringDestination build()
Returns
TypeDescription
Monitoring.MonitoringDestination

buildPartial()

public Monitoring.MonitoringDestination buildPartial()
Returns
TypeDescription
Monitoring.MonitoringDestination

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public Monitoring.MonitoringDestination.Builder clearMetrics()

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

clearMonitoredResource()

public Monitoring.MonitoringDestination.Builder clearMonitoredResource()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Monitoring.MonitoringDestination getDefaultInstanceForType()
Returns
TypeDescription
Monitoring.MonitoringDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetrics(int index)

public String getMetrics(int index)

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The metrics at the given index.

getMetricsBytes(int index)

public ByteString getMetricsBytes(int index)

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the metrics at the given index.

getMetricsCount()

public int getMetricsCount()

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
int

The count of metrics.

getMetricsList()

public ProtocolStringList getMetricsList()

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the metrics.

getMonitoredResource()

public String getMonitoredResource()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
String

The monitoredResource.

getMonitoredResourceBytes()

public ByteString getMonitoredResourceBytes()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
ByteString

The bytes for monitoredResource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Monitoring.MonitoringDestination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, String value)

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 section.

repeated string metrics = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The metrics to set.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

setMonitoredResource(String value)

public Monitoring.MonitoringDestination.Builder setMonitoredResource(String value)

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Parameter
NameDescription
valueString

The monitoredResource to set.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

setMonitoredResourceBytes(ByteString value)

public Monitoring.MonitoringDestination.Builder setMonitoredResourceBytes(ByteString value)

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Parameter
NameDescription
valueByteString

The bytes for monitoredResource to set.

Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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