public static final class Metric.Builder extends GeneratedMessage.Builder<Metric.Builder> implements MetricOrBuilderStores precomputed aggregated analytic data for an entity.
Protobuf type google.backstory.Metric
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Metric.BuilderImplements
MetricOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDimensions(Iterable<? extends Metric.Dimension> values)
public Metric.Builder addAllDimensions(Iterable<? extends Metric.Dimension> values)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.backstory.Metric.Dimension>The dimensions to add. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
addAllDimensionsValue(Iterable<Integer> values)
public Metric.Builder addAllDimensionsValue(Iterable<Integer> values)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for dimensions to add. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
addAllMatchVariables(Iterable<? extends FindingVariable> values)
public Metric.Builder addAllMatchVariables(Iterable<? extends FindingVariable> values)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.backstory.FindingVariable> |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addAllOutcomeVariables(Iterable<? extends FindingVariable> values)
public Metric.Builder addAllOutcomeVariables(Iterable<? extends FindingVariable> values)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.backstory.FindingVariable> |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addDimensions(Metric.Dimension value)
public Metric.Builder addDimensions(Metric.Dimension value)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Metric.DimensionThe dimensions to add. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
addDimensionsValue(int value)
public Metric.Builder addDimensionsValue(int value)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dimensions to add. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
addMatchVariables(FindingVariable value)
public Metric.Builder addMatchVariables(FindingVariable value)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addMatchVariables(FindingVariable.Builder builderForValue)
public Metric.Builder addMatchVariables(FindingVariable.Builder builderForValue)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addMatchVariables(int index, FindingVariable value)
public Metric.Builder addMatchVariables(int index, FindingVariable value)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addMatchVariables(int index, FindingVariable.Builder builderForValue)
public Metric.Builder addMatchVariables(int index, FindingVariable.Builder builderForValue)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addMatchVariablesBuilder()
public FindingVariable.Builder addMatchVariablesBuilder()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
addMatchVariablesBuilder(int index)
public FindingVariable.Builder addMatchVariablesBuilder(int index)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
addOutcomeVariables(FindingVariable value)
public Metric.Builder addOutcomeVariables(FindingVariable value)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addOutcomeVariables(FindingVariable.Builder builderForValue)
public Metric.Builder addOutcomeVariables(FindingVariable.Builder builderForValue)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addOutcomeVariables(int index, FindingVariable value)
public Metric.Builder addOutcomeVariables(int index, FindingVariable value)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addOutcomeVariables(int index, FindingVariable.Builder builderForValue)
public Metric.Builder addOutcomeVariables(int index, FindingVariable.Builder builderForValue)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
addOutcomeVariablesBuilder()
public FindingVariable.Builder addOutcomeVariablesBuilder()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
addOutcomeVariablesBuilder(int index)
public FindingVariable.Builder addOutcomeVariablesBuilder(int index)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
build()
public Metric build()| Returns | |
|---|---|
| Type | Description |
Metric |
|
buildPartial()
public Metric buildPartial()| Returns | |
|---|---|
| Type | Description |
Metric |
|
clear()
public Metric.Builder clear()| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearDimensions()
public Metric.Builder clearDimensions()All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
clearDisplayName()
public Metric.Builder clearDisplayName()Display name of the custom metric. Google-authored metrics do not have a display name.
string display_name = 8;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
clearExportWindow()
public Metric.Builder clearExportWindow()Export window for which the metric was exported.
int64 export_window = 7;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
clearFirstSeen()
public Metric.Builder clearFirstSeen()Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearLastSeen()
public Metric.Builder clearLastSeen()Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearMatchVariables()
public Metric.Builder clearMatchVariables()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearMetricName()
public Metric.Builder clearMetricName()Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
clearOutcomeVariables()
public Metric.Builder clearOutcomeVariables()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearSumMeasure()
public Metric.Builder clearSumMeasure()Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearTimeRange()
public Metric.Builder clearTimeRange()Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
clearTotalEvents()
public Metric.Builder clearTotalEvents()Total number of events used to calculate the given precomputed metric.
int64 total_events = 4;
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Metric getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Metric |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDimensions(int index)
public Metric.Dimension getDimensions(int index)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Metric.Dimension |
The dimensions at the given index. |
getDimensionsCount()
public int getDimensionsCount()All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns | |
|---|---|
| Type | Description |
int |
The count of dimensions. |
getDimensionsList()
public List<Metric.Dimension> getDimensionsList()All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns | |
|---|---|
| Type | Description |
List<Dimension> |
A list containing the dimensions. |
getDimensionsValue(int index)
public int getDimensionsValue(int index)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of dimensions at the given index. |
getDimensionsValueList()
public List<Integer> getDimensionsValueList()All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for dimensions. |
getDisplayName()
public String getDisplayName()Display name of the custom metric. Google-authored metrics do not have a display name.
string display_name = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Display name of the custom metric. Google-authored metrics do not have a display name.
string display_name = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getExportWindow()
public long getExportWindow()Export window for which the metric was exported.
int64 export_window = 7;
| Returns | |
|---|---|
| Type | Description |
long |
The exportWindow. |
getFirstSeen()
public Timestamp getFirstSeen()Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The firstSeen. |
getFirstSeenBuilder()
public Timestamp.Builder getFirstSeenBuilder()Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getFirstSeenOrBuilder()
public TimestampOrBuilder getFirstSeenOrBuilder()Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getLastSeen()
public Timestamp getLastSeen()Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastSeen. |
getLastSeenBuilder()
public Timestamp.Builder getLastSeenBuilder()Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLastSeenOrBuilder()
public TimestampOrBuilder getLastSeenOrBuilder()Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getMatchVariables(int index)
public FindingVariable getMatchVariables(int index)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable |
|
getMatchVariablesBuilder(int index)
public FindingVariable.Builder getMatchVariablesBuilder(int index)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
getMatchVariablesBuilderList()
public List<FindingVariable.Builder> getMatchVariablesBuilderList()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getMatchVariablesCount()
public int getMatchVariablesCount()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMatchVariablesList()
public List<FindingVariable> getMatchVariablesList()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
List<FindingVariable> |
|
getMatchVariablesOrBuilder(int index)
public FindingVariableOrBuilder getMatchVariablesOrBuilder(int index)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariableOrBuilder |
|
getMatchVariablesOrBuilderList()
public List<? extends FindingVariableOrBuilder> getMatchVariablesOrBuilderList()List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.backstory.FindingVariableOrBuilder> |
|
getMetricName()
public Metric.MetricName getMetricName()Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Returns | |
|---|---|
| Type | Description |
Metric.MetricName |
The metricName. |
getMetricNameValue()
public int getMetricNameValue()Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for metricName. |
getOutcomeVariables(int index)
public FindingVariable getOutcomeVariables(int index)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable |
|
getOutcomeVariablesBuilder(int index)
public FindingVariable.Builder getOutcomeVariablesBuilder(int index)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariable.Builder |
|
getOutcomeVariablesBuilderList()
public List<FindingVariable.Builder> getOutcomeVariablesBuilderList()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getOutcomeVariablesCount()
public int getOutcomeVariablesCount()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
int |
|
getOutcomeVariablesList()
public List<FindingVariable> getOutcomeVariablesList()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
List<FindingVariable> |
|
getOutcomeVariablesOrBuilder(int index)
public FindingVariableOrBuilder getOutcomeVariablesOrBuilder(int index)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
FindingVariableOrBuilder |
|
getOutcomeVariablesOrBuilderList()
public List<? extends FindingVariableOrBuilder> getOutcomeVariablesOrBuilderList()List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.backstory.FindingVariableOrBuilder> |
|
getSumMeasure()
public Metric.Measure getSumMeasure()Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns | |
|---|---|
| Type | Description |
Metric.Measure |
The sumMeasure. |
getSumMeasureBuilder()
public Metric.Measure.Builder getSumMeasureBuilder()Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns | |
|---|---|
| Type | Description |
Metric.Measure.Builder |
|
getSumMeasureOrBuilder()
public Metric.MeasureOrBuilder getSumMeasureOrBuilder()Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns | |
|---|---|
| Type | Description |
Metric.MeasureOrBuilder |
|
getTimeRange()
public Interval getTimeRange()Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval |
The timeRange. |
getTimeRangeBuilder()
public Interval.Builder getTimeRangeBuilder()Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval.Builder |
|
getTimeRangeOrBuilder()
public IntervalOrBuilder getTimeRangeOrBuilder()Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns | |
|---|---|
| Type | Description |
com.google.type.IntervalOrBuilder |
|
getTotalEvents()
public long getTotalEvents()Total number of events used to calculate the given precomputed metric.
int64 total_events = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The totalEvents. |
hasFirstSeen()
public boolean hasFirstSeen()Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the firstSeen field is set. |
hasLastSeen()
public boolean hasLastSeen()Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastSeen field is set. |
hasSumMeasure()
public boolean hasSumMeasure()Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sumMeasure field is set. |
hasTimeRange()
public boolean hasTimeRange()Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeRange field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFirstSeen(Timestamp value)
public Metric.Builder mergeFirstSeen(Timestamp value)Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
mergeFrom(Metric other)
public Metric.Builder mergeFrom(Metric other)| Parameter | |
|---|---|
| Name | Description |
other |
Metric |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Metric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Metric.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
mergeLastSeen(Timestamp value)
public Metric.Builder mergeLastSeen(Timestamp value)Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
mergeSumMeasure(Metric.Measure value)
public Metric.Builder mergeSumMeasure(Metric.Measure value)Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Metric.Measure |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
mergeTimeRange(Interval value)
public Metric.Builder mergeTimeRange(Interval value)Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
removeMatchVariables(int index)
public Metric.Builder removeMatchVariables(int index)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
removeOutcomeVariables(int index)
public Metric.Builder removeOutcomeVariables(int index)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setDimensions(int index, Metric.Dimension value)
public Metric.Builder setDimensions(int index, Metric.Dimension value)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
Metric.DimensionThe dimensions to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setDimensionsValue(int index, int value)
public Metric.Builder setDimensionsValue(int index, int value)All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for dimensions to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setDisplayName(String value)
public Metric.Builder setDisplayName(String value)Display name of the custom metric. Google-authored metrics do not have a display name.
string display_name = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Metric.Builder setDisplayNameBytes(ByteString value)Display name of the custom metric. Google-authored metrics do not have a display name.
string display_name = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setExportWindow(long value)
public Metric.Builder setExportWindow(long value)Export window for which the metric was exported.
int64 export_window = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe exportWindow to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setFirstSeen(Timestamp value)
public Metric.Builder setFirstSeen(Timestamp value)Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setFirstSeen(Timestamp.Builder builderForValue)
public Metric.Builder setFirstSeen(Timestamp.Builder builderForValue)Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setLastSeen(Timestamp value)
public Metric.Builder setLastSeen(Timestamp value)Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setLastSeen(Timestamp.Builder builderForValue)
public Metric.Builder setLastSeen(Timestamp.Builder builderForValue)Time stamp of the last time last time the entity was seen in the environment.
.google.protobuf.Timestamp last_seen = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setMatchVariables(int index, FindingVariable value)
public Metric.Builder setMatchVariables(int index, FindingVariable value)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setMatchVariables(int index, FindingVariable.Builder builderForValue)
public Metric.Builder setMatchVariables(int index, FindingVariable.Builder builderForValue)List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setMetricName(Metric.MetricName value)
public Metric.Builder setMetricName(Metric.MetricName value)Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Metric.MetricNameThe metricName to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setMetricNameValue(int value)
public Metric.Builder setMetricNameValue(int value)Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for metricName to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |
setOutcomeVariables(int index, FindingVariable value)
public Metric.Builder setOutcomeVariables(int index, FindingVariable value)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
FindingVariable |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setOutcomeVariables(int index, FindingVariable.Builder builderForValue)
public Metric.Builder setOutcomeVariables(int index, FindingVariable.Builder builderForValue)List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
FindingVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setSumMeasure(Metric.Measure value)
public Metric.Builder setSumMeasure(Metric.Measure value)Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Metric.Measure |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setSumMeasure(Metric.Measure.Builder builderForValue)
public Metric.Builder setSumMeasure(Metric.Measure.Builder builderForValue)Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Metric.Measure.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setTimeRange(Interval value)
public Metric.Builder setTimeRange(Interval value)Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setTimeRange(Interval.Builder builderForValue)
public Metric.Builder setTimeRange(Interval.Builder builderForValue)Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Interval.Builder |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
|
setTotalEvents(long value)
public Metric.Builder setTotalEvents(long value)Total number of events used to calculate the given precomputed metric.
int64 total_events = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe totalEvents to set. |
| Returns | |
|---|---|
| Type | Description |
Metric.Builder |
This builder for chaining. |