Class TimeSeriesFilterRatio.RatioPart.Builder (2.51.0)

public static final class TimeSeriesFilterRatio.RatioPart.Builder extends GeneratedMessageV3.Builder<TimeSeriesFilterRatio.RatioPart.Builder> implements TimeSeriesFilterRatio.RatioPartOrBuilder

Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio.

Protobuf type google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimeSeriesFilterRatio.RatioPart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

build()

public TimeSeriesFilterRatio.RatioPart build()
Returns
Type Description
TimeSeriesFilterRatio.RatioPart

buildPartial()

public TimeSeriesFilterRatio.RatioPart buildPartial()
Returns
Type Description
TimeSeriesFilterRatio.RatioPart

clear()

public TimeSeriesFilterRatio.RatioPart.Builder clear()
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

clearAggregation()

public TimeSeriesFilterRatio.RatioPart.Builder clearAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

clearField(Descriptors.FieldDescriptor field)

public TimeSeriesFilterRatio.RatioPart.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

clearFilter()

public TimeSeriesFilterRatio.RatioPart.Builder clearFilter()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeSeriesFilterRatio.RatioPart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

clone()

public TimeSeriesFilterRatio.RatioPart.Builder clone()
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

getAggregation()

public Aggregation getAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
Aggregation

The aggregation.

getAggregationBuilder()

public Aggregation.Builder getAggregationBuilder()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
Aggregation.Builder

getAggregationOrBuilder()

public AggregationOrBuilder getAggregationOrBuilder()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
AggregationOrBuilder

getDefaultInstanceForType()

public TimeSeriesFilterRatio.RatioPart getDefaultInstanceForType()
Returns
Type Description
TimeSeriesFilterRatio.RatioPart

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilter()

public String getFilter()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for filter.

hasAggregation()

public boolean hasAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
boolean

Whether the aggregation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAggregation(Aggregation value)

public TimeSeriesFilterRatio.RatioPart.Builder mergeAggregation(Aggregation value)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

mergeFrom(TimeSeriesFilterRatio.RatioPart other)

public TimeSeriesFilterRatio.RatioPart.Builder mergeFrom(TimeSeriesFilterRatio.RatioPart other)
Parameter
Name Description
other TimeSeriesFilterRatio.RatioPart
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeSeriesFilterRatio.RatioPart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TimeSeriesFilterRatio.RatioPart.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesFilterRatio.RatioPart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

setAggregation(Aggregation value)

public TimeSeriesFilterRatio.RatioPart.Builder setAggregation(Aggregation value)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

setAggregation(Aggregation.Builder builderForValue)

public TimeSeriesFilterRatio.RatioPart.Builder setAggregation(Aggregation.Builder builderForValue)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
builderForValue Aggregation.Builder
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TimeSeriesFilterRatio.RatioPart.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

setFilter(String value)

public TimeSeriesFilterRatio.RatioPart.Builder setFilter(String value)

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public TimeSeriesFilterRatio.RatioPart.Builder setFilterBytes(ByteString value)

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder

This builder for chaining.

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

public TimeSeriesFilterRatio.RatioPart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesFilterRatio.RatioPart.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeSeriesFilterRatio.RatioPart.Builder
Overrides