Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* StatValueAggregateQuery
*
*
* Protobuf type {@code clarifai.api.StatValueAggregateQuery}
*/
public final class StatValueAggregateQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.StatValueAggregateQuery)
StatValueAggregateQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatValueAggregateQuery.newBuilder() to construct.
private StatValueAggregateQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatValueAggregateQuery() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
tagGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
statValueAggType_ = 0;
statTimeAggType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatValueAggregateQuery();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatValueAggregateQuery(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
tags_.add(s);
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
tagGroups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
tagGroups_.add(s);
break;
}
case 24: {
int rawValue = input.readEnum();
statValueAggType_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
statTimeAggType_ = rawValue;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startTime_ != null) {
subBuilder = startTime_.toBuilder();
}
startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTime_);
startTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (endTime_ != null) {
subBuilder = endTime_.toBuilder();
}
endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(endTime_);
endTime_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
tagGroups_ = tagGroups_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregateQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregateQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.StatValueAggregateQuery.class, com.clarifai.grpc.api.StatValueAggregateQuery.Builder.class);
}
public static final int TAGS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList tags_;
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int TAG_GROUPS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList tagGroups_;
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @return A list containing the tagGroups.
*/
public com.google.protobuf.ProtocolStringList
getTagGroupsList() {
return tagGroups_;
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @return The count of tagGroups.
*/
public int getTagGroupsCount() {
return tagGroups_.size();
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param index The index of the element to return.
* @return The tagGroups at the given index.
*/
public java.lang.String getTagGroups(int index) {
return tagGroups_.get(index);
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param index The index of the value to return.
* @return The bytes of the tagGroups at the given index.
*/
public com.google.protobuf.ByteString
getTagGroupsBytes(int index) {
return tagGroups_.getByteString(index);
}
public static final int STAT_VALUE_AGG_TYPE_FIELD_NUMBER = 3;
private int statValueAggType_;
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @return The enum numeric value on the wire for statValueAggType.
*/
@java.lang.Override public int getStatValueAggTypeValue() {
return statValueAggType_;
}
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @return The statValueAggType.
*/
@java.lang.Override public com.clarifai.grpc.api.StatValueAggType getStatValueAggType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.StatValueAggType result = com.clarifai.grpc.api.StatValueAggType.valueOf(statValueAggType_);
return result == null ? com.clarifai.grpc.api.StatValueAggType.UNRECOGNIZED : result;
}
public static final int STAT_TIME_AGG_TYPE_FIELD_NUMBER = 4;
private int statTimeAggType_;
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @return The enum numeric value on the wire for statTimeAggType.
*/
@java.lang.Override public int getStatTimeAggTypeValue() {
return statTimeAggType_;
}
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @return The statTimeAggType.
*/
@java.lang.Override public com.clarifai.grpc.api.StatTimeAggType getStatTimeAggType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.StatTimeAggType result = com.clarifai.grpc.api.StatTimeAggType.valueOf(statTimeAggType_);
return result == null ? com.clarifai.grpc.api.StatTimeAggType.UNRECOGNIZED : result;
}
public static final int START_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp startTime_;
/**
*
* If provided the time range over which values will be >= this time. If not provided then
* all values will be used back to start of time.
*
*
* .google.protobuf.Timestamp start_time = 5;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
* If provided the time range over which values will be >= this time. If not provided then
* all values will be used back to start of time.
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
* These tags are used to filter down the values before they are aggregated. For example,
* if you want to aggregate values for "task_id:a" you could specify that as a tag here.
*
*
* repeated string tags = 1;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList tagGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagGroupsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tagGroups_ = new com.google.protobuf.LazyStringArrayList(tagGroups_);
bitField0_ |= 0x00000002;
}
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @return A list containing the tagGroups.
*/
public com.google.protobuf.ProtocolStringList
getTagGroupsList() {
return tagGroups_.getUnmodifiableView();
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @return The count of tagGroups.
*/
public int getTagGroupsCount() {
return tagGroups_.size();
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param index The index of the element to return.
* @return The tagGroups at the given index.
*/
public java.lang.String getTagGroups(int index) {
return tagGroups_.get(index);
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param index The index of the value to return.
* @return The bytes of the tagGroups at the given index.
*/
public com.google.protobuf.ByteString
getTagGroupsBytes(int index) {
return tagGroups_.getByteString(index);
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param index The index to set the value at.
* @param value The tagGroups to set.
* @return This builder for chaining.
*/
public Builder setTagGroups(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagGroupsIsMutable();
tagGroups_.set(index, value);
onChanged();
return this;
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param value The tagGroups to add.
* @return This builder for chaining.
*/
public Builder addTagGroups(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagGroupsIsMutable();
tagGroups_.add(value);
onChanged();
return this;
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param values The tagGroups to add.
* @return This builder for chaining.
*/
public Builder addAllTagGroups(
java.lang.Iterable values) {
ensureTagGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tagGroups_);
onChanged();
return this;
}
/**
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
* These are tag groups to aggregate over. So for example if you added stat values with tags
* "task_id:a" and others with "task_id:b", then added ["task_id"] to the task group, it the
* aggregation would return StatValueAggregate values for each task_id. If you provide more than
* one tag_group the response will return all rolled up combinations of them. For example
* ["task_id", "something"] where "something:1" and "something:2" were used as tags for some
* values then you'd get StatValueAggregate values back for:
* task_id | something
* a | 1
* a | 2
* b | 1
* b | 1
*
*
* repeated string tag_groups = 2;
* @param value The bytes of the tagGroups to add.
* @return This builder for chaining.
*/
public Builder addTagGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagGroupsIsMutable();
tagGroups_.add(value);
onChanged();
return this;
}
private int statValueAggType_ = 0;
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @return The enum numeric value on the wire for statValueAggType.
*/
@java.lang.Override public int getStatValueAggTypeValue() {
return statValueAggType_;
}
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @param value The enum numeric value on the wire for statValueAggType to set.
* @return This builder for chaining.
*/
public Builder setStatValueAggTypeValue(int value) {
statValueAggType_ = value;
onChanged();
return this;
}
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @return The statValueAggType.
*/
@java.lang.Override
public com.clarifai.grpc.api.StatValueAggType getStatValueAggType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.StatValueAggType result = com.clarifai.grpc.api.StatValueAggType.valueOf(statValueAggType_);
return result == null ? com.clarifai.grpc.api.StatValueAggType.UNRECOGNIZED : result;
}
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @param value The statValueAggType to set.
* @return This builder for chaining.
*/
public Builder setStatValueAggType(com.clarifai.grpc.api.StatValueAggType value) {
if (value == null) {
throw new NullPointerException();
}
statValueAggType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Aggregation function to use over the values. Count(value) is also always returns.
* Defaults to 'sum' if not provided.
*
*
* .clarifai.api.StatValueAggType stat_value_agg_type = 3;
* @return This builder for chaining.
*/
public Builder clearStatValueAggType() {
statValueAggType_ = 0;
onChanged();
return this;
}
private int statTimeAggType_ = 0;
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @return The enum numeric value on the wire for statTimeAggType.
*/
@java.lang.Override public int getStatTimeAggTypeValue() {
return statTimeAggType_;
}
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @param value The enum numeric value on the wire for statTimeAggType to set.
* @return This builder for chaining.
*/
public Builder setStatTimeAggTypeValue(int value) {
statTimeAggType_ = value;
onChanged();
return this;
}
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @return The statTimeAggType.
*/
@java.lang.Override
public com.clarifai.grpc.api.StatTimeAggType getStatTimeAggType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.StatTimeAggType result = com.clarifai.grpc.api.StatTimeAggType.valueOf(statTimeAggType_);
return result == null ? com.clarifai.grpc.api.StatTimeAggType.UNRECOGNIZED : result;
}
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*
*
* .clarifai.api.StatTimeAggType stat_time_agg_type = 4;
* @param value The statTimeAggType to set.
* @return This builder for chaining.
*/
public Builder setStatTimeAggType(com.clarifai.grpc.api.StatTimeAggType value) {
if (value == null) {
throw new NullPointerException();
}
statTimeAggType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Aggregation bins for time where the values will be aggregated at this bin granualarity.
* And the "time" field will be returned in StatValueAggregate object.
* If not provided then bins are not used, and all time is aggregated over.
*