Class FeatureStatsAndAnomalySpec.Builder (3.84.0)

public static final class FeatureStatsAndAnomalySpec.Builder extends GeneratedMessage.Builder<FeatureStatsAndAnomalySpec.Builder> implements FeatureStatsAndAnomalySpecOrBuilder

Defines how to select FeatureStatsAndAnomaly to be populated in response. If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based on this spec.

Protobuf type google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec

Static Methods

getDescriptor()

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

Methods

build()

public FeatureStatsAndAnomalySpec build()
Returns
Type Description
FeatureStatsAndAnomalySpec

buildPartial()

public FeatureStatsAndAnomalySpec buildPartial()
Returns
Type Description
FeatureStatsAndAnomalySpec

clear()

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

clearLatestStatsCount()

public FeatureStatsAndAnomalySpec.Builder clearLatestStatsCount()

Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.

optional int32 latest_stats_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FeatureStatsAndAnomalySpec.Builder

This builder for chaining.

clearStatsTimeRange()

public FeatureStatsAndAnomalySpec.Builder clearStatsTimeRange()

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FeatureStatsAndAnomalySpec.Builder

getDefaultInstanceForType()

public FeatureStatsAndAnomalySpec getDefaultInstanceForType()
Returns
Type Description
FeatureStatsAndAnomalySpec

getDescriptorForType()

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

getLatestStatsCount()

public int getLatestStatsCount()

Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.

optional int32 latest_stats_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The latestStatsCount.

getStatsTimeRange()

public Interval getStatsTimeRange()

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Interval

The statsTimeRange.

getStatsTimeRangeBuilder()

public Interval.Builder getStatsTimeRangeBuilder()

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Interval.Builder

getStatsTimeRangeOrBuilder()

public IntervalOrBuilder getStatsTimeRangeOrBuilder()

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.IntervalOrBuilder

hasLatestStatsCount()

public boolean hasLatestStatsCount()

Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.

optional int32 latest_stats_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the latestStatsCount field is set.

hasStatsTimeRange()

public boolean hasStatsTimeRange()

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the statsTimeRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FeatureStatsAndAnomalySpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStatsTimeRange(Interval value)

public FeatureStatsAndAnomalySpec.Builder mergeStatsTimeRange(Interval value)

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder

setLatestStatsCount(int value)

public FeatureStatsAndAnomalySpec.Builder setLatestStatsCount(int value)

Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.

optional int32 latest_stats_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The latestStatsCount to set.

Returns
Type Description
FeatureStatsAndAnomalySpec.Builder

This builder for chaining.

setStatsTimeRange(Interval value)

public FeatureStatsAndAnomalySpec.Builder setStatsTimeRange(Interval value)

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder

setStatsTimeRange(Interval.Builder builderForValue)

public FeatureStatsAndAnomalySpec.Builder setStatsTimeRange(Interval.Builder builderForValue)

Optional. If set, return all stats generated between [start_time, end_time). If latest_stats_count is set, return the most recent count of stats within the stats_time_range.

.google.type.Interval stats_time_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder