com.google.cloud.automl.v1beta1.StringStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-automl-v1beta1 Show documentation
Show all versions of proto-google-cloud-automl-v1beta1 Show documentation
PROTO library for proto-google-cloud-automl-v1beta1
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/automl/v1beta1/data_stats.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.automl.v1beta1;
/**
*
*
*
* The data statistics of a series of STRING values.
*
*
* Protobuf type {@code google.cloud.automl.v1beta1.StringStats}
*/
public final class StringStats extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StringStats)
StringStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringStats.newBuilder() to construct.
private StringStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringStats() {
topUnigramStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new StringStats();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.automl.v1beta1.StringStats.class,
com.google.cloud.automl.v1beta1.StringStats.Builder.class);
}
public interface UnigramStatsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StringStats.UnigramStats)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The value.
*/
java.lang.String getValue();
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
com.google.protobuf.ByteString getValueBytes();
/**
*
*
*
* The number of occurrences of this unigram in the series.
*
*
* int64 count = 2;
*
* @return The count.
*/
long getCount();
}
/**
*
*
*
* The statistics of a unigram.
*
*
* Protobuf type {@code google.cloud.automl.v1beta1.StringStats.UnigramStats}
*/
public static final class UnigramStats extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StringStats.UnigramStats)
UnigramStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnigramStats.newBuilder() to construct.
private UnigramStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnigramStats() {
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UnigramStats();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.class,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 2;
private long count_ = 0L;
/**
*
*
*
* The number of occurrences of this unigram in the series.
*
*
* int64 count = 2;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
if (count_ != 0L) {
output.writeInt64(2, count_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_);
}
size += getUnknownFields().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.google.cloud.automl.v1beta1.StringStats.UnigramStats)) {
return super.equals(obj);
}
com.google.cloud.automl.v1beta1.StringStats.UnigramStats other =
(com.google.cloud.automl.v1beta1.StringStats.UnigramStats) obj;
if (!getValue().equals(other.getValue())) return false;
if (getCount() != other.getCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats 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.google.cloud.automl.v1beta1.StringStats.UnigramStats parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats 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.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats 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.google.cloud.automl.v1beta1.StringStats.UnigramStats 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;
}
/**
*
*
*
* The statistics of a unigram.
*
*
* Protobuf type {@code google.cloud.automl.v1beta1.StringStats.UnigramStats}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StringStats.UnigramStats)
com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.class,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder.class);
}
// Construct using com.google.cloud.automl.v1beta1.StringStats.UnigramStats.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
value_ = "";
count_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor;
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstanceForType() {
return com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats build() {
com.google.cloud.automl.v1beta1.StringStats.UnigramStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats buildPartial() {
com.google.cloud.automl.v1beta1.StringStats.UnigramStats result =
new com.google.cloud.automl.v1beta1.StringStats.UnigramStats(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.automl.v1beta1.StringStats.UnigramStats result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.count_ = count_;
}
}
@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.google.cloud.automl.v1beta1.StringStats.UnigramStats) {
return mergeFrom((com.google.cloud.automl.v1beta1.StringStats.UnigramStats) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats.UnigramStats other) {
if (other == com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance())
return this;
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
count_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object value_ = "";
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The unigram.
*
*
* string value = 1;
*
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long count_;
/**
*
*
*
* The number of occurrences of this unigram in the series.
*
*
* int64 count = 2;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
*
*
* The number of occurrences of this unigram in the series.
*
*
* int64 count = 2;
*
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The number of occurrences of this unigram in the series.
*
*
* int64 count = 2;
*
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0L;
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:google.cloud.automl.v1beta1.StringStats.UnigramStats)
}
// @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StringStats.UnigramStats)
private static final com.google.cloud.automl.v1beta1.StringStats.UnigramStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StringStats.UnigramStats();
}
public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnigramStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TOP_UNIGRAM_STATS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List topUnigramStats_;
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
@java.lang.Override
public java.util.List
getTopUnigramStatsList() {
return topUnigramStats_;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>
getTopUnigramStatsOrBuilderList() {
return topUnigramStats_;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
@java.lang.Override
public int getTopUnigramStatsCount() {
return topUnigramStats_.size();
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramStats(int index) {
return topUnigramStats_.get(index);
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder
getTopUnigramStatsOrBuilder(int index) {
return topUnigramStats_.get(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 {
for (int i = 0; i < topUnigramStats_.size(); i++) {
output.writeMessage(1, topUnigramStats_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < topUnigramStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topUnigramStats_.get(i));
}
size += getUnknownFields().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.google.cloud.automl.v1beta1.StringStats)) {
return super.equals(obj);
}
com.google.cloud.automl.v1beta1.StringStats other =
(com.google.cloud.automl.v1beta1.StringStats) obj;
if (!getTopUnigramStatsList().equals(other.getTopUnigramStatsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTopUnigramStatsCount() > 0) {
hash = (37 * hash) + TOP_UNIGRAM_STATS_FIELD_NUMBER;
hash = (53 * hash) + getTopUnigramStatsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.automl.v1beta1.StringStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats 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.google.cloud.automl.v1beta1.StringStats parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats 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.google.cloud.automl.v1beta1.StringStats parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.automl.v1beta1.StringStats 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.google.cloud.automl.v1beta1.StringStats 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;
}
/**
*
*
*
* The data statistics of a series of STRING values.
*
*
* Protobuf type {@code google.cloud.automl.v1beta1.StringStats}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StringStats)
com.google.cloud.automl.v1beta1.StringStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.automl.v1beta1.StringStats.class,
com.google.cloud.automl.v1beta1.StringStats.Builder.class);
}
// Construct using com.google.cloud.automl.v1beta1.StringStats.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (topUnigramStatsBuilder_ == null) {
topUnigramStats_ = java.util.Collections.emptyList();
} else {
topUnigramStats_ = null;
topUnigramStatsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.automl.v1beta1.DataStatsOuterClass
.internal_static_google_cloud_automl_v1beta1_StringStats_descriptor;
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() {
return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats build() {
com.google.cloud.automl.v1beta1.StringStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.StringStats buildPartial() {
com.google.cloud.automl.v1beta1.StringStats result =
new com.google.cloud.automl.v1beta1.StringStats(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.automl.v1beta1.StringStats result) {
if (topUnigramStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
topUnigramStats_ = java.util.Collections.unmodifiableList(topUnigramStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.topUnigramStats_ = topUnigramStats_;
} else {
result.topUnigramStats_ = topUnigramStatsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.automl.v1beta1.StringStats result) {
int from_bitField0_ = bitField0_;
}
@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.google.cloud.automl.v1beta1.StringStats) {
return mergeFrom((com.google.cloud.automl.v1beta1.StringStats) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats other) {
if (other == com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance()) return this;
if (topUnigramStatsBuilder_ == null) {
if (!other.topUnigramStats_.isEmpty()) {
if (topUnigramStats_.isEmpty()) {
topUnigramStats_ = other.topUnigramStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.addAll(other.topUnigramStats_);
}
onChanged();
}
} else {
if (!other.topUnigramStats_.isEmpty()) {
if (topUnigramStatsBuilder_.isEmpty()) {
topUnigramStatsBuilder_.dispose();
topUnigramStatsBuilder_ = null;
topUnigramStats_ = other.topUnigramStats_;
bitField0_ = (bitField0_ & ~0x00000001);
topUnigramStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTopUnigramStatsFieldBuilder()
: null;
} else {
topUnigramStatsBuilder_.addAllMessages(other.topUnigramStats_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.cloud.automl.v1beta1.StringStats.UnigramStats m =
input.readMessage(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.parser(),
extensionRegistry);
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.add(m);
} else {
topUnigramStatsBuilder_.addMessage(m);
}
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List
topUnigramStats_ = java.util.Collections.emptyList();
private void ensureTopUnigramStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
topUnigramStats_ =
new java.util.ArrayList(
topUnigramStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.automl.v1beta1.StringStats.UnigramStats,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder,
com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>
topUnigramStatsBuilder_;
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public java.util.List
getTopUnigramStatsList() {
if (topUnigramStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(topUnigramStats_);
} else {
return topUnigramStatsBuilder_.getMessageList();
}
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public int getTopUnigramStatsCount() {
if (topUnigramStatsBuilder_ == null) {
return topUnigramStats_.size();
} else {
return topUnigramStatsBuilder_.getCount();
}
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramStats(int index) {
if (topUnigramStatsBuilder_ == null) {
return topUnigramStats_.get(index);
} else {
return topUnigramStatsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder setTopUnigramStats(
int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) {
if (topUnigramStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopUnigramStatsIsMutable();
topUnigramStats_.set(index, value);
onChanged();
} else {
topUnigramStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder setTopUnigramStats(
int index,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) {
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.set(index, builderForValue.build());
onChanged();
} else {
topUnigramStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder addTopUnigramStats(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) {
if (topUnigramStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopUnigramStatsIsMutable();
topUnigramStats_.add(value);
onChanged();
} else {
topUnigramStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder addTopUnigramStats(
int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) {
if (topUnigramStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopUnigramStatsIsMutable();
topUnigramStats_.add(index, value);
onChanged();
} else {
topUnigramStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder addTopUnigramStats(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) {
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.add(builderForValue.build());
onChanged();
} else {
topUnigramStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder addTopUnigramStats(
int index,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) {
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.add(index, builderForValue.build());
onChanged();
} else {
topUnigramStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder addAllTopUnigramStats(
java.lang.Iterable extends com.google.cloud.automl.v1beta1.StringStats.UnigramStats>
values) {
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topUnigramStats_);
onChanged();
} else {
topUnigramStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder clearTopUnigramStats() {
if (topUnigramStatsBuilder_ == null) {
topUnigramStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
topUnigramStatsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public Builder removeTopUnigramStats(int index) {
if (topUnigramStatsBuilder_ == null) {
ensureTopUnigramStatsIsMutable();
topUnigramStats_.remove(index);
onChanged();
} else {
topUnigramStatsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder
getTopUnigramStatsBuilder(int index) {
return getTopUnigramStatsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder
getTopUnigramStatsOrBuilder(int index) {
if (topUnigramStatsBuilder_ == null) {
return topUnigramStats_.get(index);
} else {
return topUnigramStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public java.util.List<
? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>
getTopUnigramStatsOrBuilderList() {
if (topUnigramStatsBuilder_ != null) {
return topUnigramStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topUnigramStats_);
}
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder
addTopUnigramStatsBuilder() {
return getTopUnigramStatsFieldBuilder()
.addBuilder(
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance());
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder
addTopUnigramStatsBuilder(int index) {
return getTopUnigramStatsFieldBuilder()
.addBuilder(
index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance());
}
/**
*
*
*
* The statistics of the top 20 unigrams, ordered by
* [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
*
*
* repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;
*
*/
public java.util.List
getTopUnigramStatsBuilderList() {
return getTopUnigramStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.automl.v1beta1.StringStats.UnigramStats,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder,
com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>
getTopUnigramStatsFieldBuilder() {
if (topUnigramStatsBuilder_ == null) {
topUnigramStatsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.automl.v1beta1.StringStats.UnigramStats,
com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder,
com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>(
topUnigramStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
topUnigramStats_ = null;
}
return topUnigramStatsBuilder_;
}
@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:google.cloud.automl.v1beta1.StringStats)
}
// @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StringStats)
private static final com.google.cloud.automl.v1beta1.StringStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StringStats();
}
public static com.google.cloud.automl.v1beta1.StringStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}