Class ListMetricsScopesByMonitoredProjectResponse.Builder (0.47.0)

public static final class ListMetricsScopesByMonitoredProjectResponse.Builder extends GeneratedMessageV3.Builder<ListMetricsScopesByMonitoredProjectResponse.Builder> implements ListMetricsScopesByMonitoredProjectResponseOrBuilder

Response for the ListMetricsScopesByMonitoredProject method.

Protobuf type google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectResponse

Static Methods

getDescriptor()

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

Methods

addAllMetricsScopes(Iterable<? extends MetricsScope> values)

public ListMetricsScopesByMonitoredProjectResponse.Builder addAllMetricsScopes(Iterable<? extends MetricsScope> values)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
values Iterable<? extends com.google.monitoring.metricsscope.v1.MetricsScope>
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

addMetricsScopes(MetricsScope value)

public ListMetricsScopesByMonitoredProjectResponse.Builder addMetricsScopes(MetricsScope value)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
value MetricsScope
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

addMetricsScopes(MetricsScope.Builder builderForValue)

public ListMetricsScopesByMonitoredProjectResponse.Builder addMetricsScopes(MetricsScope.Builder builderForValue)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
builderForValue MetricsScope.Builder
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

addMetricsScopes(int index, MetricsScope value)

public ListMetricsScopesByMonitoredProjectResponse.Builder addMetricsScopes(int index, MetricsScope value)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameters
Name Description
index int
value MetricsScope
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

addMetricsScopes(int index, MetricsScope.Builder builderForValue)

public ListMetricsScopesByMonitoredProjectResponse.Builder addMetricsScopes(int index, MetricsScope.Builder builderForValue)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameters
Name Description
index int
builderForValue MetricsScope.Builder
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

addMetricsScopesBuilder()

public MetricsScope.Builder addMetricsScopesBuilder()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
MetricsScope.Builder

addMetricsScopesBuilder(int index)

public MetricsScope.Builder addMetricsScopesBuilder(int index)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
MetricsScope.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMetricsScopesByMonitoredProjectResponse build()
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse

buildPartial()

public ListMetricsScopesByMonitoredProjectResponse buildPartial()
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse

clear()

public ListMetricsScopesByMonitoredProjectResponse.Builder clear()
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMetricsScopes()

public ListMetricsScopesByMonitoredProjectResponse.Builder clearMetricsScopes()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListMetricsScopesByMonitoredProjectResponse.Builder clone()
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMetricsScopesByMonitoredProjectResponse getDefaultInstanceForType()
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse

getDescriptorForType()

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

getMetricsScopes(int index)

public MetricsScope getMetricsScopes(int index)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
MetricsScope

getMetricsScopesBuilder(int index)

public MetricsScope.Builder getMetricsScopesBuilder(int index)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
MetricsScope.Builder

getMetricsScopesBuilderList()

public List<MetricsScope.Builder> getMetricsScopesBuilderList()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
List<Builder>

getMetricsScopesCount()

public int getMetricsScopesCount()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
int

getMetricsScopesList()

public List<MetricsScope> getMetricsScopesList()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
List<MetricsScope>

getMetricsScopesOrBuilder(int index)

public MetricsScopeOrBuilder getMetricsScopesOrBuilder(int index)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
MetricsScopeOrBuilder

getMetricsScopesOrBuilderList()

public List<? extends MetricsScopeOrBuilder> getMetricsScopesOrBuilderList()

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Returns
Type Description
List<? extends com.google.monitoring.metricsscope.v1.MetricsScopeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMetricsScopesByMonitoredProjectResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetricsScopes(int index)

public ListMetricsScopesByMonitoredProjectResponse.Builder removeMetricsScopes(int index)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetricsScopes(int index, MetricsScope value)

public ListMetricsScopesByMonitoredProjectResponse.Builder setMetricsScopes(int index, MetricsScope value)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameters
Name Description
index int
value MetricsScope
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

setMetricsScopes(int index, MetricsScope.Builder builderForValue)

public ListMetricsScopesByMonitoredProjectResponse.Builder setMetricsScopes(int index, MetricsScope.Builder builderForValue)

A set of all metrics scopes that the specified monitored project has been added to.

repeated .google.monitoring.metricsscope.v1.MetricsScope metrics_scopes = 1;

Parameters
Name Description
index int
builderForValue MetricsScope.Builder
Returns
Type Description
ListMetricsScopesByMonitoredProjectResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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