
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult Maven / Gradle / Ivy
/*
* 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/visionai/v1/annotations.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* The prediction result proto for occupancy counting.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult}
*/
public final class OccupancyCountingPredictionResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult)
OccupancyCountingPredictionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use OccupancyCountingPredictionResult.newBuilder() to construct.
private OccupancyCountingPredictionResult(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OccupancyCountingPredictionResult() {
identifiedBoxes_ = java.util.Collections.emptyList();
trackInfo_ = java.util.Collections.emptyList();
dwellTimeInfo_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OccupancyCountingPredictionResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Builder.class);
}
public interface EntityOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Label id.
*
*
* int64 label_id = 1;
*
* @return The labelId.
*/
long getLabelId();
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The labelString.
*/
java.lang.String getLabelString();
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The bytes for labelString.
*/
com.google.protobuf.ByteString getLabelStringBytes();
}
/**
*
*
*
* The entity info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity}
*/
public static final class Entity extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity)
EntityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entity.newBuilder() to construct.
private Entity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entity() {
labelString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Entity();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Entity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Entity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder.class);
}
public static final int LABEL_ID_FIELD_NUMBER = 1;
private long labelId_ = 0L;
/**
*
*
*
* Label id.
*
*
* int64 label_id = 1;
*
* @return The labelId.
*/
@java.lang.Override
public long getLabelId() {
return labelId_;
}
public static final int LABEL_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object labelString_ = "";
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The labelString.
*/
@java.lang.Override
public java.lang.String getLabelString() {
java.lang.Object ref = labelString_;
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();
labelString_ = s;
return s;
}
}
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The bytes for labelString.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLabelStringBytes() {
java.lang.Object ref = labelString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
labelString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (labelId_ != 0L) {
output.writeInt64(1, labelId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, labelString_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (labelId_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, labelId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, labelString_);
}
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.visionai.v1.OccupancyCountingPredictionResult.Entity)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity) obj;
if (getLabelId() != other.getLabelId()) return false;
if (!getLabelString().equals(other.getLabelString())) 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) + LABEL_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLabelId());
hash = (37 * hash) + LABEL_STRING_FIELD_NUMBER;
hash = (53 * hash) + getLabelString().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity 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.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity 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.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity 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.visionai.v1.OccupancyCountingPredictionResult.Entity
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
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.visionai.v1.OccupancyCountingPredictionResult.Entity parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity 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.visionai.v1.OccupancyCountingPredictionResult.Entity 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 entity info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Entity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Entity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder
.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
labelId_ = 0L;
labelString_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Entity_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.labelId_ = labelId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.labelString_ = labelString_;
}
}
@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.visionai.v1.OccupancyCountingPredictionResult.Entity) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()) return this;
if (other.getLabelId() != 0L) {
setLabelId(other.getLabelId());
}
if (!other.getLabelString().isEmpty()) {
labelString_ = other.labelString_;
bitField0_ |= 0x00000002;
onChanged();
}
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 8:
{
labelId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
labelString_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 long labelId_;
/**
*
*
*
* Label id.
*
*
* int64 label_id = 1;
*
* @return The labelId.
*/
@java.lang.Override
public long getLabelId() {
return labelId_;
}
/**
*
*
*
* Label id.
*
*
* int64 label_id = 1;
*
* @param value The labelId to set.
* @return This builder for chaining.
*/
public Builder setLabelId(long value) {
labelId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Label id.
*
*
* int64 label_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearLabelId() {
bitField0_ = (bitField0_ & ~0x00000001);
labelId_ = 0L;
onChanged();
return this;
}
private java.lang.Object labelString_ = "";
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The labelString.
*/
public java.lang.String getLabelString() {
java.lang.Object ref = labelString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
labelString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return The bytes for labelString.
*/
public com.google.protobuf.ByteString getLabelStringBytes() {
java.lang.Object ref = labelString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
labelString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @param value The labelString to set.
* @return This builder for chaining.
*/
public Builder setLabelString(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
labelString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @return This builder for chaining.
*/
public Builder clearLabelString() {
labelString_ = getDefaultInstance().getLabelString();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Human readable string of the label.
*
*
* string label_string = 2;
*
* @param value The bytes for labelString to set.
* @return This builder for chaining.
*/
public Builder setLabelStringBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
labelString_ = value;
bitField0_ |= 0x00000002;
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.visionai.v1.OccupancyCountingPredictionResult.Entity)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entity 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.visionai.v1.OccupancyCountingPredictionResult.Entity
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifiedBoxOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* An unique id for this box.
*
*
* int64 box_id = 1;
*
* @return The boxId.
*/
long getBoxId();
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return Whether the normalizedBoundingBox field is set.
*/
boolean hasNormalizedBoundingBox();
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return The normalizedBoundingBox.
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getNormalizedBoundingBox();
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder
getNormalizedBoundingBoxOrBuilder();
/**
*
*
*
* Confidence score associated with this box.
*
*
* float score = 3;
*
* @return The score.
*/
float getScore();
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return Whether the entity field is set.
*/
boolean hasEntity();
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return The entity.
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity();
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder();
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
* It only exists if tracking is enabled.
*
*
* int64 track_id = 5;
*
* @return The trackId.
*/
long getTrackId();
}
/**
*
*
*
* Identified box contains location and the entity of the object.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox}
*/
public static final class IdentifiedBox extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)
IdentifiedBoxOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedBox.newBuilder() to construct.
private IdentifiedBox(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedBox() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IdentifiedBox();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
.class);
}
public interface NormalizedBoundingBoxOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Min in x coordinate.
*
*
* float xmin = 1;
*
* @return The xmin.
*/
float getXmin();
/**
*
*
*
* Min in y coordinate.
*
*
* float ymin = 2;
*
* @return The ymin.
*/
float getYmin();
/**
*
*
*
* Width of the bounding box.
*
*
* float width = 3;
*
* @return The width.
*/
float getWidth();
/**
*
*
*
* Height of the bounding box.
*
*
* float height = 4;
*
* @return The height.
*/
float getHeight();
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox}
*/
public static final class NormalizedBoundingBox extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox)
NormalizedBoundingBoxOrBuilder {
private static final long serialVersionUID = 0L;
// Use NormalizedBoundingBox.newBuilder() to construct.
private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NormalizedBoundingBox() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NormalizedBoundingBox();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_NormalizedBoundingBox_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_NormalizedBoundingBox_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder.class);
}
public static final int XMIN_FIELD_NUMBER = 1;
private float xmin_ = 0F;
/**
*
*
*
* Min in x coordinate.
*
*
* float xmin = 1;
*
* @return The xmin.
*/
@java.lang.Override
public float getXmin() {
return xmin_;
}
public static final int YMIN_FIELD_NUMBER = 2;
private float ymin_ = 0F;
/**
*
*
*
* Min in y coordinate.
*
*
* float ymin = 2;
*
* @return The ymin.
*/
@java.lang.Override
public float getYmin() {
return ymin_;
}
public static final int WIDTH_FIELD_NUMBER = 3;
private float width_ = 0F;
/**
*
*
*
* Width of the bounding box.
*
*
* float width = 3;
*
* @return The width.
*/
@java.lang.Override
public float getWidth() {
return width_;
}
public static final int HEIGHT_FIELD_NUMBER = 4;
private float height_ = 0F;
/**
*
*
*
* Height of the bounding box.
*
*
* float height = 4;
*
* @return The height.
*/
@java.lang.Override
public float getHeight() {
return height_;
}
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 (java.lang.Float.floatToRawIntBits(xmin_) != 0) {
output.writeFloat(1, xmin_);
}
if (java.lang.Float.floatToRawIntBits(ymin_) != 0) {
output.writeFloat(2, ymin_);
}
if (java.lang.Float.floatToRawIntBits(width_) != 0) {
output.writeFloat(3, width_);
}
if (java.lang.Float.floatToRawIntBits(height_) != 0) {
output.writeFloat(4, height_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Float.floatToRawIntBits(xmin_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, xmin_);
}
if (java.lang.Float.floatToRawIntBits(ymin_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, ymin_);
}
if (java.lang.Float.floatToRawIntBits(width_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, width_);
}
if (java.lang.Float.floatToRawIntBits(height_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, height_);
}
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox)
obj;
if (java.lang.Float.floatToIntBits(getXmin())
!= java.lang.Float.floatToIntBits(other.getXmin())) return false;
if (java.lang.Float.floatToIntBits(getYmin())
!= java.lang.Float.floatToIntBits(other.getYmin())) return false;
if (java.lang.Float.floatToIntBits(getWidth())
!= java.lang.Float.floatToIntBits(other.getWidth())) return false;
if (java.lang.Float.floatToIntBits(getHeight())
!= java.lang.Float.floatToIntBits(other.getHeight())) 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) + XMIN_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getXmin());
hash = (37 * hash) + YMIN_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getYmin());
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth());
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
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;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_NormalizedBoundingBox_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_NormalizedBoundingBox_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
xmin_ = 0F;
ymin_ = 0F;
width_ = 0F;
height_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_NormalizedBoundingBox_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.xmin_ = xmin_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.ymin_ = ymin_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.width_ = width_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.height_ = height_;
}
}
@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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()) return this;
if (other.getXmin() != 0F) {
setXmin(other.getXmin());
}
if (other.getYmin() != 0F) {
setYmin(other.getYmin());
}
if (other.getWidth() != 0F) {
setWidth(other.getWidth());
}
if (other.getHeight() != 0F) {
setHeight(other.getHeight());
}
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 13:
{
xmin_ = input.readFloat();
bitField0_ |= 0x00000001;
break;
} // case 13
case 21:
{
ymin_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 21
case 29:
{
width_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
case 37:
{
height_ = input.readFloat();
bitField0_ |= 0x00000008;
break;
} // case 37
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 float xmin_;
/**
*
*
*
* Min in x coordinate.
*
*
* float xmin = 1;
*
* @return The xmin.
*/
@java.lang.Override
public float getXmin() {
return xmin_;
}
/**
*
*
*
* Min in x coordinate.
*
*
* float xmin = 1;
*
* @param value The xmin to set.
* @return This builder for chaining.
*/
public Builder setXmin(float value) {
xmin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Min in x coordinate.
*
*
* float xmin = 1;
*
* @return This builder for chaining.
*/
public Builder clearXmin() {
bitField0_ = (bitField0_ & ~0x00000001);
xmin_ = 0F;
onChanged();
return this;
}
private float ymin_;
/**
*
*
*
* Min in y coordinate.
*
*
* float ymin = 2;
*
* @return The ymin.
*/
@java.lang.Override
public float getYmin() {
return ymin_;
}
/**
*
*
*
* Min in y coordinate.
*
*
* float ymin = 2;
*
* @param value The ymin to set.
* @return This builder for chaining.
*/
public Builder setYmin(float value) {
ymin_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Min in y coordinate.
*
*
* float ymin = 2;
*
* @return This builder for chaining.
*/
public Builder clearYmin() {
bitField0_ = (bitField0_ & ~0x00000002);
ymin_ = 0F;
onChanged();
return this;
}
private float width_;
/**
*
*
*
* Width of the bounding box.
*
*
* float width = 3;
*
* @return The width.
*/
@java.lang.Override
public float getWidth() {
return width_;
}
/**
*
*
*
* Width of the bounding box.
*
*
* float width = 3;
*
* @param value The width to set.
* @return This builder for chaining.
*/
public Builder setWidth(float value) {
width_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Width of the bounding box.
*
*
* float width = 3;
*
* @return This builder for chaining.
*/
public Builder clearWidth() {
bitField0_ = (bitField0_ & ~0x00000004);
width_ = 0F;
onChanged();
return this;
}
private float height_;
/**
*
*
*
* Height of the bounding box.
*
*
* float height = 4;
*
* @return The height.
*/
@java.lang.Override
public float getHeight() {
return height_;
}
/**
*
*
*
* Height of the bounding box.
*
*
* float height = 4;
*
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(float value) {
height_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Height of the bounding box.
*
*
* float height = 4;
*
* @return This builder for chaining.
*/
public Builder clearHeight() {
bitField0_ = (bitField0_ & ~0x00000008);
height_ = 0F;
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.IdentifiedBox.NormalizedBoundingBox
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NormalizedBoundingBox 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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int BOX_ID_FIELD_NUMBER = 1;
private long boxId_ = 0L;
/**
*
*
*
* An unique id for this box.
*
*
* int64 box_id = 1;
*
* @return The boxId.
*/
@java.lang.Override
public long getBoxId() {
return boxId_;
}
public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 2;
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
normalizedBoundingBox_;
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return Whether the normalizedBoundingBox field is set.
*/
@java.lang.Override
public boolean hasNormalizedBoundingBox() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return The normalizedBoundingBox.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getNormalizedBoundingBox() {
return normalizedBoundingBox_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()
: normalizedBoundingBox_;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder
getNormalizedBoundingBoxOrBuilder() {
return normalizedBoundingBox_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()
: normalizedBoundingBox_;
}
public static final int SCORE_FIELD_NUMBER = 3;
private float score_ = 0F;
/**
*
*
*
* Confidence score associated with this box.
*
*
* float score = 3;
*
* @return The score.
*/
@java.lang.Override
public float getScore() {
return score_;
}
public static final int ENTITY_FIELD_NUMBER = 4;
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity_;
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return Whether the entity field is set.
*/
@java.lang.Override
public boolean hasEntity() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return The entity.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity() {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder() {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
public static final int TRACK_ID_FIELD_NUMBER = 5;
private long trackId_ = 0L;
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
* It only exists if tracking is enabled.
*
*
* int64 track_id = 5;
*
* @return The trackId.
*/
@java.lang.Override
public long getTrackId() {
return trackId_;
}
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 (boxId_ != 0L) {
output.writeInt64(1, boxId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getNormalizedBoundingBox());
}
if (java.lang.Float.floatToRawIntBits(score_) != 0) {
output.writeFloat(3, score_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getEntity());
}
if (trackId_ != 0L) {
output.writeInt64(5, trackId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (boxId_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, boxId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNormalizedBoundingBox());
}
if (java.lang.Float.floatToRawIntBits(score_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, score_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEntity());
}
if (trackId_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, trackId_);
}
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox) obj;
if (getBoxId() != other.getBoxId()) return false;
if (hasNormalizedBoundingBox() != other.hasNormalizedBoundingBox()) return false;
if (hasNormalizedBoundingBox()) {
if (!getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox())) return false;
}
if (java.lang.Float.floatToIntBits(getScore())
!= java.lang.Float.floatToIntBits(other.getScore())) return false;
if (hasEntity() != other.hasEntity()) return false;
if (hasEntity()) {
if (!getEntity().equals(other.getEntity())) return false;
}
if (getTrackId() != other.getTrackId()) 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) + BOX_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBoxId());
if (hasNormalizedBoundingBox()) {
hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER;
hash = (53 * hash) + getNormalizedBoundingBox().hashCode();
}
hash = (37 * hash) + SCORE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
if (hasEntity()) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
}
hash = (37 * hash) + TRACK_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrackId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox 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;
}
/**
*
*
*
* Identified box contains location and the entity of the object.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getNormalizedBoundingBoxFieldBuilder();
getEntityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
boxId_ = 0L;
normalizedBoundingBox_ = null;
if (normalizedBoundingBoxBuilder_ != null) {
normalizedBoundingBoxBuilder_.dispose();
normalizedBoundingBoxBuilder_ = null;
}
score_ = 0F;
entity_ = null;
if (entityBuilder_ != null) {
entityBuilder_.dispose();
entityBuilder_ = null;
}
trackId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_IdentifiedBox_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.boxId_ = boxId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.normalizedBoundingBox_ =
normalizedBoundingBoxBuilder_ == null
? normalizedBoundingBox_
: normalizedBoundingBoxBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.score_ = score_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.entity_ = entityBuilder_ == null ? entity_ : entityBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.trackId_ = trackId_;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.getDefaultInstance()) return this;
if (other.getBoxId() != 0L) {
setBoxId(other.getBoxId());
}
if (other.hasNormalizedBoundingBox()) {
mergeNormalizedBoundingBox(other.getNormalizedBoundingBox());
}
if (other.getScore() != 0F) {
setScore(other.getScore());
}
if (other.hasEntity()) {
mergeEntity(other.getEntity());
}
if (other.getTrackId() != 0L) {
setTrackId(other.getTrackId());
}
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 8:
{
boxId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
input.readMessage(
getNormalizedBoundingBoxFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 29:
{
score_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
case 34:
{
input.readMessage(getEntityFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
trackId_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
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 long boxId_;
/**
*
*
*
* An unique id for this box.
*
*
* int64 box_id = 1;
*
* @return The boxId.
*/
@java.lang.Override
public long getBoxId() {
return boxId_;
}
/**
*
*
*
* An unique id for this box.
*
*
* int64 box_id = 1;
*
* @param value The boxId to set.
* @return This builder for chaining.
*/
public Builder setBoxId(long value) {
boxId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* An unique id for this box.
*
*
* int64 box_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearBoxId() {
bitField0_ = (bitField0_ & ~0x00000001);
boxId_ = 0L;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
normalizedBoundingBox_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder>
normalizedBoundingBoxBuilder_;
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return Whether the normalizedBoundingBox field is set.
*/
public boolean hasNormalizedBoundingBox() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*
* @return The normalizedBoundingBox.
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
getNormalizedBoundingBox() {
if (normalizedBoundingBoxBuilder_ == null) {
return normalizedBoundingBox_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()
: normalizedBoundingBox_;
} else {
return normalizedBoundingBoxBuilder_.getMessage();
}
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public Builder setNormalizedBoundingBox(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
value) {
if (normalizedBoundingBoxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
normalizedBoundingBox_ = value;
} else {
normalizedBoundingBoxBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public Builder setNormalizedBoundingBox(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder
builderForValue) {
if (normalizedBoundingBoxBuilder_ == null) {
normalizedBoundingBox_ = builderForValue.build();
} else {
normalizedBoundingBoxBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public Builder mergeNormalizedBoundingBox(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox
value) {
if (normalizedBoundingBoxBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& normalizedBoundingBox_ != null
&& normalizedBoundingBox_
!= com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()) {
getNormalizedBoundingBoxBuilder().mergeFrom(value);
} else {
normalizedBoundingBox_ = value;
}
} else {
normalizedBoundingBoxBuilder_.mergeFrom(value);
}
if (normalizedBoundingBox_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public Builder clearNormalizedBoundingBox() {
bitField0_ = (bitField0_ & ~0x00000002);
normalizedBoundingBox_ = null;
if (normalizedBoundingBoxBuilder_ != null) {
normalizedBoundingBoxBuilder_.dispose();
normalizedBoundingBoxBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder
getNormalizedBoundingBoxBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNormalizedBoundingBoxFieldBuilder().getBuilder();
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder
getNormalizedBoundingBoxOrBuilder() {
if (normalizedBoundingBoxBuilder_ != null) {
return normalizedBoundingBoxBuilder_.getMessageOrBuilder();
} else {
return normalizedBoundingBox_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.getDefaultInstance()
: normalizedBoundingBox_;
}
}
/**
*
*
*
* Bounding Box in the normalized coordinates.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder>
getNormalizedBoundingBoxFieldBuilder() {
if (normalizedBoundingBoxBuilder_ == null) {
normalizedBoundingBoxBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBox.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.NormalizedBoundingBoxOrBuilder>(
getNormalizedBoundingBox(), getParentForChildren(), isClean());
normalizedBoundingBox_ = null;
}
return normalizedBoundingBoxBuilder_;
}
private float score_;
/**
*
*
*
* Confidence score associated with this box.
*
*
* float score = 3;
*
* @return The score.
*/
@java.lang.Override
public float getScore() {
return score_;
}
/**
*
*
*
* Confidence score associated with this box.
*
*
* float score = 3;
*
* @param value The score to set.
* @return This builder for chaining.
*/
public Builder setScore(float value) {
score_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Confidence score associated with this box.
*
*
* float score = 3;
*
* @return This builder for chaining.
*/
public Builder clearScore() {
bitField0_ = (bitField0_ & ~0x00000004);
score_ = 0F;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>
entityBuilder_;
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return Whether the entity field is set.
*/
public boolean hasEntity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*
* @return The entity.
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity() {
if (entityBuilder_ == null) {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
} else {
return entityBuilder_.getMessage();
}
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public Builder setEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entity_ = value;
} else {
entityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public Builder setEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder
builderForValue) {
if (entityBuilder_ == null) {
entity_ = builderForValue.build();
} else {
entityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public Builder mergeEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity value) {
if (entityBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& entity_ != null
&& entity_
!= com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()) {
getEntityBuilder().mergeFrom(value);
} else {
entity_ = value;
}
} else {
entityBuilder_.mergeFrom(value);
}
if (entity_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public Builder clearEntity() {
bitField0_ = (bitField0_ & ~0x00000008);
entity_ = null;
if (entityBuilder_ != null) {
entityBuilder_.dispose();
entityBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder
getEntityBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getEntityFieldBuilder().getBuilder();
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilder();
} else {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
}
/**
*
*
*
* Entity of this box.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>(
getEntity(), getParentForChildren(), isClean());
entity_ = null;
}
return entityBuilder_;
}
private long trackId_;
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
* It only exists if tracking is enabled.
*
*
* int64 track_id = 5;
*
* @return The trackId.
*/
@java.lang.Override
public long getTrackId() {
return trackId_;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
* It only exists if tracking is enabled.
*
*
* int64 track_id = 5;
*
* @param value The trackId to set.
* @return This builder for chaining.
*/
public Builder setTrackId(long value) {
trackId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
* It only exists if tracking is enabled.
*
*
* int64 track_id = 5;
*
* @return This builder for chaining.
*/
public Builder clearTrackId() {
bitField0_ = (bitField0_ & ~0x00000010);
trackId_ = 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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.IdentifiedBox
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedBox 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.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
java.util.List
getFullFrameCountList();
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getFullFrameCount(int index);
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
int getFullFrameCountCount();
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getFullFrameCountOrBuilderList();
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getFullFrameCountOrBuilder(int index);
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount>
getCrossingLineCountsList();
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
getCrossingLineCounts(int index);
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
int getCrossingLineCountsCount();
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>
getCrossingLineCountsOrBuilderList();
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCountOrBuilder
getCrossingLineCountsOrBuilder(int index);
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount>
getActiveZoneCountsList();
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
getActiveZoneCounts(int index);
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
int getActiveZoneCountsCount();
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>
getActiveZoneCountsOrBuilderList();
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCountOrBuilder
getActiveZoneCountsOrBuilder(int index);
}
/**
*
*
*
* The statistics info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats}
*/
public static final class Stats extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats)
StatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Stats.newBuilder() to construct.
private Stats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Stats() {
fullFrameCount_ = java.util.Collections.emptyList();
crossingLineCounts_ = java.util.Collections.emptyList();
activeZoneCounts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Stats();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder.class);
}
public interface ObjectCountOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
* @return Whether the entity field is set.
*/
boolean hasEntity();
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
* @return The entity.
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity();
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder();
/**
*
*
*
* Count of the object.
*
*
* int32 count = 2;
*
* @return The count.
*/
int getCount();
}
/**
*
*
*
* The object info and instant count for annotations from occupancy counting
* operator.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount}
*/
public static final class ObjectCount extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
ObjectCountOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectCount.newBuilder() to construct.
private ObjectCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ObjectCount() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ObjectCount();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ObjectCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ObjectCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder.class);
}
private int bitField0_;
public static final int ENTITY_FIELD_NUMBER = 1;
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity_;
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
* @return Whether the entity field is set.
*/
@java.lang.Override
public boolean hasEntity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
* @return The entity.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity() {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder() {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
public static final int COUNT_FIELD_NUMBER = 2;
private int count_ = 0;
/**
*
*
*
* Count of the object.
*
*
* int32 count = 2;
*
* @return The count.
*/
@java.lang.Override
public int 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getEntity());
}
if (count_ != 0) {
output.writeInt32(2, count_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity());
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount) obj;
if (hasEntity() != other.hasEntity()) return false;
if (hasEntity()) {
if (!getEntity().equals(other.getEntity())) 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();
if (hasEntity()) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
}
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
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 object info and instant count for annotations from occupancy counting
* operator.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ObjectCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ObjectCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getEntityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entity_ = null;
if (entityBuilder_ != null) {
entityBuilder_.dispose();
entityBuilder_ = null;
}
count_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ObjectCount_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entity_ = entityBuilder_ == null ? entity_ : entityBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.count_ = count_;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance()) return this;
if (other.hasEntity()) {
mergeEntity(other.getEntity());
}
if (other.getCount() != 0) {
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:
{
input.readMessage(getEntityFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
count_ = input.readInt32();
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 com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>
entityBuilder_;
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*
* @return Whether the entity field is set.
*/
public boolean hasEntity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*
* @return The entity.
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity getEntity() {
if (entityBuilder_ == null) {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
} else {
return entityBuilder_.getMessage();
}
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public Builder setEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entity_ = value;
} else {
entityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public Builder setEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder
builderForValue) {
if (entityBuilder_ == null) {
entity_ = builderForValue.build();
} else {
entityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public Builder mergeEntity(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity value) {
if (entityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& entity_ != null
&& entity_
!= com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()) {
getEntityBuilder().mergeFrom(value);
} else {
entity_ = value;
}
} else {
entityBuilder_.mergeFrom(value);
}
if (entity_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public Builder clearEntity() {
bitField0_ = (bitField0_ & ~0x00000001);
entity_ = null;
if (entityBuilder_ != null) {
entityBuilder_.dispose();
entityBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder
getEntityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEntityFieldBuilder().getBuilder();
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder
getEntityOrBuilder() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilder();
} else {
return entity_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity
.getDefaultInstance()
: entity_;
}
}
/**
*
*
*
* Entity of this object.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 1;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.EntityOrBuilder>(
getEntity(), getParentForChildren(), isClean());
entity_ = null;
}
return entityBuilder_;
}
private int count_;
/**
*
*
*
* Count of the object.
*
*
* int32 count = 2;
*
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
/**
*
*
*
* Count of the object.
*
*
* int32 count = 2;
*
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
count_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Count of the object.
*
*
* int32 count = 2;
*
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0;
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectCount 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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccumulatedObjectCountOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return Whether the objectCount field is set.
*/
boolean hasObjectCount();
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return The objectCount.
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getObjectCount();
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getObjectCountOrBuilder();
}
/**
*
*
*
* The object info and accumulated count for annotations from occupancy
* counting operator.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount}
*/
public static final class AccumulatedObjectCount extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount)
AccumulatedObjectCountOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccumulatedObjectCount.newBuilder() to construct.
private AccumulatedObjectCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccumulatedObjectCount() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AccumulatedObjectCount();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_AccumulatedObjectCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_AccumulatedObjectCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder.class);
}
private int bitField0_;
public static final int START_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int OBJECT_COUNT_FIELD_NUMBER = 2;
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
objectCount_;
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return Whether the objectCount field is set.
*/
@java.lang.Override
public boolean hasObjectCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return The objectCount.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getObjectCount() {
return objectCount_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance()
: objectCount_;
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getObjectCountOrBuilder() {
return objectCount_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance()
: objectCount_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getObjectCount());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectCount());
}
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount
other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount)
obj;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime().equals(other.getStartTime())) return false;
}
if (hasObjectCount() != other.hasObjectCount()) return false;
if (hasObjectCount()) {
if (!getObjectCount().equals(other.getObjectCount())) 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 (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasObjectCount()) {
hash = (37 * hash) + OBJECT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getObjectCount().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
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 object info and accumulated count for annotations from occupancy
* counting operator.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_AccumulatedObjectCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_AccumulatedObjectCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
getObjectCountFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
objectCount_ = null;
if (objectCountBuilder_ != null) {
objectCountBuilder_.dispose();
objectCountBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_AccumulatedObjectCount_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.objectCount_ =
objectCountBuilder_ == null ? objectCount_ : objectCountBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance()) return this;
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasObjectCount()) {
mergeObjectCount(other.getObjectCount());
}
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:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getObjectCountFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000001);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
}
}
/**
*
*
*
* The start time of the accumulated count.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getStartTime(), getParentForChildren(), isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
objectCount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
objectCountBuilder_;
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return Whether the objectCount field is set.
*/
public boolean hasObjectCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*
* @return The objectCount.
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getObjectCount() {
if (objectCountBuilder_ == null) {
return objectCount_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance()
: objectCount_;
} else {
return objectCountBuilder_.getMessage();
}
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public Builder setObjectCount(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (objectCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
objectCount_ = value;
} else {
objectCountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public Builder setObjectCount(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (objectCountBuilder_ == null) {
objectCount_ = builderForValue.build();
} else {
objectCountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public Builder mergeObjectCount(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (objectCountBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& objectCount_ != null
&& objectCount_
!= com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount.getDefaultInstance()) {
getObjectCountBuilder().mergeFrom(value);
} else {
objectCount_ = value;
}
} else {
objectCountBuilder_.mergeFrom(value);
}
if (objectCount_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public Builder clearObjectCount() {
bitField0_ = (bitField0_ & ~0x00000002);
objectCount_ = null;
if (objectCountBuilder_ != null) {
objectCountBuilder_.dispose();
objectCountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
getObjectCountBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getObjectCountFieldBuilder().getBuilder();
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getObjectCountOrBuilder() {
if (objectCountBuilder_ != null) {
return objectCountBuilder_.getMessageOrBuilder();
} else {
return objectCount_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance()
: objectCount_;
}
}
/**
*
*
*
* The object count for the accumulated count.
*
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount object_count = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getObjectCountFieldBuilder() {
if (objectCountBuilder_ == null) {
objectCountBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>(getObjectCount(), getParentForChildren(), isClean());
objectCount_ = null;
}
return objectCountBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccumulatedObjectCount 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.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CrossingLineCountOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
boolean hasAnnotation();
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
com.google.cloud.visionai.v1.StreamAnnotation getAnnotation();
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder();
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getPositiveDirectionCountsList();
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getPositiveDirectionCounts(int index);
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
int getPositiveDirectionCountsCount();
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getPositiveDirectionCountsOrBuilderList();
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getPositiveDirectionCountsOrBuilder(int index);
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getNegativeDirectionCountsList();
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getNegativeDirectionCounts(int index);
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
int getNegativeDirectionCountsCount();
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getNegativeDirectionCountsOrBuilderList();
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getNegativeDirectionCountsOrBuilder(int index);
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedPositiveDirectionCountsList();
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount
getAccumulatedPositiveDirectionCounts(int index);
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
int getAccumulatedPositiveDirectionCountsCount();
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedPositiveDirectionCountsOrBuilderList();
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedPositiveDirectionCountsOrBuilder(int index);
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedNegativeDirectionCountsList();
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount
getAccumulatedNegativeDirectionCounts(int index);
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
int getAccumulatedNegativeDirectionCountsCount();
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedNegativeDirectionCountsOrBuilderList();
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedNegativeDirectionCountsOrBuilder(int index);
}
/**
*
*
*
* Message for Crossing line count.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount}
*/
public static final class CrossingLineCount extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount)
CrossingLineCountOrBuilder {
private static final long serialVersionUID = 0L;
// Use CrossingLineCount.newBuilder() to construct.
private CrossingLineCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CrossingLineCount() {
positiveDirectionCounts_ = java.util.Collections.emptyList();
negativeDirectionCounts_ = java.util.Collections.emptyList();
accumulatedPositiveDirectionCounts_ = java.util.Collections.emptyList();
accumulatedNegativeDirectionCounts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CrossingLineCount();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_CrossingLineCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_CrossingLineCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.Builder.class);
}
private int bitField0_;
public static final int ANNOTATION_FIELD_NUMBER = 1;
private com.google.cloud.visionai.v1.StreamAnnotation annotation_;
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
@java.lang.Override
public boolean hasAnnotation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.StreamAnnotation getAnnotation() {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder() {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
public static final int POSITIVE_DIRECTION_COUNTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
positiveDirectionCounts_;
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getPositiveDirectionCountsList() {
return positiveDirectionCounts_;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getPositiveDirectionCountsOrBuilderList() {
return positiveDirectionCounts_;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
@java.lang.Override
public int getPositiveDirectionCountsCount() {
return positiveDirectionCounts_.size();
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getPositiveDirectionCounts(int index) {
return positiveDirectionCounts_.get(index);
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getPositiveDirectionCountsOrBuilder(int index) {
return positiveDirectionCounts_.get(index);
}
public static final int NEGATIVE_DIRECTION_COUNTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
negativeDirectionCounts_;
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getNegativeDirectionCountsList() {
return negativeDirectionCounts_;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getNegativeDirectionCountsOrBuilderList() {
return negativeDirectionCounts_;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
@java.lang.Override
public int getNegativeDirectionCountsCount() {
return negativeDirectionCounts_.size();
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getNegativeDirectionCounts(int index) {
return negativeDirectionCounts_.get(index);
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getNegativeDirectionCountsOrBuilder(int index) {
return negativeDirectionCounts_.get(index);
}
public static final int ACCUMULATED_POSITIVE_DIRECTION_COUNTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
accumulatedPositiveDirectionCounts_;
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedPositiveDirectionCountsList() {
return accumulatedPositiveDirectionCounts_;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedPositiveDirectionCountsOrBuilderList() {
return accumulatedPositiveDirectionCounts_;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
@java.lang.Override
public int getAccumulatedPositiveDirectionCountsCount() {
return accumulatedPositiveDirectionCounts_.size();
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getAccumulatedPositiveDirectionCounts(int index) {
return accumulatedPositiveDirectionCounts_.get(index);
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedPositiveDirectionCountsOrBuilder(int index) {
return accumulatedPositiveDirectionCounts_.get(index);
}
public static final int ACCUMULATED_NEGATIVE_DIRECTION_COUNTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
accumulatedNegativeDirectionCounts_;
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedNegativeDirectionCountsList() {
return accumulatedNegativeDirectionCounts_;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedNegativeDirectionCountsOrBuilderList() {
return accumulatedNegativeDirectionCounts_;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
@java.lang.Override
public int getAccumulatedNegativeDirectionCountsCount() {
return accumulatedNegativeDirectionCounts_.size();
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getAccumulatedNegativeDirectionCounts(int index) {
return accumulatedNegativeDirectionCounts_.get(index);
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedNegativeDirectionCountsOrBuilder(int index) {
return accumulatedNegativeDirectionCounts_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAnnotation());
}
for (int i = 0; i < positiveDirectionCounts_.size(); i++) {
output.writeMessage(2, positiveDirectionCounts_.get(i));
}
for (int i = 0; i < negativeDirectionCounts_.size(); i++) {
output.writeMessage(3, negativeDirectionCounts_.get(i));
}
for (int i = 0; i < accumulatedPositiveDirectionCounts_.size(); i++) {
output.writeMessage(4, accumulatedPositiveDirectionCounts_.get(i));
}
for (int i = 0; i < accumulatedNegativeDirectionCounts_.size(); i++) {
output.writeMessage(5, accumulatedNegativeDirectionCounts_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotation());
}
for (int i = 0; i < positiveDirectionCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, positiveDirectionCounts_.get(i));
}
for (int i = 0; i < negativeDirectionCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, negativeDirectionCounts_.get(i));
}
for (int i = 0; i < accumulatedPositiveDirectionCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, accumulatedPositiveDirectionCounts_.get(i));
}
for (int i = 0; i < accumulatedNegativeDirectionCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, accumulatedNegativeDirectionCounts_.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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount)
obj;
if (hasAnnotation() != other.hasAnnotation()) return false;
if (hasAnnotation()) {
if (!getAnnotation().equals(other.getAnnotation())) return false;
}
if (!getPositiveDirectionCountsList().equals(other.getPositiveDirectionCountsList()))
return false;
if (!getNegativeDirectionCountsList().equals(other.getNegativeDirectionCountsList()))
return false;
if (!getAccumulatedPositiveDirectionCountsList()
.equals(other.getAccumulatedPositiveDirectionCountsList())) return false;
if (!getAccumulatedNegativeDirectionCountsList()
.equals(other.getAccumulatedNegativeDirectionCountsList())) 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 (hasAnnotation()) {
hash = (37 * hash) + ANNOTATION_FIELD_NUMBER;
hash = (53 * hash) + getAnnotation().hashCode();
}
if (getPositiveDirectionCountsCount() > 0) {
hash = (37 * hash) + POSITIVE_DIRECTION_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getPositiveDirectionCountsList().hashCode();
}
if (getNegativeDirectionCountsCount() > 0) {
hash = (37 * hash) + NEGATIVE_DIRECTION_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getNegativeDirectionCountsList().hashCode();
}
if (getAccumulatedPositiveDirectionCountsCount() > 0) {
hash = (37 * hash) + ACCUMULATED_POSITIVE_DIRECTION_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getAccumulatedPositiveDirectionCountsList().hashCode();
}
if (getAccumulatedNegativeDirectionCountsCount() > 0) {
hash = (37 * hash) + ACCUMULATED_NEGATIVE_DIRECTION_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getAccumulatedNegativeDirectionCountsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
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;
}
/**
*
*
*
* Message for Crossing line count.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_CrossingLineCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_CrossingLineCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAnnotationFieldBuilder();
getPositiveDirectionCountsFieldBuilder();
getNegativeDirectionCountsFieldBuilder();
getAccumulatedPositiveDirectionCountsFieldBuilder();
getAccumulatedNegativeDirectionCountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
annotation_ = null;
if (annotationBuilder_ != null) {
annotationBuilder_.dispose();
annotationBuilder_ = null;
}
if (positiveDirectionCountsBuilder_ == null) {
positiveDirectionCounts_ = java.util.Collections.emptyList();
} else {
positiveDirectionCounts_ = null;
positiveDirectionCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (negativeDirectionCountsBuilder_ == null) {
negativeDirectionCounts_ = java.util.Collections.emptyList();
} else {
negativeDirectionCounts_ = null;
negativeDirectionCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
accumulatedPositiveDirectionCounts_ = java.util.Collections.emptyList();
} else {
accumulatedPositiveDirectionCounts_ = null;
accumulatedPositiveDirectionCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
accumulatedNegativeDirectionCounts_ = java.util.Collections.emptyList();
} else {
accumulatedNegativeDirectionCounts_ = null;
accumulatedNegativeDirectionCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_CrossingLineCount_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
result) {
if (positiveDirectionCountsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
positiveDirectionCounts_ =
java.util.Collections.unmodifiableList(positiveDirectionCounts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.positiveDirectionCounts_ = positiveDirectionCounts_;
} else {
result.positiveDirectionCounts_ = positiveDirectionCountsBuilder_.build();
}
if (negativeDirectionCountsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
negativeDirectionCounts_ =
java.util.Collections.unmodifiableList(negativeDirectionCounts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.negativeDirectionCounts_ = negativeDirectionCounts_;
} else {
result.negativeDirectionCounts_ = negativeDirectionCountsBuilder_.build();
}
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
accumulatedPositiveDirectionCounts_ =
java.util.Collections.unmodifiableList(accumulatedPositiveDirectionCounts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.accumulatedPositiveDirectionCounts_ = accumulatedPositiveDirectionCounts_;
} else {
result.accumulatedPositiveDirectionCounts_ =
accumulatedPositiveDirectionCountsBuilder_.build();
}
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
accumulatedNegativeDirectionCounts_ =
java.util.Collections.unmodifiableList(accumulatedNegativeDirectionCounts_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.accumulatedNegativeDirectionCounts_ = accumulatedNegativeDirectionCounts_;
} else {
result.accumulatedNegativeDirectionCounts_ =
accumulatedNegativeDirectionCountsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.annotation_ =
annotationBuilder_ == null ? annotation_ : annotationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.getDefaultInstance()) return this;
if (other.hasAnnotation()) {
mergeAnnotation(other.getAnnotation());
}
if (positiveDirectionCountsBuilder_ == null) {
if (!other.positiveDirectionCounts_.isEmpty()) {
if (positiveDirectionCounts_.isEmpty()) {
positiveDirectionCounts_ = other.positiveDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.addAll(other.positiveDirectionCounts_);
}
onChanged();
}
} else {
if (!other.positiveDirectionCounts_.isEmpty()) {
if (positiveDirectionCountsBuilder_.isEmpty()) {
positiveDirectionCountsBuilder_.dispose();
positiveDirectionCountsBuilder_ = null;
positiveDirectionCounts_ = other.positiveDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000002);
positiveDirectionCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPositiveDirectionCountsFieldBuilder()
: null;
} else {
positiveDirectionCountsBuilder_.addAllMessages(other.positiveDirectionCounts_);
}
}
}
if (negativeDirectionCountsBuilder_ == null) {
if (!other.negativeDirectionCounts_.isEmpty()) {
if (negativeDirectionCounts_.isEmpty()) {
negativeDirectionCounts_ = other.negativeDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.addAll(other.negativeDirectionCounts_);
}
onChanged();
}
} else {
if (!other.negativeDirectionCounts_.isEmpty()) {
if (negativeDirectionCountsBuilder_.isEmpty()) {
negativeDirectionCountsBuilder_.dispose();
negativeDirectionCountsBuilder_ = null;
negativeDirectionCounts_ = other.negativeDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000004);
negativeDirectionCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getNegativeDirectionCountsFieldBuilder()
: null;
} else {
negativeDirectionCountsBuilder_.addAllMessages(other.negativeDirectionCounts_);
}
}
}
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
if (!other.accumulatedPositiveDirectionCounts_.isEmpty()) {
if (accumulatedPositiveDirectionCounts_.isEmpty()) {
accumulatedPositiveDirectionCounts_ = other.accumulatedPositiveDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.addAll(
other.accumulatedPositiveDirectionCounts_);
}
onChanged();
}
} else {
if (!other.accumulatedPositiveDirectionCounts_.isEmpty()) {
if (accumulatedPositiveDirectionCountsBuilder_.isEmpty()) {
accumulatedPositiveDirectionCountsBuilder_.dispose();
accumulatedPositiveDirectionCountsBuilder_ = null;
accumulatedPositiveDirectionCounts_ = other.accumulatedPositiveDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000008);
accumulatedPositiveDirectionCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAccumulatedPositiveDirectionCountsFieldBuilder()
: null;
} else {
accumulatedPositiveDirectionCountsBuilder_.addAllMessages(
other.accumulatedPositiveDirectionCounts_);
}
}
}
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
if (!other.accumulatedNegativeDirectionCounts_.isEmpty()) {
if (accumulatedNegativeDirectionCounts_.isEmpty()) {
accumulatedNegativeDirectionCounts_ = other.accumulatedNegativeDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.addAll(
other.accumulatedNegativeDirectionCounts_);
}
onChanged();
}
} else {
if (!other.accumulatedNegativeDirectionCounts_.isEmpty()) {
if (accumulatedNegativeDirectionCountsBuilder_.isEmpty()) {
accumulatedNegativeDirectionCountsBuilder_.dispose();
accumulatedNegativeDirectionCountsBuilder_ = null;
accumulatedNegativeDirectionCounts_ = other.accumulatedNegativeDirectionCounts_;
bitField0_ = (bitField0_ & ~0x00000010);
accumulatedNegativeDirectionCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAccumulatedNegativeDirectionCountsFieldBuilder()
: null;
} else {
accumulatedNegativeDirectionCountsBuilder_.addAllMessages(
other.accumulatedNegativeDirectionCounts_);
}
}
}
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:
{
input.readMessage(getAnnotationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount.parser(),
extensionRegistry);
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.add(m);
} else {
positiveDirectionCountsBuilder_.addMessage(m);
}
break;
} // case 18
case 26:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount.parser(),
extensionRegistry);
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.add(m);
} else {
negativeDirectionCountsBuilder_.addMessage(m);
}
break;
} // case 26
case 34:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.parser(),
extensionRegistry);
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.add(m);
} else {
accumulatedPositiveDirectionCountsBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.parser(),
extensionRegistry);
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.add(m);
} else {
accumulatedNegativeDirectionCountsBuilder_.addMessage(m);
}
break;
} // case 42
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 com.google.cloud.visionai.v1.StreamAnnotation annotation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>
annotationBuilder_;
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
public boolean hasAnnotation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
public com.google.cloud.visionai.v1.StreamAnnotation getAnnotation() {
if (annotationBuilder_ == null) {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
} else {
return annotationBuilder_.getMessage();
}
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder setAnnotation(com.google.cloud.visionai.v1.StreamAnnotation value) {
if (annotationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
annotation_ = value;
} else {
annotationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder setAnnotation(
com.google.cloud.visionai.v1.StreamAnnotation.Builder builderForValue) {
if (annotationBuilder_ == null) {
annotation_ = builderForValue.build();
} else {
annotationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder mergeAnnotation(com.google.cloud.visionai.v1.StreamAnnotation value) {
if (annotationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& annotation_ != null
&& annotation_
!= com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()) {
getAnnotationBuilder().mergeFrom(value);
} else {
annotation_ = value;
}
} else {
annotationBuilder_.mergeFrom(value);
}
if (annotation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder clearAnnotation() {
bitField0_ = (bitField0_ & ~0x00000001);
annotation_ = null;
if (annotationBuilder_ != null) {
annotationBuilder_.dispose();
annotationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public com.google.cloud.visionai.v1.StreamAnnotation.Builder getAnnotationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAnnotationFieldBuilder().getBuilder();
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder() {
if (annotationBuilder_ != null) {
return annotationBuilder_.getMessageOrBuilder();
} else {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
}
/**
*
*
*
* Line annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>
getAnnotationFieldBuilder() {
if (annotationBuilder_ == null) {
annotationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>(
getAnnotation(), getParentForChildren(), isClean());
annotation_ = null;
}
return annotationBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
positiveDirectionCounts_ = java.util.Collections.emptyList();
private void ensurePositiveDirectionCountsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
positiveDirectionCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>(positiveDirectionCounts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
positiveDirectionCountsBuilder_;
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getPositiveDirectionCountsList() {
if (positiveDirectionCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(positiveDirectionCounts_);
} else {
return positiveDirectionCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public int getPositiveDirectionCountsCount() {
if (positiveDirectionCountsBuilder_ == null) {
return positiveDirectionCounts_.size();
} else {
return positiveDirectionCountsBuilder_.getCount();
}
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getPositiveDirectionCounts(int index) {
if (positiveDirectionCountsBuilder_ == null) {
return positiveDirectionCounts_.get(index);
} else {
return positiveDirectionCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder setPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (positiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.set(index, value);
onChanged();
} else {
positiveDirectionCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder setPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.set(index, builderForValue.build());
onChanged();
} else {
positiveDirectionCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder addPositiveDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (positiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.add(value);
onChanged();
} else {
positiveDirectionCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder addPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (positiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.add(index, value);
onChanged();
} else {
positiveDirectionCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder addPositiveDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.add(builderForValue.build());
onChanged();
} else {
positiveDirectionCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder addPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.add(index, builderForValue.build());
onChanged();
} else {
positiveDirectionCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder addAllPositiveDirectionCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>
values) {
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, positiveDirectionCounts_);
onChanged();
} else {
positiveDirectionCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder clearPositiveDirectionCounts() {
if (positiveDirectionCountsBuilder_ == null) {
positiveDirectionCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
positiveDirectionCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public Builder removePositiveDirectionCounts(int index) {
if (positiveDirectionCountsBuilder_ == null) {
ensurePositiveDirectionCountsIsMutable();
positiveDirectionCounts_.remove(index);
onChanged();
} else {
positiveDirectionCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
getPositiveDirectionCountsBuilder(int index) {
return getPositiveDirectionCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getPositiveDirectionCountsOrBuilder(int index) {
if (positiveDirectionCountsBuilder_ == null) {
return positiveDirectionCounts_.get(index);
} else {
return positiveDirectionCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getPositiveDirectionCountsOrBuilderList() {
if (positiveDirectionCountsBuilder_ != null) {
return positiveDirectionCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(positiveDirectionCounts_);
}
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addPositiveDirectionCountsBuilder() {
return getPositiveDirectionCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addPositiveDirectionCountsBuilder(int index) {
return getPositiveDirectionCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* The direction that follows the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder>
getPositiveDirectionCountsBuilderList() {
return getPositiveDirectionCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getPositiveDirectionCountsFieldBuilder() {
if (positiveDirectionCountsBuilder_ == null) {
positiveDirectionCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>(
positiveDirectionCounts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
positiveDirectionCounts_ = null;
}
return positiveDirectionCountsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
negativeDirectionCounts_ = java.util.Collections.emptyList();
private void ensureNegativeDirectionCountsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
negativeDirectionCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>(negativeDirectionCounts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
negativeDirectionCountsBuilder_;
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getNegativeDirectionCountsList() {
if (negativeDirectionCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(negativeDirectionCounts_);
} else {
return negativeDirectionCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public int getNegativeDirectionCountsCount() {
if (negativeDirectionCountsBuilder_ == null) {
return negativeDirectionCounts_.size();
} else {
return negativeDirectionCountsBuilder_.getCount();
}
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getNegativeDirectionCounts(int index) {
if (negativeDirectionCountsBuilder_ == null) {
return negativeDirectionCounts_.get(index);
} else {
return negativeDirectionCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder setNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (negativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.set(index, value);
onChanged();
} else {
negativeDirectionCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder setNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.set(index, builderForValue.build());
onChanged();
} else {
negativeDirectionCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder addNegativeDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (negativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.add(value);
onChanged();
} else {
negativeDirectionCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder addNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (negativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.add(index, value);
onChanged();
} else {
negativeDirectionCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder addNegativeDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.add(builderForValue.build());
onChanged();
} else {
negativeDirectionCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder addNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.add(index, builderForValue.build());
onChanged();
} else {
negativeDirectionCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder addAllNegativeDirectionCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>
values) {
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, negativeDirectionCounts_);
onChanged();
} else {
negativeDirectionCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder clearNegativeDirectionCounts() {
if (negativeDirectionCountsBuilder_ == null) {
negativeDirectionCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
negativeDirectionCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public Builder removeNegativeDirectionCounts(int index) {
if (negativeDirectionCountsBuilder_ == null) {
ensureNegativeDirectionCountsIsMutable();
negativeDirectionCounts_.remove(index);
onChanged();
} else {
negativeDirectionCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
getNegativeDirectionCountsBuilder(int index) {
return getNegativeDirectionCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getNegativeDirectionCountsOrBuilder(int index) {
if (negativeDirectionCountsBuilder_ == null) {
return negativeDirectionCounts_.get(index);
} else {
return negativeDirectionCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getNegativeDirectionCountsOrBuilderList() {
if (negativeDirectionCountsBuilder_ != null) {
return negativeDirectionCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(negativeDirectionCounts_);
}
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addNegativeDirectionCountsBuilder() {
return getNegativeDirectionCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addNegativeDirectionCountsBuilder(int index) {
return getNegativeDirectionCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* The direction that is opposite to the right hand rule.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder>
getNegativeDirectionCountsBuilderList() {
return getNegativeDirectionCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getNegativeDirectionCountsFieldBuilder() {
if (negativeDirectionCountsBuilder_ == null) {
negativeDirectionCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>(
negativeDirectionCounts_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
negativeDirectionCounts_ = null;
}
return negativeDirectionCountsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
accumulatedPositiveDirectionCounts_ = java.util.Collections.emptyList();
private void ensureAccumulatedPositiveDirectionCountsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
accumulatedPositiveDirectionCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>(accumulatedPositiveDirectionCounts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
accumulatedPositiveDirectionCountsBuilder_;
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedPositiveDirectionCountsList() {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(accumulatedPositiveDirectionCounts_);
} else {
return accumulatedPositiveDirectionCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public int getAccumulatedPositiveDirectionCountsCount() {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
return accumulatedPositiveDirectionCounts_.size();
} else {
return accumulatedPositiveDirectionCountsBuilder_.getCount();
}
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getAccumulatedPositiveDirectionCounts(int index) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
return accumulatedPositiveDirectionCounts_.get(index);
} else {
return accumulatedPositiveDirectionCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder setAccumulatedPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.set(index, value);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder setAccumulatedPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.set(index, builderForValue.build());
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder addAccumulatedPositiveDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.add(value);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder addAccumulatedPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.add(index, value);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder addAccumulatedPositiveDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.add(builderForValue.build());
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder addAccumulatedPositiveDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.add(index, builderForValue.build());
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder addAllAccumulatedPositiveDirectionCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
values) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accumulatedPositiveDirectionCounts_);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder clearAccumulatedPositiveDirectionCounts() {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
accumulatedPositiveDirectionCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public Builder removeAccumulatedPositiveDirectionCounts(int index) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
ensureAccumulatedPositiveDirectionCountsIsMutable();
accumulatedPositiveDirectionCounts_.remove(index);
onChanged();
} else {
accumulatedPositiveDirectionCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
getAccumulatedPositiveDirectionCountsBuilder(int index) {
return getAccumulatedPositiveDirectionCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedPositiveDirectionCountsOrBuilder(int index) {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
return accumulatedPositiveDirectionCounts_.get(index);
} else {
return accumulatedPositiveDirectionCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedPositiveDirectionCountsOrBuilderList() {
if (accumulatedPositiveDirectionCountsBuilder_ != null) {
return accumulatedPositiveDirectionCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accumulatedPositiveDirectionCounts_);
}
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
addAccumulatedPositiveDirectionCountsBuilder() {
return getAccumulatedPositiveDirectionCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance());
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
addAccumulatedPositiveDirectionCountsBuilder(int index) {
return getAccumulatedPositiveDirectionCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance());
}
/**
*
*
*
* The accumulated positive count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder>
getAccumulatedPositiveDirectionCountsBuilderList() {
return getAccumulatedPositiveDirectionCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedPositiveDirectionCountsFieldBuilder() {
if (accumulatedPositiveDirectionCountsBuilder_ == null) {
accumulatedPositiveDirectionCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>(
accumulatedPositiveDirectionCounts_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
accumulatedPositiveDirectionCounts_ = null;
}
return accumulatedPositiveDirectionCountsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
accumulatedNegativeDirectionCounts_ = java.util.Collections.emptyList();
private void ensureAccumulatedNegativeDirectionCountsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
accumulatedNegativeDirectionCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>(accumulatedNegativeDirectionCounts_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
accumulatedNegativeDirectionCountsBuilder_;
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
getAccumulatedNegativeDirectionCountsList() {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(accumulatedNegativeDirectionCounts_);
} else {
return accumulatedNegativeDirectionCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public int getAccumulatedNegativeDirectionCountsCount() {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
return accumulatedNegativeDirectionCounts_.size();
} else {
return accumulatedNegativeDirectionCountsBuilder_.getCount();
}
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
getAccumulatedNegativeDirectionCounts(int index) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
return accumulatedNegativeDirectionCounts_.get(index);
} else {
return accumulatedNegativeDirectionCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder setAccumulatedNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.set(index, value);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder setAccumulatedNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.set(index, builderForValue.build());
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder addAccumulatedNegativeDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.add(value);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder addAccumulatedNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount
value) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.add(index, value);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder addAccumulatedNegativeDirectionCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.add(builderForValue.build());
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder addAccumulatedNegativeDirectionCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
builderForValue) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.add(index, builderForValue.build());
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder addAllAccumulatedNegativeDirectionCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount>
values) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accumulatedNegativeDirectionCounts_);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder clearAccumulatedNegativeDirectionCounts() {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
accumulatedNegativeDirectionCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public Builder removeAccumulatedNegativeDirectionCounts(int index) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
ensureAccumulatedNegativeDirectionCountsIsMutable();
accumulatedNegativeDirectionCounts_.remove(index);
onChanged();
} else {
accumulatedNegativeDirectionCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
getAccumulatedNegativeDirectionCountsBuilder(int index) {
return getAccumulatedNegativeDirectionCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder
getAccumulatedNegativeDirectionCountsOrBuilder(int index) {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
return accumulatedNegativeDirectionCounts_.get(index);
} else {
return accumulatedNegativeDirectionCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedNegativeDirectionCountsOrBuilderList() {
if (accumulatedNegativeDirectionCountsBuilder_ != null) {
return accumulatedNegativeDirectionCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accumulatedNegativeDirectionCounts_);
}
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
addAccumulatedNegativeDirectionCountsBuilder() {
return getAccumulatedNegativeDirectionCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance());
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder
addAccumulatedNegativeDirectionCountsBuilder(int index) {
return getAccumulatedNegativeDirectionCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.getDefaultInstance());
}
/**
*
*
*
* The accumulated negative count.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder>
getAccumulatedNegativeDirectionCountsBuilderList() {
return getAccumulatedNegativeDirectionCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>
getAccumulatedNegativeDirectionCountsFieldBuilder() {
if (accumulatedNegativeDirectionCountsBuilder_ == null) {
accumulatedNegativeDirectionCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.AccumulatedObjectCountOrBuilder>(
accumulatedNegativeDirectionCounts_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
accumulatedNegativeDirectionCounts_ = null;
}
return accumulatedNegativeDirectionCountsBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CrossingLineCount 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.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActiveZoneCountOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
boolean hasAnnotation();
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
com.google.cloud.visionai.v1.StreamAnnotation getAnnotation();
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder();
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getCountsList();
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount getCounts(
int index);
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
int getCountsCount();
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getCountsOrBuilderList();
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getCountsOrBuilder(int index);
}
/**
*
*
*
* Message for the active zone count.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount}
*/
public static final class ActiveZoneCount extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
ActiveZoneCountOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActiveZoneCount.newBuilder() to construct.
private ActiveZoneCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActiveZoneCount() {
counts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ActiveZoneCount();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ActiveZoneCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ActiveZoneCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder.class);
}
private int bitField0_;
public static final int ANNOTATION_FIELD_NUMBER = 1;
private com.google.cloud.visionai.v1.StreamAnnotation annotation_;
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
@java.lang.Override
public boolean hasAnnotation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.StreamAnnotation getAnnotation() {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder() {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
public static final int COUNTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
counts_;
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getCountsList() {
return counts_;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getCountsOrBuilderList() {
return counts_;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
@java.lang.Override
public int getCountsCount() {
return counts_.size();
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getCounts(int index) {
return counts_.get(index);
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getCountsOrBuilder(int index) {
return counts_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAnnotation());
}
for (int i = 0; i < counts_.size(); i++) {
output.writeMessage(2, counts_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotation());
}
for (int i = 0; i < counts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, counts_.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.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
obj;
if (hasAnnotation() != other.hasAnnotation()) return false;
if (hasAnnotation()) {
if (!getAnnotation().equals(other.getAnnotation())) return false;
}
if (!getCountsList().equals(other.getCountsList())) 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 (hasAnnotation()) {
hash = (37 * hash) + ANNOTATION_FIELD_NUMBER;
hash = (53 * hash) + getAnnotation().hashCode();
}
if (getCountsCount() > 0) {
hash = (37 * hash) + COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getCountsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
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;
}
/**
*
*
*
* Message for the active zone count.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ActiveZoneCount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ActiveZoneCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAnnotationFieldBuilder();
getCountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
annotation_ = null;
if (annotationBuilder_ != null) {
annotationBuilder_.dispose();
annotationBuilder_ = null;
}
if (countsBuilder_ == null) {
counts_ = java.util.Collections.emptyList();
} else {
counts_ = null;
countsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_ActiveZoneCount_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
result) {
if (countsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
counts_ = java.util.Collections.unmodifiableList(counts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.counts_ = counts_;
} else {
result.counts_ = countsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.annotation_ =
annotationBuilder_ == null ? annotation_ : annotationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.getDefaultInstance()) return this;
if (other.hasAnnotation()) {
mergeAnnotation(other.getAnnotation());
}
if (countsBuilder_ == null) {
if (!other.counts_.isEmpty()) {
if (counts_.isEmpty()) {
counts_ = other.counts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCountsIsMutable();
counts_.addAll(other.counts_);
}
onChanged();
}
} else {
if (!other.counts_.isEmpty()) {
if (countsBuilder_.isEmpty()) {
countsBuilder_.dispose();
countsBuilder_ = null;
counts_ = other.counts_;
bitField0_ = (bitField0_ & ~0x00000002);
countsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getCountsFieldBuilder()
: null;
} else {
countsBuilder_.addAllMessages(other.counts_);
}
}
}
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:
{
input.readMessage(getAnnotationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount.parser(),
extensionRegistry);
if (countsBuilder_ == null) {
ensureCountsIsMutable();
counts_.add(m);
} else {
countsBuilder_.addMessage(m);
}
break;
} // case 18
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 com.google.cloud.visionai.v1.StreamAnnotation annotation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>
annotationBuilder_;
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return Whether the annotation field is set.
*/
public boolean hasAnnotation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*
* @return The annotation.
*/
public com.google.cloud.visionai.v1.StreamAnnotation getAnnotation() {
if (annotationBuilder_ == null) {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
} else {
return annotationBuilder_.getMessage();
}
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder setAnnotation(com.google.cloud.visionai.v1.StreamAnnotation value) {
if (annotationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
annotation_ = value;
} else {
annotationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder setAnnotation(
com.google.cloud.visionai.v1.StreamAnnotation.Builder builderForValue) {
if (annotationBuilder_ == null) {
annotation_ = builderForValue.build();
} else {
annotationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder mergeAnnotation(com.google.cloud.visionai.v1.StreamAnnotation value) {
if (annotationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& annotation_ != null
&& annotation_
!= com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()) {
getAnnotationBuilder().mergeFrom(value);
} else {
annotation_ = value;
}
} else {
annotationBuilder_.mergeFrom(value);
}
if (annotation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public Builder clearAnnotation() {
bitField0_ = (bitField0_ & ~0x00000001);
annotation_ = null;
if (annotationBuilder_ != null) {
annotationBuilder_.dispose();
annotationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public com.google.cloud.visionai.v1.StreamAnnotation.Builder getAnnotationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAnnotationFieldBuilder().getBuilder();
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
public com.google.cloud.visionai.v1.StreamAnnotationOrBuilder getAnnotationOrBuilder() {
if (annotationBuilder_ != null) {
return annotationBuilder_.getMessageOrBuilder();
} else {
return annotation_ == null
? com.google.cloud.visionai.v1.StreamAnnotation.getDefaultInstance()
: annotation_;
}
}
/**
*
*
*
* Active zone annotation from the user.
*
*
* .google.cloud.visionai.v1.StreamAnnotation annotation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>
getAnnotationFieldBuilder() {
if (annotationBuilder_ == null) {
annotationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.StreamAnnotation,
com.google.cloud.visionai.v1.StreamAnnotation.Builder,
com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>(
getAnnotation(), getParentForChildren(), isClean());
annotation_ = null;
}
return annotationBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
counts_ = java.util.Collections.emptyList();
private void ensureCountsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
counts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>(counts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
countsBuilder_;
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getCountsList() {
if (countsBuilder_ == null) {
return java.util.Collections.unmodifiableList(counts_);
} else {
return countsBuilder_.getMessageList();
}
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public int getCountsCount() {
if (countsBuilder_ == null) {
return counts_.size();
} else {
return countsBuilder_.getCount();
}
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getCounts(int index) {
if (countsBuilder_ == null) {
return counts_.get(index);
} else {
return countsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder setCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (countsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountsIsMutable();
counts_.set(index, value);
onChanged();
} else {
countsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder setCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (countsBuilder_ == null) {
ensureCountsIsMutable();
counts_.set(index, builderForValue.build());
onChanged();
} else {
countsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder addCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (countsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountsIsMutable();
counts_.add(value);
onChanged();
} else {
countsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder addCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
value) {
if (countsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountsIsMutable();
counts_.add(index, value);
onChanged();
} else {
countsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder addCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (countsBuilder_ == null) {
ensureCountsIsMutable();
counts_.add(builderForValue.build());
onChanged();
} else {
countsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder addCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (countsBuilder_ == null) {
ensureCountsIsMutable();
counts_.add(index, builderForValue.build());
onChanged();
} else {
countsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder addAllCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>
values) {
if (countsBuilder_ == null) {
ensureCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, counts_);
onChanged();
} else {
countsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder clearCounts() {
if (countsBuilder_ == null) {
counts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
countsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public Builder removeCounts(int index) {
if (countsBuilder_ == null) {
ensureCountsIsMutable();
counts_.remove(index);
onChanged();
} else {
countsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
getCountsBuilder(int index) {
return getCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getCountsOrBuilder(int index) {
if (countsBuilder_ == null) {
return counts_.get(index);
} else {
return countsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getCountsOrBuilderList() {
if (countsBuilder_ != null) {
return countsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(counts_);
}
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addCountsBuilder() {
return getCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addCountsBuilder(int index) {
return getCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* Counts in the zone.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder>
getCountsBuilderList() {
return getCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getCountsFieldBuilder() {
if (countsBuilder_ == null) {
countsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>(
counts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
counts_ = null;
}
return countsBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActiveZoneCount 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.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FULL_FRAME_COUNT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
fullFrameCount_;
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getFullFrameCountList() {
return fullFrameCount_;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getFullFrameCountOrBuilderList() {
return fullFrameCount_;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
@java.lang.Override
public int getFullFrameCountCount() {
return fullFrameCount_.size();
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getFullFrameCount(int index) {
return fullFrameCount_.get(index);
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder
getFullFrameCountOrBuilder(int index) {
return fullFrameCount_.get(index);
}
public static final int CROSSING_LINE_COUNTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount>
crossingLineCounts_;
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount>
getCrossingLineCountsList() {
return crossingLineCounts_;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>
getCrossingLineCountsOrBuilderList() {
return crossingLineCounts_;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
@java.lang.Override
public int getCrossingLineCountsCount() {
return crossingLineCounts_.size();
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
getCrossingLineCounts(int index) {
return crossingLineCounts_.get(index);
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder
getCrossingLineCountsOrBuilder(int index) {
return crossingLineCounts_.get(index);
}
public static final int ACTIVE_ZONE_COUNTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount>
activeZoneCounts_;
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount>
getActiveZoneCountsList() {
return activeZoneCounts_;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>
getActiveZoneCountsOrBuilderList() {
return activeZoneCounts_;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
@java.lang.Override
public int getActiveZoneCountsCount() {
return activeZoneCounts_.size();
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
getActiveZoneCounts(int index) {
return activeZoneCounts_.get(index);
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder
getActiveZoneCountsOrBuilder(int index) {
return activeZoneCounts_.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 < fullFrameCount_.size(); i++) {
output.writeMessage(1, fullFrameCount_.get(i));
}
for (int i = 0; i < crossingLineCounts_.size(); i++) {
output.writeMessage(2, crossingLineCounts_.get(i));
}
for (int i = 0; i < activeZoneCounts_.size(); i++) {
output.writeMessage(3, activeZoneCounts_.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 < fullFrameCount_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fullFrameCount_.get(i));
}
for (int i = 0; i < crossingLineCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, crossingLineCounts_.get(i));
}
for (int i = 0; i < activeZoneCounts_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(3, activeZoneCounts_.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.visionai.v1.OccupancyCountingPredictionResult.Stats)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats) obj;
if (!getFullFrameCountList().equals(other.getFullFrameCountList())) return false;
if (!getCrossingLineCountsList().equals(other.getCrossingLineCountsList())) return false;
if (!getActiveZoneCountsList().equals(other.getActiveZoneCountsList())) 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 (getFullFrameCountCount() > 0) {
hash = (37 * hash) + FULL_FRAME_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getFullFrameCountList().hashCode();
}
if (getCrossingLineCountsCount() > 0) {
hash = (37 * hash) + CROSSING_LINE_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getCrossingLineCountsList().hashCode();
}
if (getActiveZoneCountsCount() > 0) {
hash = (37 * hash) + ACTIVE_ZONE_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getActiveZoneCountsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
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.visionai.v1.OccupancyCountingPredictionResult.Stats parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats 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 info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fullFrameCountBuilder_ == null) {
fullFrameCount_ = java.util.Collections.emptyList();
} else {
fullFrameCount_ = null;
fullFrameCountBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (crossingLineCountsBuilder_ == null) {
crossingLineCounts_ = java.util.Collections.emptyList();
} else {
crossingLineCounts_ = null;
crossingLineCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (activeZoneCountsBuilder_ == null) {
activeZoneCounts_ = java.util.Collections.emptyList();
} else {
activeZoneCounts_ = null;
activeZoneCountsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_Stats_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats result) {
if (fullFrameCountBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fullFrameCount_ = java.util.Collections.unmodifiableList(fullFrameCount_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fullFrameCount_ = fullFrameCount_;
} else {
result.fullFrameCount_ = fullFrameCountBuilder_.build();
}
if (crossingLineCountsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
crossingLineCounts_ = java.util.Collections.unmodifiableList(crossingLineCounts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.crossingLineCounts_ = crossingLineCounts_;
} else {
result.crossingLineCounts_ = crossingLineCountsBuilder_.build();
}
if (activeZoneCountsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
activeZoneCounts_ = java.util.Collections.unmodifiableList(activeZoneCounts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.activeZoneCounts_ = activeZoneCounts_;
} else {
result.activeZoneCounts_ = activeZoneCountsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.getDefaultInstance()) return this;
if (fullFrameCountBuilder_ == null) {
if (!other.fullFrameCount_.isEmpty()) {
if (fullFrameCount_.isEmpty()) {
fullFrameCount_ = other.fullFrameCount_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFullFrameCountIsMutable();
fullFrameCount_.addAll(other.fullFrameCount_);
}
onChanged();
}
} else {
if (!other.fullFrameCount_.isEmpty()) {
if (fullFrameCountBuilder_.isEmpty()) {
fullFrameCountBuilder_.dispose();
fullFrameCountBuilder_ = null;
fullFrameCount_ = other.fullFrameCount_;
bitField0_ = (bitField0_ & ~0x00000001);
fullFrameCountBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getFullFrameCountFieldBuilder()
: null;
} else {
fullFrameCountBuilder_.addAllMessages(other.fullFrameCount_);
}
}
}
if (crossingLineCountsBuilder_ == null) {
if (!other.crossingLineCounts_.isEmpty()) {
if (crossingLineCounts_.isEmpty()) {
crossingLineCounts_ = other.crossingLineCounts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.addAll(other.crossingLineCounts_);
}
onChanged();
}
} else {
if (!other.crossingLineCounts_.isEmpty()) {
if (crossingLineCountsBuilder_.isEmpty()) {
crossingLineCountsBuilder_.dispose();
crossingLineCountsBuilder_ = null;
crossingLineCounts_ = other.crossingLineCounts_;
bitField0_ = (bitField0_ & ~0x00000002);
crossingLineCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getCrossingLineCountsFieldBuilder()
: null;
} else {
crossingLineCountsBuilder_.addAllMessages(other.crossingLineCounts_);
}
}
}
if (activeZoneCountsBuilder_ == null) {
if (!other.activeZoneCounts_.isEmpty()) {
if (activeZoneCounts_.isEmpty()) {
activeZoneCounts_ = other.activeZoneCounts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.addAll(other.activeZoneCounts_);
}
onChanged();
}
} else {
if (!other.activeZoneCounts_.isEmpty()) {
if (activeZoneCountsBuilder_.isEmpty()) {
activeZoneCountsBuilder_.dispose();
activeZoneCountsBuilder_ = null;
activeZoneCounts_ = other.activeZoneCounts_;
bitField0_ = (bitField0_ & ~0x00000004);
activeZoneCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getActiveZoneCountsFieldBuilder()
: null;
} else {
activeZoneCountsBuilder_.addAllMessages(other.activeZoneCounts_);
}
}
}
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.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount.parser(),
extensionRegistry);
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
fullFrameCount_.add(m);
} else {
fullFrameCountBuilder_.addMessage(m);
}
break;
} // case 10
case 18:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.parser(),
extensionRegistry);
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.add(m);
} else {
crossingLineCountsBuilder_.addMessage(m);
}
break;
} // case 18
case 26:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount
m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.parser(),
extensionRegistry);
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.add(m);
} else {
activeZoneCountsBuilder_.addMessage(m);
}
break;
} // case 26
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<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
fullFrameCount_ = java.util.Collections.emptyList();
private void ensureFullFrameCountIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fullFrameCount_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>(
fullFrameCount_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
fullFrameCountBuilder_;
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>
getFullFrameCountList() {
if (fullFrameCountBuilder_ == null) {
return java.util.Collections.unmodifiableList(fullFrameCount_);
} else {
return fullFrameCountBuilder_.getMessageList();
}
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public int getFullFrameCountCount() {
if (fullFrameCountBuilder_ == null) {
return fullFrameCount_.size();
} else {
return fullFrameCountBuilder_.getCount();
}
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
getFullFrameCount(int index) {
if (fullFrameCountBuilder_ == null) {
return fullFrameCount_.get(index);
} else {
return fullFrameCountBuilder_.getMessage(index);
}
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder setFullFrameCount(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount value) {
if (fullFrameCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFullFrameCountIsMutable();
fullFrameCount_.set(index, value);
onChanged();
} else {
fullFrameCountBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder setFullFrameCount(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
fullFrameCount_.set(index, builderForValue.build());
onChanged();
} else {
fullFrameCountBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder addFullFrameCount(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount value) {
if (fullFrameCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFullFrameCountIsMutable();
fullFrameCount_.add(value);
onChanged();
} else {
fullFrameCountBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder addFullFrameCount(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount value) {
if (fullFrameCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFullFrameCountIsMutable();
fullFrameCount_.add(index, value);
onChanged();
} else {
fullFrameCountBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder addFullFrameCount(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
fullFrameCount_.add(builderForValue.build());
onChanged();
} else {
fullFrameCountBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder addFullFrameCount(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount.Builder
builderForValue) {
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
fullFrameCount_.add(index, builderForValue.build());
onChanged();
} else {
fullFrameCountBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder addAllFullFrameCount(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCount>
values) {
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullFrameCount_);
onChanged();
} else {
fullFrameCountBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder clearFullFrameCount() {
if (fullFrameCountBuilder_ == null) {
fullFrameCount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fullFrameCountBuilder_.clear();
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public Builder removeFullFrameCount(int index) {
if (fullFrameCountBuilder_ == null) {
ensureFullFrameCountIsMutable();
fullFrameCount_.remove(index);
onChanged();
} else {
fullFrameCountBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
getFullFrameCountBuilder(int index) {
return getFullFrameCountFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder
getFullFrameCountOrBuilder(int index) {
if (fullFrameCountBuilder_ == null) {
return fullFrameCount_.get(index);
} else {
return fullFrameCountBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getFullFrameCountOrBuilderList() {
if (fullFrameCountBuilder_ != null) {
return fullFrameCountBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fullFrameCount_);
}
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addFullFrameCountBuilder() {
return getFullFrameCountFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder
addFullFrameCountBuilder(int index) {
return getFullFrameCountFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.getDefaultInstance());
}
/**
*
*
*
* Counts of the full frame.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount full_frame_count = 1;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder>
getFullFrameCountBuilderList() {
return getFullFrameCountFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>
getFullFrameCountFieldBuilder() {
if (fullFrameCountBuilder_ == null) {
fullFrameCountBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ObjectCountOrBuilder>(
fullFrameCount_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fullFrameCount_ = null;
}
return fullFrameCountBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount>
crossingLineCounts_ = java.util.Collections.emptyList();
private void ensureCrossingLineCountsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
crossingLineCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount>(crossingLineCounts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>
crossingLineCountsBuilder_;
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount>
getCrossingLineCountsList() {
if (crossingLineCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(crossingLineCounts_);
} else {
return crossingLineCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public int getCrossingLineCountsCount() {
if (crossingLineCountsBuilder_ == null) {
return crossingLineCounts_.size();
} else {
return crossingLineCountsBuilder_.getCount();
}
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
getCrossingLineCounts(int index) {
if (crossingLineCountsBuilder_ == null) {
return crossingLineCounts_.get(index);
} else {
return crossingLineCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder setCrossingLineCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
value) {
if (crossingLineCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.set(index, value);
onChanged();
} else {
crossingLineCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder setCrossingLineCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
builderForValue) {
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.set(index, builderForValue.build());
onChanged();
} else {
crossingLineCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder addCrossingLineCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
value) {
if (crossingLineCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.add(value);
onChanged();
} else {
crossingLineCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder addCrossingLineCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
value) {
if (crossingLineCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.add(index, value);
onChanged();
} else {
crossingLineCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder addCrossingLineCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
builderForValue) {
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.add(builderForValue.build());
onChanged();
} else {
crossingLineCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder addCrossingLineCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
builderForValue) {
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.add(index, builderForValue.build());
onChanged();
} else {
crossingLineCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder addAllCrossingLineCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount>
values) {
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crossingLineCounts_);
onChanged();
} else {
crossingLineCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder clearCrossingLineCounts() {
if (crossingLineCountsBuilder_ == null) {
crossingLineCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
crossingLineCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public Builder removeCrossingLineCounts(int index) {
if (crossingLineCountsBuilder_ == null) {
ensureCrossingLineCountsIsMutable();
crossingLineCounts_.remove(index);
onChanged();
} else {
crossingLineCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
getCrossingLineCountsBuilder(int index) {
return getCrossingLineCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder
getCrossingLineCountsOrBuilder(int index) {
if (crossingLineCountsBuilder_ == null) {
return crossingLineCounts_.get(index);
} else {
return crossingLineCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>
getCrossingLineCountsOrBuilderList() {
if (crossingLineCountsBuilder_ != null) {
return crossingLineCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(crossingLineCounts_);
}
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
addCrossingLineCountsBuilder() {
return getCrossingLineCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.getDefaultInstance());
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder
addCrossingLineCountsBuilder(int index) {
return getCrossingLineCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.getDefaultInstance());
}
/**
*
*
*
* Crossing line counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount crossing_line_counts = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder>
getCrossingLineCountsBuilderList() {
return getCrossingLineCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>
getCrossingLineCountsFieldBuilder() {
if (crossingLineCountsBuilder_ == null) {
crossingLineCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.CrossingLineCountOrBuilder>(
crossingLineCounts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
crossingLineCounts_ = null;
}
return crossingLineCountsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount>
activeZoneCounts_ = java.util.Collections.emptyList();
private void ensureActiveZoneCountsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
activeZoneCounts_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount>(activeZoneCounts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>
activeZoneCountsBuilder_;
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount>
getActiveZoneCountsList() {
if (activeZoneCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(activeZoneCounts_);
} else {
return activeZoneCountsBuilder_.getMessageList();
}
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public int getActiveZoneCountsCount() {
if (activeZoneCountsBuilder_ == null) {
return activeZoneCounts_.size();
} else {
return activeZoneCountsBuilder_.getCount();
}
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
getActiveZoneCounts(int index) {
if (activeZoneCountsBuilder_ == null) {
return activeZoneCounts_.get(index);
} else {
return activeZoneCountsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder setActiveZoneCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
value) {
if (activeZoneCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.set(index, value);
onChanged();
} else {
activeZoneCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder setActiveZoneCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
builderForValue) {
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.set(index, builderForValue.build());
onChanged();
} else {
activeZoneCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder addActiveZoneCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
value) {
if (activeZoneCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.add(value);
onChanged();
} else {
activeZoneCountsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder addActiveZoneCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
value) {
if (activeZoneCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.add(index, value);
onChanged();
} else {
activeZoneCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder addActiveZoneCounts(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
builderForValue) {
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.add(builderForValue.build());
onChanged();
} else {
activeZoneCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder addActiveZoneCounts(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
builderForValue) {
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.add(index, builderForValue.build());
onChanged();
} else {
activeZoneCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder addAllActiveZoneCounts(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount>
values) {
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeZoneCounts_);
onChanged();
} else {
activeZoneCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder clearActiveZoneCounts() {
if (activeZoneCountsBuilder_ == null) {
activeZoneCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
activeZoneCountsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public Builder removeActiveZoneCounts(int index) {
if (activeZoneCountsBuilder_ == null) {
ensureActiveZoneCountsIsMutable();
activeZoneCounts_.remove(index);
onChanged();
} else {
activeZoneCountsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
getActiveZoneCountsBuilder(int index) {
return getActiveZoneCountsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder
getActiveZoneCountsOrBuilder(int index) {
if (activeZoneCountsBuilder_ == null) {
return activeZoneCounts_.get(index);
} else {
return activeZoneCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>
getActiveZoneCountsOrBuilderList() {
if (activeZoneCountsBuilder_ != null) {
return activeZoneCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(activeZoneCounts_);
}
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
addActiveZoneCountsBuilder() {
return getActiveZoneCountsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.getDefaultInstance());
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder
addActiveZoneCountsBuilder(int index) {
return getActiveZoneCountsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.getDefaultInstance());
}
/**
*
*
*
* Active zone counts.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount active_zone_counts = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder>
getActiveZoneCountsBuilderList() {
return getActiveZoneCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>
getActiveZoneCountsFieldBuilder() {
if (activeZoneCountsBuilder_ == null) {
activeZoneCountsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCount.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.ActiveZoneCountOrBuilder>(
activeZoneCounts_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
activeZoneCounts_ = null;
}
return activeZoneCountsBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.Stats)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Stats 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.visionai.v1.OccupancyCountingPredictionResult.Stats
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TrackInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
java.lang.String getTrackId();
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
com.google.protobuf.ByteString getTrackIdBytes();
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
}
/**
*
*
*
* The track info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo}
*/
public static final class TrackInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)
TrackInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TrackInfo.newBuilder() to construct.
private TrackInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TrackInfo() {
trackId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TrackInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_TrackInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_TrackInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
.class);
}
private int bitField0_;
public static final int TRACK_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object trackId_ = "";
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
@java.lang.Override
public java.lang.String getTrackId() {
java.lang.Object ref = trackId_;
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();
trackId_ = s;
return s;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTrackIdBytes() {
java.lang.Object ref = trackId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
trackId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
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(trackId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStartTime());
}
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(trackId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trackId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime());
}
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo) obj;
if (!getTrackId().equals(other.getTrackId())) return false;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime().equals(other.getStartTime())) 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) + TRACK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTrackId().hashCode();
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo 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 track info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_TrackInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_TrackInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
trackId_ = "";
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_TrackInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.trackId_ = trackId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
.getDefaultInstance()) return this;
if (!other.getTrackId().isEmpty()) {
trackId_ = other.trackId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
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:
{
trackId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 trackId_ = "";
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
public java.lang.String getTrackId() {
java.lang.Object ref = trackId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
public com.google.protobuf.ByteString getTrackIdBytes() {
java.lang.Object ref = trackId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
trackId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @param value The trackId to set.
* @return This builder for chaining.
*/
public Builder setTrackId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
trackId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearTrackId() {
trackId_ = getDefaultInstance().getTrackId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @param value The bytes for trackId to set.
* @return This builder for chaining.
*/
public Builder setTrackIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
trackId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000002);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
}
}
/**
*
*
*
* Start timestamp of this track.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getStartTime(), getParentForChildren(), isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TrackInfo 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.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DwellTimeInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
java.lang.String getTrackId();
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
com.google.protobuf.ByteString getTrackIdBytes();
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString getZoneIdBytes();
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return Whether the dwellStartTime field is set.
*/
boolean hasDwellStartTime();
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return The dwellStartTime.
*/
com.google.protobuf.Timestamp getDwellStartTime();
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
com.google.protobuf.TimestampOrBuilder getDwellStartTimeOrBuilder();
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return Whether the dwellEndTime field is set.
*/
boolean hasDwellEndTime();
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return The dwellEndTime.
*/
com.google.protobuf.Timestamp getDwellEndTime();
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
com.google.protobuf.TimestampOrBuilder getDwellEndTimeOrBuilder();
}
/**
*
*
*
* The dwell time info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo}
*/
public static final class DwellTimeInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)
DwellTimeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DwellTimeInfo.newBuilder() to construct.
private DwellTimeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DwellTimeInfo() {
trackId_ = "";
zoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DwellTimeInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_DwellTimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_DwellTimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
.class);
}
private int bitField0_;
public static final int TRACK_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object trackId_ = "";
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
@java.lang.Override
public java.lang.String getTrackId() {
java.lang.Object ref = trackId_;
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();
trackId_ = s;
return s;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTrackIdBytes() {
java.lang.Object ref = trackId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
trackId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object zoneId_ = "";
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The zoneId.
*/
@java.lang.Override
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
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();
zoneId_ = s;
return s;
}
}
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The bytes for zoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DWELL_START_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp dwellStartTime_;
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return Whether the dwellStartTime field is set.
*/
@java.lang.Override
public boolean hasDwellStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return The dwellStartTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDwellStartTime() {
return dwellStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellStartTime_;
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDwellStartTimeOrBuilder() {
return dwellStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellStartTime_;
}
public static final int DWELL_END_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp dwellEndTime_;
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return Whether the dwellEndTime field is set.
*/
@java.lang.Override
public boolean hasDwellEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return The dwellEndTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDwellEndTime() {
return dwellEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellEndTime_;
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDwellEndTimeOrBuilder() {
return dwellEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellEndTime_;
}
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(trackId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zoneId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getDwellStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getDwellEndTime());
}
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(trackId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trackId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zoneId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDwellStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDwellEndTime());
}
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo) obj;
if (!getTrackId().equals(other.getTrackId())) return false;
if (!getZoneId().equals(other.getZoneId())) return false;
if (hasDwellStartTime() != other.hasDwellStartTime()) return false;
if (hasDwellStartTime()) {
if (!getDwellStartTime().equals(other.getDwellStartTime())) return false;
}
if (hasDwellEndTime() != other.hasDwellEndTime()) return false;
if (hasDwellEndTime()) {
if (!getDwellEndTime().equals(other.getDwellEndTime())) 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) + TRACK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTrackId().hashCode();
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
if (hasDwellStartTime()) {
hash = (37 * hash) + DWELL_START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDwellStartTime().hashCode();
}
if (hasDwellEndTime()) {
hash = (37 * hash) + DWELL_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDwellEndTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo 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 dwell time info for annotations from occupancy counting operator.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_DwellTimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_DwellTimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
.class);
}
// Construct using
// com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDwellStartTimeFieldBuilder();
getDwellEndTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
trackId_ = "";
zoneId_ = "";
dwellStartTime_ = null;
if (dwellStartTimeBuilder_ != null) {
dwellStartTimeBuilder_.dispose();
dwellStartTimeBuilder_ = null;
}
dwellEndTime_ = null;
if (dwellEndTimeBuilder_ != null) {
dwellEndTimeBuilder_.dispose();
dwellEndTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_DwellTimeInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.trackId_ = trackId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.zoneId_ = zoneId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dwellStartTime_ =
dwellStartTimeBuilder_ == null ? dwellStartTime_ : dwellStartTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dwellEndTime_ =
dwellEndTimeBuilder_ == null ? dwellEndTime_ : dwellEndTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo) {
return mergeFrom(
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.getDefaultInstance()) return this;
if (!other.getTrackId().isEmpty()) {
trackId_ = other.trackId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasDwellStartTime()) {
mergeDwellStartTime(other.getDwellStartTime());
}
if (other.hasDwellEndTime()) {
mergeDwellEndTime(other.getDwellEndTime());
}
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:
{
trackId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
zoneId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(
getDwellStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getDwellEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 trackId_ = "";
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The trackId.
*/
public java.lang.String getTrackId() {
java.lang.Object ref = trackId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return The bytes for trackId.
*/
public com.google.protobuf.ByteString getTrackIdBytes() {
java.lang.Object ref = trackId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
trackId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @param value The trackId to set.
* @return This builder for chaining.
*/
public Builder setTrackId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
trackId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearTrackId() {
trackId_ = getDefaultInstance().getTrackId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* An unique id to identify a track. It should be consistent across frames.
*
*
* string track_id = 1;
*
* @param value The bytes for trackId to set.
* @return This builder for chaining.
*/
public Builder setTrackIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
trackId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object zoneId_ = "";
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The zoneId.
*/
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return The bytes for zoneId.
*/
public com.google.protobuf.ByteString getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @param value The zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zoneId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The unique id for the zone in which the object is dwelling/waiting.
*
*
* string zone_id = 2;
*
* @param value The bytes for zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zoneId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Timestamp dwellStartTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
dwellStartTimeBuilder_;
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return Whether the dwellStartTime field is set.
*/
public boolean hasDwellStartTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*
* @return The dwellStartTime.
*/
public com.google.protobuf.Timestamp getDwellStartTime() {
if (dwellStartTimeBuilder_ == null) {
return dwellStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellStartTime_;
} else {
return dwellStartTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public Builder setDwellStartTime(com.google.protobuf.Timestamp value) {
if (dwellStartTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dwellStartTime_ = value;
} else {
dwellStartTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public Builder setDwellStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (dwellStartTimeBuilder_ == null) {
dwellStartTime_ = builderForValue.build();
} else {
dwellStartTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public Builder mergeDwellStartTime(com.google.protobuf.Timestamp value) {
if (dwellStartTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& dwellStartTime_ != null
&& dwellStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getDwellStartTimeBuilder().mergeFrom(value);
} else {
dwellStartTime_ = value;
}
} else {
dwellStartTimeBuilder_.mergeFrom(value);
}
if (dwellStartTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public Builder clearDwellStartTime() {
bitField0_ = (bitField0_ & ~0x00000004);
dwellStartTime_ = null;
if (dwellStartTimeBuilder_ != null) {
dwellStartTimeBuilder_.dispose();
dwellStartTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getDwellStartTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getDwellStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getDwellStartTimeOrBuilder() {
if (dwellStartTimeBuilder_ != null) {
return dwellStartTimeBuilder_.getMessageOrBuilder();
} else {
return dwellStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellStartTime_;
}
}
/**
*
*
*
* The beginning time when a dwelling object has been identified in a zone.
*
*
* .google.protobuf.Timestamp dwell_start_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getDwellStartTimeFieldBuilder() {
if (dwellStartTimeBuilder_ == null) {
dwellStartTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getDwellStartTime(), getParentForChildren(), isClean());
dwellStartTime_ = null;
}
return dwellStartTimeBuilder_;
}
private com.google.protobuf.Timestamp dwellEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
dwellEndTimeBuilder_;
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return Whether the dwellEndTime field is set.
*/
public boolean hasDwellEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*
* @return The dwellEndTime.
*/
public com.google.protobuf.Timestamp getDwellEndTime() {
if (dwellEndTimeBuilder_ == null) {
return dwellEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellEndTime_;
} else {
return dwellEndTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public Builder setDwellEndTime(com.google.protobuf.Timestamp value) {
if (dwellEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dwellEndTime_ = value;
} else {
dwellEndTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public Builder setDwellEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (dwellEndTimeBuilder_ == null) {
dwellEndTime_ = builderForValue.build();
} else {
dwellEndTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public Builder mergeDwellEndTime(com.google.protobuf.Timestamp value) {
if (dwellEndTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& dwellEndTime_ != null
&& dwellEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getDwellEndTimeBuilder().mergeFrom(value);
} else {
dwellEndTime_ = value;
}
} else {
dwellEndTimeBuilder_.mergeFrom(value);
}
if (dwellEndTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public Builder clearDwellEndTime() {
bitField0_ = (bitField0_ & ~0x00000008);
dwellEndTime_ = null;
if (dwellEndTimeBuilder_ != null) {
dwellEndTimeBuilder_.dispose();
dwellEndTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getDwellEndTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDwellEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
public com.google.protobuf.TimestampOrBuilder getDwellEndTimeOrBuilder() {
if (dwellEndTimeBuilder_ != null) {
return dwellEndTimeBuilder_.getMessageOrBuilder();
} else {
return dwellEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: dwellEndTime_;
}
}
/**
*
*
*
* The end time when a dwelling object has exited in a zone.
*
*
* .google.protobuf.Timestamp dwell_end_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getDwellEndTimeFieldBuilder() {
if (dwellEndTimeBuilder_ == null) {
dwellEndTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getDwellEndTime(), getParentForChildren(), isClean());
dwellEndTime_ = null;
}
return dwellEndTimeBuilder_;
}
@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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.DwellTimeInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DwellTimeInfo 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.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int CURRENT_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp currentTime_;
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*
* @return Whether the currentTime field is set.
*/
@java.lang.Override
public boolean hasCurrentTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*
* @return The currentTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCurrentTime() {
return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_;
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCurrentTimeOrBuilder() {
return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_;
}
public static final int IDENTIFIED_BOXES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>
identifiedBoxes_;
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>
getIdentifiedBoxesList() {
return identifiedBoxes_;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder>
getIdentifiedBoxesOrBuilderList() {
return identifiedBoxes_;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
@java.lang.Override
public int getIdentifiedBoxesCount() {
return identifiedBoxes_.size();
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
getIdentifiedBoxes(int index) {
return identifiedBoxes_.get(index);
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder
getIdentifiedBoxesOrBuilder(int index) {
return identifiedBoxes_.get(index);
}
public static final int STATS_FIELD_NUMBER = 3;
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats_;
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*
* @return Whether the stats field is set.
*/
@java.lang.Override
public boolean hasStats() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*
* @return The stats.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats getStats() {
return stats_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.getDefaultInstance()
: stats_;
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder
getStatsOrBuilder() {
return stats_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.getDefaultInstance()
: stats_;
}
public static final int TRACK_INFO_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List
trackInfo_;
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
@java.lang.Override
public java.util.List
getTrackInfoList() {
return trackInfo_;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder>
getTrackInfoOrBuilderList() {
return trackInfo_;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
@java.lang.Override
public int getTrackInfoCount() {
return trackInfo_.size();
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo getTrackInfo(
int index) {
return trackInfo_.get(index);
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder
getTrackInfoOrBuilder(int index) {
return trackInfo_.get(index);
}
public static final int DWELL_TIME_INFO_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>
dwellTimeInfo_;
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>
getDwellTimeInfoList() {
return dwellTimeInfo_;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder>
getDwellTimeInfoOrBuilderList() {
return dwellTimeInfo_;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
@java.lang.Override
public int getDwellTimeInfoCount() {
return dwellTimeInfo_.size();
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
getDwellTimeInfo(int index) {
return dwellTimeInfo_.get(index);
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder
getDwellTimeInfoOrBuilder(int index) {
return dwellTimeInfo_.get(index);
}
public static final int PTS_FIELD_NUMBER = 6;
private long pts_ = 0L;
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @return Whether the pts field is set.
*/
@java.lang.Override
public boolean hasPts() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @return The pts.
*/
@java.lang.Override
public long getPts() {
return pts_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCurrentTime());
}
for (int i = 0; i < identifiedBoxes_.size(); i++) {
output.writeMessage(2, identifiedBoxes_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getStats());
}
for (int i = 0; i < trackInfo_.size(); i++) {
output.writeMessage(4, trackInfo_.get(i));
}
for (int i = 0; i < dwellTimeInfo_.size(); i++) {
output.writeMessage(5, dwellTimeInfo_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(6, pts_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCurrentTime());
}
for (int i = 0; i < identifiedBoxes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, identifiedBoxes_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStats());
}
for (int i = 0; i < trackInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, trackInfo_.get(i));
}
for (int i = 0; i < dwellTimeInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, dwellTimeInfo_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, pts_);
}
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.visionai.v1.OccupancyCountingPredictionResult)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult other =
(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult) obj;
if (hasCurrentTime() != other.hasCurrentTime()) return false;
if (hasCurrentTime()) {
if (!getCurrentTime().equals(other.getCurrentTime())) return false;
}
if (!getIdentifiedBoxesList().equals(other.getIdentifiedBoxesList())) return false;
if (hasStats() != other.hasStats()) return false;
if (hasStats()) {
if (!getStats().equals(other.getStats())) return false;
}
if (!getTrackInfoList().equals(other.getTrackInfoList())) return false;
if (!getDwellTimeInfoList().equals(other.getDwellTimeInfoList())) return false;
if (hasPts() != other.hasPts()) return false;
if (hasPts()) {
if (getPts() != other.getPts()) 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 (hasCurrentTime()) {
hash = (37 * hash) + CURRENT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCurrentTime().hashCode();
}
if (getIdentifiedBoxesCount() > 0) {
hash = (37 * hash) + IDENTIFIED_BOXES_FIELD_NUMBER;
hash = (53 * hash) + getIdentifiedBoxesList().hashCode();
}
if (hasStats()) {
hash = (37 * hash) + STATS_FIELD_NUMBER;
hash = (53 * hash) + getStats().hashCode();
}
if (getTrackInfoCount() > 0) {
hash = (37 * hash) + TRACK_INFO_FIELD_NUMBER;
hash = (53 * hash) + getTrackInfoList().hashCode();
}
if (getDwellTimeInfoCount() > 0) {
hash = (37 * hash) + DWELL_TIME_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDwellTimeInfoList().hashCode();
}
if (hasPts()) {
hash = (37 * hash) + PTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPts());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult 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 prediction result proto for occupancy counting.
*
*
* Protobuf type {@code google.cloud.visionai.v1.OccupancyCountingPredictionResult}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.OccupancyCountingPredictionResult)
com.google.cloud.visionai.v1.OccupancyCountingPredictionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.class,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCurrentTimeFieldBuilder();
getIdentifiedBoxesFieldBuilder();
getStatsFieldBuilder();
getTrackInfoFieldBuilder();
getDwellTimeInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currentTime_ = null;
if (currentTimeBuilder_ != null) {
currentTimeBuilder_.dispose();
currentTimeBuilder_ = null;
}
if (identifiedBoxesBuilder_ == null) {
identifiedBoxes_ = java.util.Collections.emptyList();
} else {
identifiedBoxes_ = null;
identifiedBoxesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
stats_ = null;
if (statsBuilder_ != null) {
statsBuilder_.dispose();
statsBuilder_ = null;
}
if (trackInfoBuilder_ == null) {
trackInfo_ = java.util.Collections.emptyList();
} else {
trackInfo_ = null;
trackInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (dwellTimeInfoBuilder_ == null) {
dwellTimeInfo_ = java.util.Collections.emptyList();
} else {
dwellTimeInfo_ = null;
dwellTimeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
pts_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_OccupancyCountingPredictionResult_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult build() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult buildPartial() {
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult result =
new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult result) {
if (identifiedBoxesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
identifiedBoxes_ = java.util.Collections.unmodifiableList(identifiedBoxes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.identifiedBoxes_ = identifiedBoxes_;
} else {
result.identifiedBoxes_ = identifiedBoxesBuilder_.build();
}
if (trackInfoBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
trackInfo_ = java.util.Collections.unmodifiableList(trackInfo_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.trackInfo_ = trackInfo_;
} else {
result.trackInfo_ = trackInfoBuilder_.build();
}
if (dwellTimeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
dwellTimeInfo_ = java.util.Collections.unmodifiableList(dwellTimeInfo_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.dwellTimeInfo_ = dwellTimeInfo_;
} else {
result.dwellTimeInfo_ = dwellTimeInfoBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currentTime_ =
currentTimeBuilder_ == null ? currentTime_ : currentTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.pts_ = pts_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_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.visionai.v1.OccupancyCountingPredictionResult) {
return mergeFrom((com.google.cloud.visionai.v1.OccupancyCountingPredictionResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.OccupancyCountingPredictionResult other) {
if (other
== com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.getDefaultInstance())
return this;
if (other.hasCurrentTime()) {
mergeCurrentTime(other.getCurrentTime());
}
if (identifiedBoxesBuilder_ == null) {
if (!other.identifiedBoxes_.isEmpty()) {
if (identifiedBoxes_.isEmpty()) {
identifiedBoxes_ = other.identifiedBoxes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.addAll(other.identifiedBoxes_);
}
onChanged();
}
} else {
if (!other.identifiedBoxes_.isEmpty()) {
if (identifiedBoxesBuilder_.isEmpty()) {
identifiedBoxesBuilder_.dispose();
identifiedBoxesBuilder_ = null;
identifiedBoxes_ = other.identifiedBoxes_;
bitField0_ = (bitField0_ & ~0x00000002);
identifiedBoxesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getIdentifiedBoxesFieldBuilder()
: null;
} else {
identifiedBoxesBuilder_.addAllMessages(other.identifiedBoxes_);
}
}
}
if (other.hasStats()) {
mergeStats(other.getStats());
}
if (trackInfoBuilder_ == null) {
if (!other.trackInfo_.isEmpty()) {
if (trackInfo_.isEmpty()) {
trackInfo_ = other.trackInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTrackInfoIsMutable();
trackInfo_.addAll(other.trackInfo_);
}
onChanged();
}
} else {
if (!other.trackInfo_.isEmpty()) {
if (trackInfoBuilder_.isEmpty()) {
trackInfoBuilder_.dispose();
trackInfoBuilder_ = null;
trackInfo_ = other.trackInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
trackInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTrackInfoFieldBuilder()
: null;
} else {
trackInfoBuilder_.addAllMessages(other.trackInfo_);
}
}
}
if (dwellTimeInfoBuilder_ == null) {
if (!other.dwellTimeInfo_.isEmpty()) {
if (dwellTimeInfo_.isEmpty()) {
dwellTimeInfo_ = other.dwellTimeInfo_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.addAll(other.dwellTimeInfo_);
}
onChanged();
}
} else {
if (!other.dwellTimeInfo_.isEmpty()) {
if (dwellTimeInfoBuilder_.isEmpty()) {
dwellTimeInfoBuilder_.dispose();
dwellTimeInfoBuilder_ = null;
dwellTimeInfo_ = other.dwellTimeInfo_;
bitField0_ = (bitField0_ & ~0x00000010);
dwellTimeInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getDwellTimeInfoFieldBuilder()
: null;
} else {
dwellTimeInfoBuilder_.addAllMessages(other.dwellTimeInfo_);
}
}
}
if (other.hasPts()) {
setPts(other.getPts());
}
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:
{
input.readMessage(getCurrentTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.parser(),
extensionRegistry);
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.add(m);
} else {
identifiedBoxesBuilder_.addMessage(m);
}
break;
} // case 18
case 26:
{
input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
.parser(),
extensionRegistry);
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
trackInfo_.add(m);
} else {
trackInfoBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo m =
input.readMessage(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.parser(),
extensionRegistry);
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.add(m);
} else {
dwellTimeInfoBuilder_.addMessage(m);
}
break;
} // case 42
case 48:
{
pts_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
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 com.google.protobuf.Timestamp currentTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
currentTimeBuilder_;
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*
* @return Whether the currentTime field is set.
*/
public boolean hasCurrentTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*
* @return The currentTime.
*/
public com.google.protobuf.Timestamp getCurrentTime() {
if (currentTimeBuilder_ == null) {
return currentTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: currentTime_;
} else {
return currentTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public Builder setCurrentTime(com.google.protobuf.Timestamp value) {
if (currentTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentTime_ = value;
} else {
currentTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public Builder setCurrentTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (currentTimeBuilder_ == null) {
currentTime_ = builderForValue.build();
} else {
currentTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public Builder mergeCurrentTime(com.google.protobuf.Timestamp value) {
if (currentTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& currentTime_ != null
&& currentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCurrentTimeBuilder().mergeFrom(value);
} else {
currentTime_ = value;
}
} else {
currentTimeBuilder_.mergeFrom(value);
}
if (currentTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public Builder clearCurrentTime() {
bitField0_ = (bitField0_ & ~0x00000001);
currentTime_ = null;
if (currentTimeBuilder_ != null) {
currentTimeBuilder_.dispose();
currentTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getCurrentTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCurrentTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getCurrentTimeOrBuilder() {
if (currentTimeBuilder_ != null) {
return currentTimeBuilder_.getMessageOrBuilder();
} else {
return currentTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: currentTime_;
}
}
/**
*
*
*
* Current timestamp.
*
*
* .google.protobuf.Timestamp current_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCurrentTimeFieldBuilder() {
if (currentTimeBuilder_ == null) {
currentTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCurrentTime(), getParentForChildren(), isClean());
currentTime_ = null;
}
return currentTimeBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>
identifiedBoxes_ = java.util.Collections.emptyList();
private void ensureIdentifiedBoxesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
identifiedBoxes_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>(
identifiedBoxes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder>
identifiedBoxesBuilder_;
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>
getIdentifiedBoxesList() {
if (identifiedBoxesBuilder_ == null) {
return java.util.Collections.unmodifiableList(identifiedBoxes_);
} else {
return identifiedBoxesBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public int getIdentifiedBoxesCount() {
if (identifiedBoxesBuilder_ == null) {
return identifiedBoxes_.size();
} else {
return identifiedBoxesBuilder_.getCount();
}
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
getIdentifiedBoxes(int index) {
if (identifiedBoxesBuilder_ == null) {
return identifiedBoxes_.get(index);
} else {
return identifiedBoxesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder setIdentifiedBoxes(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox value) {
if (identifiedBoxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.set(index, value);
onChanged();
} else {
identifiedBoxesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder setIdentifiedBoxes(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
builderForValue) {
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.set(index, builderForValue.build());
onChanged();
} else {
identifiedBoxesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder addIdentifiedBoxes(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox value) {
if (identifiedBoxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.add(value);
onChanged();
} else {
identifiedBoxesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder addIdentifiedBoxes(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox value) {
if (identifiedBoxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.add(index, value);
onChanged();
} else {
identifiedBoxesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder addIdentifiedBoxes(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
builderForValue) {
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.add(builderForValue.build());
onChanged();
} else {
identifiedBoxesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder addIdentifiedBoxes(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
builderForValue) {
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.add(index, builderForValue.build());
onChanged();
} else {
identifiedBoxesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder addAllIdentifiedBoxes(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox>
values) {
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identifiedBoxes_);
onChanged();
} else {
identifiedBoxesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder clearIdentifiedBoxes() {
if (identifiedBoxesBuilder_ == null) {
identifiedBoxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
identifiedBoxesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public Builder removeIdentifiedBoxes(int index) {
if (identifiedBoxesBuilder_ == null) {
ensureIdentifiedBoxesIsMutable();
identifiedBoxes_.remove(index);
onChanged();
} else {
identifiedBoxesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
getIdentifiedBoxesBuilder(int index) {
return getIdentifiedBoxesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder
getIdentifiedBoxesOrBuilder(int index) {
if (identifiedBoxesBuilder_ == null) {
return identifiedBoxes_.get(index);
} else {
return identifiedBoxesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.IdentifiedBoxOrBuilder>
getIdentifiedBoxesOrBuilderList() {
if (identifiedBoxesBuilder_ != null) {
return identifiedBoxesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(identifiedBoxes_);
}
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
addIdentifiedBoxesBuilder() {
return getIdentifiedBoxesFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.getDefaultInstance());
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
addIdentifiedBoxesBuilder(int index) {
return getIdentifiedBoxesFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.getDefaultInstance());
}
/**
*
*
*
* A list of identified boxes.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox identified_boxes = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder>
getIdentifiedBoxesBuilderList() {
return getIdentifiedBoxesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder>
getIdentifiedBoxesFieldBuilder() {
if (identifiedBoxesBuilder_ == null) {
identifiedBoxesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.IdentifiedBoxOrBuilder>(
identifiedBoxes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
identifiedBoxes_ = null;
}
return identifiedBoxesBuilder_;
}
private com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder>
statsBuilder_;
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*
* @return Whether the stats field is set.
*/
public boolean hasStats() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*
* @return The stats.
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats getStats() {
if (statsBuilder_ == null) {
return stats_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.getDefaultInstance()
: stats_;
} else {
return statsBuilder_.getMessage();
}
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public Builder setStats(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats value) {
if (statsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
} else {
statsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public Builder setStats(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder
builderForValue) {
if (statsBuilder_ == null) {
stats_ = builderForValue.build();
} else {
statsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public Builder mergeStats(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats value) {
if (statsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& stats_ != null
&& stats_
!= com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.getDefaultInstance()) {
getStatsBuilder().mergeFrom(value);
} else {
stats_ = value;
}
} else {
statsBuilder_.mergeFrom(value);
}
if (stats_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public Builder clearStats() {
bitField0_ = (bitField0_ & ~0x00000004);
stats_ = null;
if (statsBuilder_ != null) {
statsBuilder_.dispose();
statsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder
getStatsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder
getStatsOrBuilder() {
if (statsBuilder_ != null) {
return statsBuilder_.getMessageOrBuilder();
} else {
return stats_ == null
? com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats
.getDefaultInstance()
: stats_;
}
}
/**
*
*
*
* Detection statistics.
*
*
* .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats stats = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder>
getStatsFieldBuilder() {
if (statsBuilder_ == null) {
statsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.StatsOrBuilder>(
getStats(), getParentForChildren(), isClean());
stats_ = null;
}
return statsBuilder_;
}
private java.util.List
trackInfo_ = java.util.Collections.emptyList();
private void ensureTrackInfoIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
trackInfo_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo>(
trackInfo_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder>
trackInfoBuilder_;
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public java.util.List
getTrackInfoList() {
if (trackInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(trackInfo_);
} else {
return trackInfoBuilder_.getMessageList();
}
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public int getTrackInfoCount() {
if (trackInfoBuilder_ == null) {
return trackInfo_.size();
} else {
return trackInfoBuilder_.getCount();
}
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo getTrackInfo(
int index) {
if (trackInfoBuilder_ == null) {
return trackInfo_.get(index);
} else {
return trackInfoBuilder_.getMessage(index);
}
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder setTrackInfo(
int index, com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo value) {
if (trackInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrackInfoIsMutable();
trackInfo_.set(index, value);
onChanged();
} else {
trackInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder setTrackInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
builderForValue) {
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
trackInfo_.set(index, builderForValue.build());
onChanged();
} else {
trackInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder addTrackInfo(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo value) {
if (trackInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrackInfoIsMutable();
trackInfo_.add(value);
onChanged();
} else {
trackInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder addTrackInfo(
int index, com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo value) {
if (trackInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrackInfoIsMutable();
trackInfo_.add(index, value);
onChanged();
} else {
trackInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder addTrackInfo(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
builderForValue) {
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
trackInfo_.add(builderForValue.build());
onChanged();
} else {
trackInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder addTrackInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
builderForValue) {
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
trackInfo_.add(index, builderForValue.build());
onChanged();
} else {
trackInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder addAllTrackInfo(
java.lang.Iterable<
? extends com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo>
values) {
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trackInfo_);
onChanged();
} else {
trackInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder clearTrackInfo() {
if (trackInfoBuilder_ == null) {
trackInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
trackInfoBuilder_.clear();
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public Builder removeTrackInfo(int index) {
if (trackInfoBuilder_ == null) {
ensureTrackInfoIsMutable();
trackInfo_.remove(index);
onChanged();
} else {
trackInfoBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
getTrackInfoBuilder(int index) {
return getTrackInfoFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder
getTrackInfoOrBuilder(int index) {
if (trackInfoBuilder_ == null) {
return trackInfo_.get(index);
} else {
return trackInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder>
getTrackInfoOrBuilderList() {
if (trackInfoBuilder_ != null) {
return trackInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(trackInfo_);
}
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
addTrackInfoBuilder() {
return getTrackInfoFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
.getDefaultInstance());
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder
addTrackInfoBuilder(int index) {
return getTrackInfoFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo
.getDefaultInstance());
}
/**
*
*
*
* Track related information. All the tracks that are live at this timestamp.
* It only exists if tracking is enabled.
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo track_info = 4;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder>
getTrackInfoBuilderList() {
return getTrackInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder>
getTrackInfoFieldBuilder() {
if (trackInfoBuilder_ == null) {
trackInfoBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfoOrBuilder>(
trackInfo_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
trackInfo_ = null;
}
return trackInfoBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>
dwellTimeInfo_ = java.util.Collections.emptyList();
private void ensureDwellTimeInfoIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
dwellTimeInfo_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>(
dwellTimeInfo_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder>
dwellTimeInfoBuilder_;
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>
getDwellTimeInfoList() {
if (dwellTimeInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(dwellTimeInfo_);
} else {
return dwellTimeInfoBuilder_.getMessageList();
}
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public int getDwellTimeInfoCount() {
if (dwellTimeInfoBuilder_ == null) {
return dwellTimeInfo_.size();
} else {
return dwellTimeInfoBuilder_.getCount();
}
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
getDwellTimeInfo(int index) {
if (dwellTimeInfoBuilder_ == null) {
return dwellTimeInfo_.get(index);
} else {
return dwellTimeInfoBuilder_.getMessage(index);
}
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder setDwellTimeInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo value) {
if (dwellTimeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.set(index, value);
onChanged();
} else {
dwellTimeInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder setDwellTimeInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
builderForValue) {
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.set(index, builderForValue.build());
onChanged();
} else {
dwellTimeInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder addDwellTimeInfo(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo value) {
if (dwellTimeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.add(value);
onChanged();
} else {
dwellTimeInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder addDwellTimeInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo value) {
if (dwellTimeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.add(index, value);
onChanged();
} else {
dwellTimeInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder addDwellTimeInfo(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
builderForValue) {
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.add(builderForValue.build());
onChanged();
} else {
dwellTimeInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder addDwellTimeInfo(
int index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
builderForValue) {
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.add(index, builderForValue.build());
onChanged();
} else {
dwellTimeInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder addAllDwellTimeInfo(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo>
values) {
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dwellTimeInfo_);
onChanged();
} else {
dwellTimeInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder clearDwellTimeInfo() {
if (dwellTimeInfoBuilder_ == null) {
dwellTimeInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
dwellTimeInfoBuilder_.clear();
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public Builder removeDwellTimeInfo(int index) {
if (dwellTimeInfoBuilder_ == null) {
ensureDwellTimeInfoIsMutable();
dwellTimeInfo_.remove(index);
onChanged();
} else {
dwellTimeInfoBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
getDwellTimeInfoBuilder(int index) {
return getDwellTimeInfoFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder
getDwellTimeInfoOrBuilder(int index) {
if (dwellTimeInfoBuilder_ == null) {
return dwellTimeInfo_.get(index);
} else {
return dwellTimeInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.DwellTimeInfoOrBuilder>
getDwellTimeInfoOrBuilderList() {
if (dwellTimeInfoBuilder_ != null) {
return dwellTimeInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dwellTimeInfo_);
}
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
addDwellTimeInfoBuilder() {
return getDwellTimeInfoFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.getDefaultInstance());
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder
addDwellTimeInfoBuilder(int index) {
return getDwellTimeInfoFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.getDefaultInstance());
}
/**
*
*
*
* Dwell time related information. All the tracks that are live in a given
* zone with a start and end dwell time timestamp
*
*
*
* repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo dwell_time_info = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder>
getDwellTimeInfoBuilderList() {
return getDwellTimeInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfoOrBuilder>
getDwellTimeInfoFieldBuilder() {
if (dwellTimeInfoBuilder_ == null) {
dwellTimeInfoBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo
.Builder,
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
.DwellTimeInfoOrBuilder>(
dwellTimeInfo_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
dwellTimeInfo_ = null;
}
return dwellTimeInfoBuilder_;
}
private long pts_;
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @return Whether the pts field is set.
*/
@java.lang.Override
public boolean hasPts() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @return The pts.
*/
@java.lang.Override
public long getPts() {
return pts_;
}
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @param value The pts to set.
* @return This builder for chaining.
*/
public Builder setPts(long value) {
pts_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The presentation timestamp of the frame.
*
*
* optional int64 pts = 6;
*
* @return This builder for chaining.
*/
public Builder clearPts() {
bitField0_ = (bitField0_ & ~0x00000020);
pts_ = 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.visionai.v1.OccupancyCountingPredictionResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.OccupancyCountingPredictionResult)
private static final com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.OccupancyCountingPredictionResult();
}
public static com.google.cloud.visionai.v1.OccupancyCountingPredictionResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OccupancyCountingPredictionResult 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.visionai.v1.OccupancyCountingPredictionResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy