Class ListMetricsScopesByMonitoredProjectResponse.Builder (0.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.metricsscope.v1.MetricsScope>
Returns
TypeDescription
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
NameDescription
valueMetricsScope
Returns
TypeDescription
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
NameDescription
builderForValueMetricsScope.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricsScope
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricsScope.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricsScope.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMetricsScopesByMonitoredProjectResponse build()
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse

buildPartial()

public ListMetricsScopesByMonitoredProjectResponse buildPartial()
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListMetricsScopesByMonitoredProjectResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListMetricsScopesByMonitoredProjectResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMetricsScopesByMonitoredProjectResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.monitoring.metricsscope.v1.MetricsScopeOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMetricsScopesByMonitoredProjectResponse other)

public ListMetricsScopesByMonitoredProjectResponse.Builder mergeFrom(ListMetricsScopesByMonitoredProjectResponse other)
Parameter
NameDescription
otherListMetricsScopesByMonitoredProjectResponse
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMetricsScopesByMonitoredProjectResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMetricsScopesByMonitoredProjectResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMetricsScope
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricsScope.Builder
Returns
TypeDescription
ListMetricsScopesByMonitoredProjectResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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