Class ListCustomMetricsResponse.Builder (0.64.0)

public static final class ListCustomMetricsResponse.Builder extends GeneratedMessageV3.Builder<ListCustomMetricsResponse.Builder> implements ListCustomMetricsResponseOrBuilder

Response message for ListCustomMetrics RPC.

Protobuf type google.analytics.admin.v1alpha.ListCustomMetricsResponse

Static Methods

getDescriptor()

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

Methods

addAllCustomMetrics(Iterable<? extends CustomMetric> values)

public ListCustomMetricsResponse.Builder addAllCustomMetrics(Iterable<? extends CustomMetric> values)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
values Iterable<? extends com.google.analytics.admin.v1alpha.CustomMetric>
Returns
Type Description
ListCustomMetricsResponse.Builder

addCustomMetrics(CustomMetric value)

public ListCustomMetricsResponse.Builder addCustomMetrics(CustomMetric value)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
value CustomMetric
Returns
Type Description
ListCustomMetricsResponse.Builder

addCustomMetrics(CustomMetric.Builder builderForValue)

public ListCustomMetricsResponse.Builder addCustomMetrics(CustomMetric.Builder builderForValue)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
builderForValue CustomMetric.Builder
Returns
Type Description
ListCustomMetricsResponse.Builder

addCustomMetrics(int index, CustomMetric value)

public ListCustomMetricsResponse.Builder addCustomMetrics(int index, CustomMetric value)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameters
Name Description
index int
value CustomMetric
Returns
Type Description
ListCustomMetricsResponse.Builder

addCustomMetrics(int index, CustomMetric.Builder builderForValue)

public ListCustomMetricsResponse.Builder addCustomMetrics(int index, CustomMetric.Builder builderForValue)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameters
Name Description
index int
builderForValue CustomMetric.Builder
Returns
Type Description
ListCustomMetricsResponse.Builder

addCustomMetricsBuilder()

public CustomMetric.Builder addCustomMetricsBuilder()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
CustomMetric.Builder

addCustomMetricsBuilder(int index)

public CustomMetric.Builder addCustomMetricsBuilder(int index)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomMetric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomMetricsResponse build()
Returns
Type Description
ListCustomMetricsResponse

buildPartial()

public ListCustomMetricsResponse buildPartial()
Returns
Type Description
ListCustomMetricsResponse

clear()

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

clearCustomMetrics()

public ListCustomMetricsResponse.Builder clearCustomMetrics()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
ListCustomMetricsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCustomMetricsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListCustomMetricsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomMetrics(int index)

public CustomMetric getCustomMetrics(int index)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomMetric

getCustomMetricsBuilder(int index)

public CustomMetric.Builder getCustomMetricsBuilder(int index)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomMetric.Builder

getCustomMetricsBuilderList()

public List<CustomMetric.Builder> getCustomMetricsBuilderList()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
List<Builder>

getCustomMetricsCount()

public int getCustomMetricsCount()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
int

getCustomMetricsList()

public List<CustomMetric> getCustomMetricsList()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
List<CustomMetric>

getCustomMetricsOrBuilder(int index)

public CustomMetricOrBuilder getCustomMetricsOrBuilder(int index)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomMetricOrBuilder

getCustomMetricsOrBuilderList()

public List<? extends CustomMetricOrBuilder> getCustomMetricsOrBuilderList()

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Returns
Type Description
List<? extends com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>

getDefaultInstanceForType()

public ListCustomMetricsResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomMetricsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCustomMetricsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomMetrics(int index)

public ListCustomMetricsResponse.Builder removeCustomMetrics(int index)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomMetricsResponse.Builder

setCustomMetrics(int index, CustomMetric value)

public ListCustomMetricsResponse.Builder setCustomMetrics(int index, CustomMetric value)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameters
Name Description
index int
value CustomMetric
Returns
Type Description
ListCustomMetricsResponse.Builder

setCustomMetrics(int index, CustomMetric.Builder builderForValue)

public ListCustomMetricsResponse.Builder setCustomMetrics(int index, CustomMetric.Builder builderForValue)

List of CustomMetrics.

repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;

Parameters
Name Description
index int
builderForValue CustomMetric.Builder
Returns
Type Description
ListCustomMetricsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCustomMetricsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCustomMetricsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCustomMetricsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCustomMetricsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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