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