Class UserListLicenseMetrics.Builder (0.8.0)

public static final class UserListLicenseMetrics.Builder extends GeneratedMessage.Builder<UserListLicenseMetrics.Builder> implements UserListLicenseMetricsOrBuilder

Metrics related to a user list license.

Protobuf type google.ads.datamanager.v1.UserListLicenseMetrics

Static Methods

getDescriptor()

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

Methods

build()

public UserListLicenseMetrics build()
Returns
Type Description
UserListLicenseMetrics

buildPartial()

public UserListLicenseMetrics buildPartial()
Returns
Type Description
UserListLicenseMetrics

clear()

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

clearClickCount()

public UserListLicenseMetrics.Builder clearClickCount()

Output only. The number of clicks for the user list license.

int64 click_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

clearEndDate()

public UserListLicenseMetrics.Builder clearEndDate()

Output only. The end date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If start_date is used in the filter, end_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 end_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

clearImpressionCount()

public UserListLicenseMetrics.Builder clearImpressionCount()

Output only. The number of impressions for the user list license.

int64 impression_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

clearRevenueUsdMicros()

public UserListLicenseMetrics.Builder clearRevenueUsdMicros()

Output only. The revenue for the user list license in USD micros.

int64 revenue_usd_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

clearStartDate()

public UserListLicenseMetrics.Builder clearStartDate()

Output only. The start date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If end_date is used in the filter, start_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 start_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

getClickCount()

public long getClickCount()

Output only. The number of clicks for the user list license.

int64 click_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The clickCount.

getDefaultInstanceForType()

public UserListLicenseMetrics getDefaultInstanceForType()
Returns
Type Description
UserListLicenseMetrics

getDescriptorForType()

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

getEndDate()

public long getEndDate()

Output only. The end date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If start_date is used in the filter, end_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 end_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The endDate.

getImpressionCount()

public long getImpressionCount()

Output only. The number of impressions for the user list license.

int64 impression_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The impressionCount.

getRevenueUsdMicros()

public long getRevenueUsdMicros()

Output only. The revenue for the user list license in USD micros.

int64 revenue_usd_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The revenueUsdMicros.

getStartDate()

public long getStartDate()

Output only. The start date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If end_date is used in the filter, start_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 start_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The startDate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserListLicenseMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setClickCount(long value)

public UserListLicenseMetrics.Builder setClickCount(long value)

Output only. The number of clicks for the user list license.

int64 click_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The clickCount to set.

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

setEndDate(long value)

public UserListLicenseMetrics.Builder setEndDate(long value)

Output only. The end date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If start_date is used in the filter, end_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 end_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The endDate to set.

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

setImpressionCount(long value)

public UserListLicenseMetrics.Builder setImpressionCount(long value)

Output only. The number of impressions for the user list license.

int64 impression_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The impressionCount to set.

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

setRevenueUsdMicros(long value)

public UserListLicenseMetrics.Builder setRevenueUsdMicros(long value)

Output only. The revenue for the user list license in USD micros.

int64 revenue_usd_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The revenueUsdMicros to set.

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.

setStartDate(long value)

public UserListLicenseMetrics.Builder setStartDate(long value)

Output only. The start date (inclusive) of the metrics in the format YYYYMMDD. For example, 20260102 represents January 2, 2026. If end_date is used in the filter, start_date is also required. If neither start_date nor end_date are included in the filter, the UserListLicenseMetrics fields will not be populated in the response.

int64 start_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The startDate to set.

Returns
Type Description
UserListLicenseMetrics.Builder

This builder for chaining.