Send feedback
Class ListCustomMetricsResponse.Builder (0.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.15.0 keyboard_arrow_down
public static final class ListCustomMetricsResponse . Builder extends GeneratedMessageV3 . Builder<ListCustomMetricsResponse . Builder > implements ListCustomMetricsResponseOrBuilder
Response message for ListCustomMetrics RPC.
Protobuf type google.analytics.admin.v1beta.ListCustomMetricsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addAllCustomMetrics(Iterable<? extends CustomMetric> values)
public ListCustomMetricsResponse . Builder addAllCustomMetrics ( Iterable <? extends CustomMetric > values )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Name Description values Iterable <? extends com.google.analytics.admin.v1beta.CustomMetric >
Returns
addCustomMetrics(CustomMetric value)
public ListCustomMetricsResponse . Builder addCustomMetrics ( CustomMetric value )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
addCustomMetrics(CustomMetric.Builder builderForValue)
public ListCustomMetricsResponse . Builder addCustomMetrics ( CustomMetric . Builder builderForValue )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
addCustomMetrics(int index, CustomMetric value)
public ListCustomMetricsResponse . Builder addCustomMetrics ( int index , CustomMetric value )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameters
Returns
addCustomMetrics(int index, CustomMetric.Builder builderForValue)
public ListCustomMetricsResponse . Builder addCustomMetrics ( int index , CustomMetric . Builder builderForValue )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameters
Returns
addCustomMetricsBuilder()
public CustomMetric . Builder addCustomMetricsBuilder ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
addCustomMetricsBuilder(int index)
public CustomMetric . Builder addCustomMetricsBuilder ( int index )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListCustomMetricsResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ListCustomMetricsResponse build ()
Returns
buildPartial()
public ListCustomMetricsResponse buildPartial ()
Returns
clear()
public ListCustomMetricsResponse . Builder clear ()
Returns
Overrides
clearCustomMetrics()
public ListCustomMetricsResponse . Builder clearCustomMetrics ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ListCustomMetricsResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListCustomMetricsResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public ListCustomMetricsResponse . Builder clone ()
Returns
Overrides
getCustomMetrics(int index)
public CustomMetric getCustomMetrics ( int index )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
getCustomMetricsBuilder(int index)
public CustomMetric . Builder getCustomMetricsBuilder ( int index )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
getCustomMetricsBuilderList()
public List<CustomMetric . Builder > getCustomMetricsBuilderList ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
getCustomMetricsCount()
public int getCustomMetricsCount ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
getCustomMetricsList()
public List<CustomMetric> getCustomMetricsList ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
getCustomMetricsOrBuilder(int index)
public CustomMetricOrBuilder getCustomMetricsOrBuilder ( int index )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
getCustomMetricsOrBuilderList()
public List <? extends CustomMetricOrBuilder > getCustomMetricsOrBuilderList ()
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Returns
Type Description List <? extends com.google.analytics.admin.v1beta.CustomMetricOrBuilder >
getDefaultInstanceForType()
public ListCustomMetricsResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ListCustomMetricsResponse other)
public ListCustomMetricsResponse . Builder mergeFrom ( ListCustomMetricsResponse other )
Parameter
Returns
public ListCustomMetricsResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListCustomMetricsResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListCustomMetricsResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeCustomMetrics(int index)
public ListCustomMetricsResponse . Builder removeCustomMetrics ( int index )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameter
Returns
setCustomMetrics(int index, CustomMetric value)
public ListCustomMetricsResponse . Builder setCustomMetrics ( int index , CustomMetric value )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameters
Returns
setCustomMetrics(int index, CustomMetric.Builder builderForValue)
public ListCustomMetricsResponse . Builder setCustomMetrics ( int index , CustomMetric . Builder builderForValue )
List of CustomMetrics.
repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListCustomMetricsResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListCustomMetricsResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListCustomMetricsResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `ListCustomMetricsResponse.Builder` class within the Google Analytics Admin API's Java library, specifically focusing on version 0.15.0 and its associated versions."],["The `ListCustomMetricsResponse.Builder` class is used to construct response messages for listing custom metrics, inheriting functionality from `GeneratedMessageV3.Builder` and implementing `ListCustomMetricsResponseOrBuilder`."],["The document includes a list of all available versions, starting from 0.70.0 as the latest and ending in version 0.14.0, including each version's respective documentation link."],["The builder class has inherited methods from multiple classes such as AbstractMessage.Builder, AbstractMessageLite.Builder, and GeneratedMessageV3.Builder, as well as many methods specific to the ListCustomMetricsResponse.Builder class, all of which are documented here."],["The primary function of this class is to allow users to set and retrieve data such as custom metrics, with methods like `addCustomMetrics` and `getCustomMetrics`, and to handle pagination, with functions like `setNextPageToken` and `getNextPageToken`."]]],[]]