Class FeatureStatsAndAnomalySpec.Builder (3.55.0)

public static final class FeatureStatsAndAnomalySpec.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FeatureStatsAndAnomalySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public FeatureStatsAndAnomalySpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public FeatureStatsAndAnomalySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FeatureStatsAndAnomalySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FeatureStatsAndAnomalySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FeatureStatsAndAnomalySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final FeatureStatsAndAnomalySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FeatureStatsAndAnomalySpec.Builder
Overrides