Class ListCustomMetricsResponse.Builder (0.47.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1alpha.CustomMetric>
Returns
TypeDescription
ListCustomMetricsResponse.Builder

addCustomMetrics(CustomMetric value)

public ListCustomMetricsResponse.Builder addCustomMetrics(CustomMetric value)

List of CustomMetrics.

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

Parameter
NameDescription
valueCustomMetric
Returns
TypeDescription
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
NameDescription
builderForValueCustomMetric.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomMetric
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomMetric.Builder
Returns
TypeDescription
ListCustomMetricsResponse.Builder

addCustomMetricsBuilder()

public CustomMetric.Builder addCustomMetricsBuilder()

List of CustomMetrics.

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

Returns
TypeDescription
CustomMetric.Builder

addCustomMetricsBuilder(int index)

public CustomMetric.Builder addCustomMetricsBuilder(int index)

List of CustomMetrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomMetric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomMetricsResponse build()
Returns
TypeDescription
ListCustomMetricsResponse

buildPartial()

public ListCustomMetricsResponse buildPartial()
Returns
TypeDescription
ListCustomMetricsResponse

clear()

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

clearCustomMetrics()

public ListCustomMetricsResponse.Builder clearCustomMetrics()

List of CustomMetrics.

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

Returns
TypeDescription
ListCustomMetricsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomMetrics(int index)

public CustomMetric getCustomMetrics(int index)

List of CustomMetrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomMetric

getCustomMetricsBuilder(int index)

public CustomMetric.Builder getCustomMetricsBuilder(int index)

List of CustomMetrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomMetric.Builder

getCustomMetricsBuilderList()

public List<CustomMetric.Builder> getCustomMetricsBuilderList()

List of CustomMetrics.

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

Returns
TypeDescription
List<Builder>

getCustomMetricsCount()

public int getCustomMetricsCount()

List of CustomMetrics.

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

Returns
TypeDescription
int

getCustomMetricsList()

public List<CustomMetric> getCustomMetricsList()

List of CustomMetrics.

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

Returns
TypeDescription
List<CustomMetric>

getCustomMetricsOrBuilder(int index)

public CustomMetricOrBuilder getCustomMetricsOrBuilder(int index)

List of CustomMetrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomMetricOrBuilder

getCustomMetricsOrBuilderList()

public List<? extends CustomMetricOrBuilder> getCustomMetricsOrBuilderList()

List of CustomMetrics.

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

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

getDefaultInstanceForType()

public ListCustomMetricsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCustomMetricsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCustomMetricsResponse other)

public ListCustomMetricsResponse.Builder mergeFrom(ListCustomMetricsResponse other)
Parameter
NameDescription
otherListCustomMetricsResponse
Returns
TypeDescription
ListCustomMetricsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCustomMetricsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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