Class Monitoring.MonitoringDestination (2.9.1)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Monitoring.MonitoringDestination extends GeneratedMessageV3 implements Monitoring.MonitoringDestinationOrBuilder

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

Protobuf type google.api.Monitoring.MonitoringDestination

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Monitoring.MonitoringDestination

Static Fields

METRICS_FIELD_NUMBER

public static final int METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

MONITORED_RESOURCE_FIELD_NUMBER

public static final int MONITORED_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Monitoring.MonitoringDestination getDefaultInstance()
Returns
TypeDescription
Monitoring.MonitoringDestination

getDescriptor()

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

newBuilder()

public static Monitoring.MonitoringDestination.Builder newBuilder()
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

newBuilder(Monitoring.MonitoringDestination prototype)

public static Monitoring.MonitoringDestination.Builder newBuilder(Monitoring.MonitoringDestination prototype)
Parameter
NameDescription
prototypeMonitoring.MonitoringDestination
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

parseDelimitedFrom(InputStream input)

public static Monitoring.MonitoringDestination parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Monitoring.MonitoringDestination parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Monitoring.MonitoringDestination parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Monitoring.MonitoringDestination parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Monitoring.MonitoringDestination parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Monitoring.MonitoringDestination parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Monitoring.MonitoringDestination parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Monitoring.MonitoringDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Monitoring.MonitoringDestination> parser()
Returns
TypeDescription
Parser<MonitoringDestination>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Monitoring.MonitoringDestination> getParserForType()
Returns
TypeDescription
Parser<MonitoringDestination>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Monitoring.MonitoringDestination.Builder newBuilderForType()
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Monitoring.MonitoringDestination.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Monitoring.MonitoringDestination.Builder toBuilder()
Returns
TypeDescription
Monitoring.MonitoringDestination.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException