
com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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;
/**
*
*
*
* Prediction output format for Video Classification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.VideoClassificationPredictionResult}
*/
public final class VideoClassificationPredictionResult
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.VideoClassificationPredictionResult)
VideoClassificationPredictionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use VideoClassificationPredictionResult.newBuilder() to construct.
private VideoClassificationPredictionResult(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VideoClassificationPredictionResult() {
classifications_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VideoClassificationPredictionResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.class,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.Builder.class);
}
public interface IdentifiedClassificationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The id.
*/
java.lang.String getId();
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
com.google.protobuf.ByteString getIdBytes();
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString getDisplayNameBytes();
/**
*
*
*
* The Model's confidence in correction of this identification, higher
* value means higher confidence.
*
*
* float confidence = 3;
*
* @return The confidence.
*/
float getConfidence();
}
/**
*
*
*
* Each IdentifiedClassification is one particular identification of an
* classification specified with the AnnotationSpec id and display_name,
* and the associated confidence score.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification}
*/
public static final class IdentifiedClassification extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification)
IdentifiedClassificationOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedClassification.newBuilder() to construct.
private IdentifiedClassification(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedClassification() {
id_ = "";
displayName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IdentifiedClassification();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_IdentifiedClassification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_IdentifiedClassification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.class,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIDENCE_FIELD_NUMBER = 3;
private float confidence_ = 0F;
/**
*
*
*
* The Model's confidence in correction of this identification, higher
* value means higher confidence.
*
*
* float confidence = 3;
*
* @return The confidence.
*/
@java.lang.Override
public float getConfidence() {
return confidence_;
}
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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
output.writeFloat(3, confidence_);
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidence_);
}
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.VideoClassificationPredictionResult
.IdentifiedClassification)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
other =
(com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification)
obj;
if (!getId().equals(other.getId())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (java.lang.Float.floatToIntBits(getConfidence())
!= java.lang.Float.floatToIntBits(other.getConfidence())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult
.IdentifiedClassification
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.VideoClassificationPredictionResult.IdentifiedClassification
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;
}
/**
*
*
*
* Each IdentifiedClassification is one particular identification of an
* classification specified with the AnnotationSpec id and display_name,
* and the associated confidence score.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification)
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_IdentifiedClassification_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_IdentifiedClassification_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.class,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
displayName_ = "";
confidence_ = 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_VideoClassificationPredictionResult_IdentifiedClassification_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
build() {
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
buildPartial() {
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
result =
new com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.confidence_ = confidence_;
}
}
@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.VideoClassificationPredictionResult
.IdentifiedClassification) {
return mergeFrom(
(com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
other) {
if (other
== com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getConfidence() != 0F) {
setConfidence(other.getConfidence());
}
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:
{
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 29:
{
confidence_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
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 id_ = "";
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The resource ID of the AnnotationSpec that had been identified.
*
*
* string id = 1;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The display name of the AnnotationSpec that had been identified.
*
*
* string display_name = 2;
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private float confidence_;
/**
*
*
*
* The Model's confidence in correction of this identification, higher
* value means higher confidence.
*
*
* float confidence = 3;
*
* @return The confidence.
*/
@java.lang.Override
public float getConfidence() {
return confidence_;
}
/**
*
*
*
* The Model's confidence in correction of this identification, higher
* value means higher confidence.
*
*
* float confidence = 3;
*
* @param value The confidence to set.
* @return This builder for chaining.
*/
public Builder setConfidence(float value) {
confidence_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The Model's confidence in correction of this identification, higher
* value means higher confidence.
*
*
* float confidence = 3;
*
* @return This builder for chaining.
*/
public Builder clearConfidence() {
bitField0_ = (bitField0_ & ~0x00000004);
confidence_ = 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.VideoClassificationPredictionResult.IdentifiedClassification)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification)
private static final com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification();
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedClassification 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.VideoClassificationPredictionResult.IdentifiedClassification
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int SEGMENT_START_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp segmentStartTime_;
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*
* @return Whether the segmentStartTime field is set.
*/
@java.lang.Override
public boolean hasSegmentStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*
* @return The segmentStartTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getSegmentStartTime() {
return segmentStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentStartTime_;
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getSegmentStartTimeOrBuilder() {
return segmentStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentStartTime_;
}
public static final int SEGMENT_END_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp segmentEndTime_;
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*
* @return Whether the segmentEndTime field is set.
*/
@java.lang.Override
public boolean hasSegmentEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*
* @return The segmentEndTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getSegmentEndTime() {
return segmentEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentEndTime_;
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getSegmentEndTimeOrBuilder() {
return segmentEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentEndTime_;
}
public static final int CLASSIFICATIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification>
classifications_;
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification>
getClassificationsList() {
return classifications_;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder>
getClassificationsOrBuilderList() {
return classifications_;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
@java.lang.Override
public int getClassificationsCount() {
return classifications_.size();
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
getClassifications(int index) {
return classifications_.get(index);
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder
getClassificationsOrBuilder(int index) {
return classifications_.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, getSegmentStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSegmentEndTime());
}
for (int i = 0; i < classifications_.size(); i++) {
output.writeMessage(3, classifications_.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, getSegmentStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentEndTime());
}
for (int i = 0; i < classifications_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, classifications_.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.VideoClassificationPredictionResult)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.VideoClassificationPredictionResult other =
(com.google.cloud.visionai.v1.VideoClassificationPredictionResult) obj;
if (hasSegmentStartTime() != other.hasSegmentStartTime()) return false;
if (hasSegmentStartTime()) {
if (!getSegmentStartTime().equals(other.getSegmentStartTime())) return false;
}
if (hasSegmentEndTime() != other.hasSegmentEndTime()) return false;
if (hasSegmentEndTime()) {
if (!getSegmentEndTime().equals(other.getSegmentEndTime())) return false;
}
if (!getClassificationsList().equals(other.getClassificationsList())) 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 (hasSegmentStartTime()) {
hash = (37 * hash) + SEGMENT_START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSegmentStartTime().hashCode();
}
if (hasSegmentEndTime()) {
hash = (37 * hash) + SEGMENT_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSegmentEndTime().hashCode();
}
if (getClassificationsCount() > 0) {
hash = (37 * hash) + CLASSIFICATIONS_FIELD_NUMBER;
hash = (53 * hash) + getClassificationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult 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.VideoClassificationPredictionResult 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;
}
/**
*
*
*
* Prediction output format for Video Classification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.VideoClassificationPredictionResult}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.VideoClassificationPredictionResult)
com.google.cloud.visionai.v1.VideoClassificationPredictionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.AnnotationsProto
.internal_static_google_cloud_visionai_v1_VideoClassificationPredictionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.class,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.VideoClassificationPredictionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getSegmentStartTimeFieldBuilder();
getSegmentEndTimeFieldBuilder();
getClassificationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
segmentStartTime_ = null;
if (segmentStartTimeBuilder_ != null) {
segmentStartTimeBuilder_.dispose();
segmentStartTimeBuilder_ = null;
}
segmentEndTime_ = null;
if (segmentEndTimeBuilder_ != null) {
segmentEndTimeBuilder_.dispose();
segmentEndTimeBuilder_ = null;
}
if (classificationsBuilder_ == null) {
classifications_ = java.util.Collections.emptyList();
} else {
classifications_ = null;
classificationsBuilder_.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_VideoClassificationPredictionResult_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.VideoClassificationPredictionResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult build() {
com.google.cloud.visionai.v1.VideoClassificationPredictionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult buildPartial() {
com.google.cloud.visionai.v1.VideoClassificationPredictionResult result =
new com.google.cloud.visionai.v1.VideoClassificationPredictionResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult result) {
if (classificationsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
classifications_ = java.util.Collections.unmodifiableList(classifications_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.classifications_ = classifications_;
} else {
result.classifications_ = classificationsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.segmentStartTime_ =
segmentStartTimeBuilder_ == null ? segmentStartTime_ : segmentStartTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.segmentEndTime_ =
segmentEndTimeBuilder_ == null ? segmentEndTime_ : segmentEndTimeBuilder_.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.VideoClassificationPredictionResult) {
return mergeFrom((com.google.cloud.visionai.v1.VideoClassificationPredictionResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult other) {
if (other
== com.google.cloud.visionai.v1.VideoClassificationPredictionResult.getDefaultInstance())
return this;
if (other.hasSegmentStartTime()) {
mergeSegmentStartTime(other.getSegmentStartTime());
}
if (other.hasSegmentEndTime()) {
mergeSegmentEndTime(other.getSegmentEndTime());
}
if (classificationsBuilder_ == null) {
if (!other.classifications_.isEmpty()) {
if (classifications_.isEmpty()) {
classifications_ = other.classifications_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureClassificationsIsMutable();
classifications_.addAll(other.classifications_);
}
onChanged();
}
} else {
if (!other.classifications_.isEmpty()) {
if (classificationsBuilder_.isEmpty()) {
classificationsBuilder_.dispose();
classificationsBuilder_ = null;
classifications_ = other.classifications_;
bitField0_ = (bitField0_ & ~0x00000004);
classificationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getClassificationsFieldBuilder()
: null;
} else {
classificationsBuilder_.addAllMessages(other.classifications_);
}
}
}
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(
getSegmentStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getSegmentEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification
m =
input.readMessage(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.parser(),
extensionRegistry);
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
classifications_.add(m);
} else {
classificationsBuilder_.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 com.google.protobuf.Timestamp segmentStartTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
segmentStartTimeBuilder_;
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*
* @return Whether the segmentStartTime field is set.
*/
public boolean hasSegmentStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*
* @return The segmentStartTime.
*/
public com.google.protobuf.Timestamp getSegmentStartTime() {
if (segmentStartTimeBuilder_ == null) {
return segmentStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentStartTime_;
} else {
return segmentStartTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public Builder setSegmentStartTime(com.google.protobuf.Timestamp value) {
if (segmentStartTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
segmentStartTime_ = value;
} else {
segmentStartTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public Builder setSegmentStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (segmentStartTimeBuilder_ == null) {
segmentStartTime_ = builderForValue.build();
} else {
segmentStartTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public Builder mergeSegmentStartTime(com.google.protobuf.Timestamp value) {
if (segmentStartTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& segmentStartTime_ != null
&& segmentStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getSegmentStartTimeBuilder().mergeFrom(value);
} else {
segmentStartTime_ = value;
}
} else {
segmentStartTimeBuilder_.mergeFrom(value);
}
if (segmentStartTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public Builder clearSegmentStartTime() {
bitField0_ = (bitField0_ & ~0x00000001);
segmentStartTime_ = null;
if (segmentStartTimeBuilder_ != null) {
segmentStartTimeBuilder_.dispose();
segmentStartTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getSegmentStartTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSegmentStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getSegmentStartTimeOrBuilder() {
if (segmentStartTimeBuilder_ != null) {
return segmentStartTimeBuilder_.getMessageOrBuilder();
} else {
return segmentStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentStartTime_;
}
}
/**
*
*
*
* The beginning, inclusive, of the video's time segment in which the
* classifications have been identified.
*
*
* .google.protobuf.Timestamp segment_start_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getSegmentStartTimeFieldBuilder() {
if (segmentStartTimeBuilder_ == null) {
segmentStartTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getSegmentStartTime(), getParentForChildren(), isClean());
segmentStartTime_ = null;
}
return segmentStartTimeBuilder_;
}
private com.google.protobuf.Timestamp segmentEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
segmentEndTimeBuilder_;
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*
* @return Whether the segmentEndTime field is set.
*/
public boolean hasSegmentEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*
* @return The segmentEndTime.
*/
public com.google.protobuf.Timestamp getSegmentEndTime() {
if (segmentEndTimeBuilder_ == null) {
return segmentEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentEndTime_;
} else {
return segmentEndTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public Builder setSegmentEndTime(com.google.protobuf.Timestamp value) {
if (segmentEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
segmentEndTime_ = value;
} else {
segmentEndTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public Builder setSegmentEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (segmentEndTimeBuilder_ == null) {
segmentEndTime_ = builderForValue.build();
} else {
segmentEndTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public Builder mergeSegmentEndTime(com.google.protobuf.Timestamp value) {
if (segmentEndTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& segmentEndTime_ != null
&& segmentEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getSegmentEndTimeBuilder().mergeFrom(value);
} else {
segmentEndTime_ = value;
}
} else {
segmentEndTimeBuilder_.mergeFrom(value);
}
if (segmentEndTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public Builder clearSegmentEndTime() {
bitField0_ = (bitField0_ & ~0x00000002);
segmentEndTime_ = null;
if (segmentEndTimeBuilder_ != null) {
segmentEndTimeBuilder_.dispose();
segmentEndTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getSegmentEndTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSegmentEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getSegmentEndTimeOrBuilder() {
if (segmentEndTimeBuilder_ != null) {
return segmentEndTimeBuilder_.getMessageOrBuilder();
} else {
return segmentEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: segmentEndTime_;
}
}
/**
*
*
*
* The end, inclusive, of the video's time segment in which the
* classifications have been identified. Particularly, if the end is the same
* as the start, it means the identification happens on a specific video
* frame.
*
*
* .google.protobuf.Timestamp segment_end_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getSegmentEndTimeFieldBuilder() {
if (segmentEndTimeBuilder_ == null) {
segmentEndTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getSegmentEndTime(), getParentForChildren(), isClean());
segmentEndTime_ = null;
}
return segmentEndTimeBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification>
classifications_ = java.util.Collections.emptyList();
private void ensureClassificationsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
classifications_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification>(classifications_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder>
classificationsBuilder_;
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification>
getClassificationsList() {
if (classificationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(classifications_);
} else {
return classificationsBuilder_.getMessageList();
}
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public int getClassificationsCount() {
if (classificationsBuilder_ == null) {
return classifications_.size();
} else {
return classificationsBuilder_.getCount();
}
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
getClassifications(int index) {
if (classificationsBuilder_ == null) {
return classifications_.get(index);
} else {
return classificationsBuilder_.getMessage(index);
}
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder setClassifications(
int index,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
value) {
if (classificationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClassificationsIsMutable();
classifications_.set(index, value);
onChanged();
} else {
classificationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder setClassifications(
int index,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
builderForValue) {
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
classifications_.set(index, builderForValue.build());
onChanged();
} else {
classificationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder addClassifications(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
value) {
if (classificationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClassificationsIsMutable();
classifications_.add(value);
onChanged();
} else {
classificationsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder addClassifications(
int index,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
value) {
if (classificationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClassificationsIsMutable();
classifications_.add(index, value);
onChanged();
} else {
classificationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder addClassifications(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
builderForValue) {
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
classifications_.add(builderForValue.build());
onChanged();
} else {
classificationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder addClassifications(
int index,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
builderForValue) {
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
classifications_.add(index, builderForValue.build());
onChanged();
} else {
classificationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder addAllClassifications(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification>
values) {
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, classifications_);
onChanged();
} else {
classificationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder clearClassifications() {
if (classificationsBuilder_ == null) {
classifications_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
classificationsBuilder_.clear();
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public Builder removeClassifications(int index) {
if (classificationsBuilder_ == null) {
ensureClassificationsIsMutable();
classifications_.remove(index);
onChanged();
} else {
classificationsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
getClassificationsBuilder(int index) {
return getClassificationsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder
getClassificationsOrBuilder(int index) {
if (classificationsBuilder_ == null) {
return classifications_.get(index);
} else {
return classificationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder>
getClassificationsOrBuilderList() {
if (classificationsBuilder_ != null) {
return classificationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(classifications_);
}
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
addClassificationsBuilder() {
return getClassificationsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.getDefaultInstance());
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification
.Builder
addClassificationsBuilder(int index) {
return getClassificationsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.getDefaultInstance());
}
/**
*
*
*
* All of the classifications identified in the time range.
*
*
*
* repeated .google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification classifications = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder>
getClassificationsBuilderList() {
return getClassificationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder>
getClassificationsFieldBuilder() {
if (classificationsBuilder_ == null) {
classificationsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassification.Builder,
com.google.cloud.visionai.v1.VideoClassificationPredictionResult
.IdentifiedClassificationOrBuilder>(
classifications_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
classifications_ = null;
}
return classificationsBuilder_;
}
@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.VideoClassificationPredictionResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.VideoClassificationPredictionResult)
private static final com.google.cloud.visionai.v1.VideoClassificationPredictionResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.VideoClassificationPredictionResult();
}
public static com.google.cloud.visionai.v1.VideoClassificationPredictionResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VideoClassificationPredictionResult 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.VideoClassificationPredictionResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy