All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.StatValueAggregate Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * StatValueAggregate
 * 
* * Protobuf type {@code clarifai.api.StatValueAggregate} */ public final class StatValueAggregate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.StatValueAggregate) StatValueAggregateOrBuilder { private static final long serialVersionUID = 0L; // Use StatValueAggregate.newBuilder() to construct. private StatValueAggregate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatValueAggregate() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StatValueAggregate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatValueAggregate( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (time_ != null) { subBuilder = time_.toBuilder(); } time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(time_); time_ = subBuilder.buildPartial(); } break; } case 21: { aggregateValue_ = input.readFloat(); break; } case 24: { count_ = input.readUInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } tags_.add(s); 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(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.StatValueAggregate.class, com.clarifai.grpc.api.StatValueAggregate.Builder.class); } public static final int TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp time_; /** *
   * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
   * expect each hour that has atleast one value (matching the rest of your query fields) will have
   * a StatValueAggregate with the time filled into that hour.
   * 
* * .google.protobuf.Timestamp time = 1; * @return Whether the time field is set. */ @java.lang.Override public boolean hasTime() { return time_ != null; } /** *
   * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
   * expect each hour that has atleast one value (matching the rest of your query fields) will have
   * a StatValueAggregate with the time filled into that hour.
   * 
* * .google.protobuf.Timestamp time = 1; * @return The time. */ @java.lang.Override public com.google.protobuf.Timestamp getTime() { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } /** *
   * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
   * expect each hour that has atleast one value (matching the rest of your query fields) will have
   * a StatValueAggregate with the time filled into that hour.
   * 
* * .google.protobuf.Timestamp time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return getTime(); } public static final int AGGREGATE_VALUE_FIELD_NUMBER = 2; private float aggregateValue_; /** *
   * The value aggregated according to the stat_value_agg_type
   * 
* * float aggregate_value = 2; * @return The aggregateValue. */ @java.lang.Override public float getAggregateValue() { return aggregateValue_; } public static final int COUNT_FIELD_NUMBER = 3; private long count_; /** *
   * The count of the stat values that were used in this aggregation.
   * 
* * uint64 count = 3; * @return The count. */ @java.lang.Override public long getCount() { return count_; } public static final int TAGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList tags_; /** *
   * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
   * the query to group aggregations.
   * 
* * repeated string tags = 4; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
   * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
   * the query to group aggregations.
   * 
* * repeated string tags = 4; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
   * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
   * the query to group aggregations.
   * 
* * repeated string tags = 4; * @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); } /** *
   * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
   * the query to group aggregations.
   * 
* * repeated string tags = 4; * @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); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (time_ != null) { output.writeMessage(1, getTime()); } if (java.lang.Float.floatToRawIntBits(aggregateValue_) != 0) { output.writeFloat(2, aggregateValue_); } if (count_ != 0L) { output.writeUInt64(3, count_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (time_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTime()); } if (java.lang.Float.floatToRawIntBits(aggregateValue_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, aggregateValue_); } if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, count_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.StatValueAggregate)) { return super.equals(obj); } com.clarifai.grpc.api.StatValueAggregate other = (com.clarifai.grpc.api.StatValueAggregate) obj; if (hasTime() != other.hasTime()) return false; if (hasTime()) { if (!getTime() .equals(other.getTime())) return false; } if (java.lang.Float.floatToIntBits(getAggregateValue()) != java.lang.Float.floatToIntBits( other.getAggregateValue())) return false; if (getCount() != other.getCount()) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } hash = (37 * hash) + AGGREGATE_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getAggregateValue()); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.StatValueAggregate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.StatValueAggregate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.StatValueAggregate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.StatValueAggregate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * StatValueAggregate
   * 
* * Protobuf type {@code clarifai.api.StatValueAggregate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.StatValueAggregate) com.clarifai.grpc.api.StatValueAggregateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.StatValueAggregate.class, com.clarifai.grpc.api.StatValueAggregate.Builder.class); } // Construct using com.clarifai.grpc.api.StatValueAggregate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (timeBuilder_ == null) { time_ = null; } else { time_ = null; timeBuilder_ = null; } aggregateValue_ = 0F; count_ = 0L; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_StatValueAggregate_descriptor; } @java.lang.Override public com.clarifai.grpc.api.StatValueAggregate getDefaultInstanceForType() { return com.clarifai.grpc.api.StatValueAggregate.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.StatValueAggregate build() { com.clarifai.grpc.api.StatValueAggregate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.StatValueAggregate buildPartial() { com.clarifai.grpc.api.StatValueAggregate result = new com.clarifai.grpc.api.StatValueAggregate(this); int from_bitField0_ = bitField0_; if (timeBuilder_ == null) { result.time_ = time_; } else { result.time_ = timeBuilder_.build(); } result.aggregateValue_ = aggregateValue_; result.count_ = count_; if (((bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.StatValueAggregate) { return mergeFrom((com.clarifai.grpc.api.StatValueAggregate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.StatValueAggregate other) { if (other == com.clarifai.grpc.api.StatValueAggregate.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } if (other.getAggregateValue() != 0F) { setAggregateValue(other.getAggregateValue()); } if (other.getCount() != 0L) { setCount(other.getCount()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.StatValueAggregate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.StatValueAggregate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Timestamp time_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; * @return Whether the time field is set. */ public boolean hasTime() { return timeBuilder_ != null || time_ != null; } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; * @return The time. */ public com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } else { return timeBuilder_.getMessage(); } } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public Builder setTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } time_ = value; onChanged(); } else { timeBuilder_.setMessage(value); } return this; } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public Builder setTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); } else { timeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public Builder mergeTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (time_ != null) { time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); } else { time_ = value; } onChanged(); } else { timeBuilder_.mergeFrom(value); } return this; } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public Builder clearTime() { if (timeBuilder_ == null) { time_ = null; onChanged(); } else { time_ = null; timeBuilder_ = null; } return this; } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { onChanged(); return getTimeFieldBuilder().getBuilder(); } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } } /** *
     * The time of the aggregation. For example, if you aggregate over "HOUR" buckets then you can
     * expect each hour that has atleast one value (matching the rest of your query fields) will have
     * a StatValueAggregate with the time filled into that hour.
     * 
* * .google.protobuf.Timestamp time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; } private float aggregateValue_ ; /** *
     * The value aggregated according to the stat_value_agg_type
     * 
* * float aggregate_value = 2; * @return The aggregateValue. */ @java.lang.Override public float getAggregateValue() { return aggregateValue_; } /** *
     * The value aggregated according to the stat_value_agg_type
     * 
* * float aggregate_value = 2; * @param value The aggregateValue to set. * @return This builder for chaining. */ public Builder setAggregateValue(float value) { aggregateValue_ = value; onChanged(); return this; } /** *
     * The value aggregated according to the stat_value_agg_type
     * 
* * float aggregate_value = 2; * @return This builder for chaining. */ public Builder clearAggregateValue() { aggregateValue_ = 0F; onChanged(); return this; } private long count_ ; /** *
     * The count of the stat values that were used in this aggregation.
     * 
* * uint64 count = 3; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** *
     * The count of the stat values that were used in this aggregation.
     * 
* * uint64 count = 3; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** *
     * The count of the stat values that were used in this aggregation.
     * 
* * uint64 count = 3; * @return This builder for chaining. */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000001; } } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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); } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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); } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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; } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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; } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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; } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The tags for this aggregated_value and count. This will be filled in if tag groups were used in
     * the query to group aggregations.
     * 
* * repeated string tags = 4; * @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; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.StatValueAggregate) } // @@protoc_insertion_point(class_scope:clarifai.api.StatValueAggregate) private static final com.clarifai.grpc.api.StatValueAggregate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.StatValueAggregate(); } public static com.clarifai.grpc.api.StatValueAggregate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StatValueAggregate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatValueAggregate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.clarifai.grpc.api.StatValueAggregate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy