diff --git a/proto-google-cloud-video-intelligence-v1/clirr-ignored-differences.xml b/proto-google-cloud-video-intelligence-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000..685b6ddb6 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/videointelligence/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/videointelligence/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/videointelligence/v1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttribute.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttribute.java new file mode 100644 index 000000000..fdc503a39 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttribute.java @@ -0,0 +1,915 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +/** + * + * + *
+ * A generic detected attribute represented by name in string format.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.DetectedAttribute} + */ +public final class DetectedAttribute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.DetectedAttribute) + DetectedAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DetectedAttribute.newBuilder() to construct. + private DetectedAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DetectedAttribute() { + name_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DetectedAttribute(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DetectedAttribute( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.DetectedAttribute.class, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+   * A full list of supported type names will be provided in the document.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+   * A full list of supported type names will be provided in the document.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+   * Detected attribute confidence. Range [0, 1].
+   * 
+ * + * float confidence = 2; + * + * @return The confidence. + */ + public float getConfidence() { + return confidence_; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; + /** + * + * + *
+   * Text value of the detection result. For example, the value for "HairColor"
+   * can be "black", "blonde", etc.
+   * 
+ * + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * Text value of the detection result. For example, the value for "HairColor"
+   * can be "black", "blonde", etc.
+   * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1.DetectedAttribute)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1.DetectedAttribute other = + (com.google.cloud.videointelligence.v1.DetectedAttribute) obj; + + if (!getName().equals(other.getName())) return false; + if (java.lang.Float.floatToIntBits(getConfidence()) + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute 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.videointelligence.v1.DetectedAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute 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.videointelligence.v1.DetectedAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute 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.videointelligence.v1.DetectedAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute 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.videointelligence.v1.DetectedAttribute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute 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.videointelligence.v1.DetectedAttribute 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; + } + /** + * + * + *
+   * A generic detected attribute represented by name in string format.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.DetectedAttribute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.DetectedAttribute) + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.DetectedAttribute.class, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1.DetectedAttribute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + confidence_ = 0F; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedAttribute getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedAttribute build() { + com.google.cloud.videointelligence.v1.DetectedAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedAttribute buildPartial() { + com.google.cloud.videointelligence.v1.DetectedAttribute result = + new com.google.cloud.videointelligence.v1.DetectedAttribute(this); + result.name_ = name_; + result.confidence_ = confidence_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1.DetectedAttribute) { + return mergeFrom((com.google.cloud.videointelligence.v1.DetectedAttribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1.DetectedAttribute other) { + if (other == com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1.DetectedAttribute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1.DetectedAttribute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+     * A full list of supported type names will be provided in the document.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+     * A full list of supported type names will be provided in the document.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+     * A full list of supported type names will be provided in the document.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+     * A full list of supported type names will be provided in the document.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+     * A full list of supported type names will be provided in the document.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private float confidence_; + /** + * + * + *
+     * Detected attribute confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + * + * @return The confidence. + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Detected attribute confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Detected attribute confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + * + * @return This builder for chaining. + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Text value of the detection result. For example, the value for "HairColor"
+     * can be "black", "blonde", etc.
+     * 
+ * + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Text value of the detection result. For example, the value for "HairColor"
+     * can be "black", "blonde", etc.
+     * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Text value of the detection result. For example, the value for "HairColor"
+     * can be "black", "blonde", etc.
+     * 
+ * + * string value = 3; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Text value of the detection result. For example, the value for "HairColor"
+     * can be "black", "blonde", etc.
+     * 
+ * + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Text value of the detection result. For example, the value for "HairColor"
+     * can be "black", "blonde", etc.
+     * 
+ * + * string value = 3; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + 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.videointelligence.v1.DetectedAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.DetectedAttribute) + private static final com.google.cloud.videointelligence.v1.DetectedAttribute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.DetectedAttribute(); + } + + public static com.google.cloud.videointelligence.v1.DetectedAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedAttribute(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttributeOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttributeOrBuilder.java new file mode 100644 index 000000000..c7185a720 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedAttributeOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +public interface DetectedAttributeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1.DetectedAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+   * A full list of supported type names will be provided in the document.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
+   * A full list of supported type names will be provided in the document.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Detected attribute confidence. Range [0, 1].
+   * 
+ * + * float confidence = 2; + * + * @return The confidence. + */ + float getConfidence(); + + /** + * + * + *
+   * Text value of the detection result. For example, the value for "HairColor"
+   * can be "black", "blonde", etc.
+   * 
+ * + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Text value of the detection result. For example, the value for "HairColor"
+   * can be "black", "blonde", etc.
+   * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmark.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmark.java new file mode 100644 index 000000000..f0c1b4eb2 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmark.java @@ -0,0 +1,1014 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +/** + * + * + *
+ * A generic detected landmark represented by name in string format and a 2D
+ * location.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.DetectedLandmark} + */ +public final class DetectedLandmark extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.DetectedLandmark) + DetectedLandmarkOrBuilder { + private static final long serialVersionUID = 0L; + // Use DetectedLandmark.newBuilder() to construct. + private DetectedLandmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DetectedLandmark() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DetectedLandmark(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DetectedLandmark( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.videointelligence.v1.NormalizedVertex.Builder subBuilder = null; + if (point_ != null) { + subBuilder = point_.toBuilder(); + } + point_ = + input.readMessage( + com.google.cloud.videointelligence.v1.NormalizedVertex.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(point_); + point_ = subBuilder.buildPartial(); + } + + break; + } + case 29: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedLandmark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.DetectedLandmark.class, + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of this landmark, i.e. left_hand, right_shoulder.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of this landmark, i.e. left_hand, right_shoulder.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POINT_FIELD_NUMBER = 2; + private com.google.cloud.videointelligence.v1.NormalizedVertex point_; + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return Whether the point field is set. + */ + public boolean hasPoint() { + return point_ != null; + } + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return The point. + */ + public com.google.cloud.videointelligence.v1.NormalizedVertex getPoint() { + return point_ == null + ? com.google.cloud.videointelligence.v1.NormalizedVertex.getDefaultInstance() + : point_; + } + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder getPointOrBuilder() { + return getPoint(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 3; + private float confidence_; + /** + * + * + *
+   * The confidence score of the detected landmark. Range [0, 1].
+   * 
+ * + * float confidence = 3; + * + * @return The confidence. + */ + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (point_ != null) { + output.writeMessage(2, getPoint()); + } + if (confidence_ != 0F) { + output.writeFloat(3, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (point_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPoint()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1.DetectedLandmark)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1.DetectedLandmark other = + (com.google.cloud.videointelligence.v1.DetectedLandmark) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPoint() != other.hasPoint()) return false; + if (hasPoint()) { + if (!getPoint().equals(other.getPoint())) return false; + } + if (java.lang.Float.floatToIntBits(getConfidence()) + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasPoint()) { + hash = (37 * hash) + POINT_FIELD_NUMBER; + hash = (53 * hash) + getPoint().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark 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.videointelligence.v1.DetectedLandmark parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark 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.videointelligence.v1.DetectedLandmark parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark 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.videointelligence.v1.DetectedLandmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark 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.videointelligence.v1.DetectedLandmark parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark 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.videointelligence.v1.DetectedLandmark 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; + } + /** + * + * + *
+   * A generic detected landmark represented by name in string format and a 2D
+   * location.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.DetectedLandmark} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.DetectedLandmark) + com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedLandmark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.DetectedLandmark.class, + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1.DetectedLandmark.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (pointBuilder_ == null) { + point_ = null; + } else { + point_ = null; + pointBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedLandmark getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1.DetectedLandmark.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedLandmark build() { + com.google.cloud.videointelligence.v1.DetectedLandmark result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedLandmark buildPartial() { + com.google.cloud.videointelligence.v1.DetectedLandmark result = + new com.google.cloud.videointelligence.v1.DetectedLandmark(this); + result.name_ = name_; + if (pointBuilder_ == null) { + result.point_ = point_; + } else { + result.point_ = pointBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1.DetectedLandmark) { + return mergeFrom((com.google.cloud.videointelligence.v1.DetectedLandmark) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1.DetectedLandmark other) { + if (other == com.google.cloud.videointelligence.v1.DetectedLandmark.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasPoint()) { + mergePoint(other.getPoint()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1.DetectedLandmark parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1.DetectedLandmark) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of this landmark, i.e. left_hand, right_shoulder.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of this landmark, i.e. left_hand, right_shoulder.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of this landmark, i.e. left_hand, right_shoulder.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this landmark, i.e. left_hand, right_shoulder.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this landmark, i.e. left_hand, right_shoulder.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.videointelligence.v1.NormalizedVertex point_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedVertex, + com.google.cloud.videointelligence.v1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder> + pointBuilder_; + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return Whether the point field is set. + */ + public boolean hasPoint() { + return pointBuilder_ != null || point_ != null; + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return The point. + */ + public com.google.cloud.videointelligence.v1.NormalizedVertex getPoint() { + if (pointBuilder_ == null) { + return point_ == null + ? com.google.cloud.videointelligence.v1.NormalizedVertex.getDefaultInstance() + : point_; + } else { + return pointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public Builder setPoint(com.google.cloud.videointelligence.v1.NormalizedVertex value) { + if (pointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + point_ = value; + onChanged(); + } else { + pointBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public Builder setPoint( + com.google.cloud.videointelligence.v1.NormalizedVertex.Builder builderForValue) { + if (pointBuilder_ == null) { + point_ = builderForValue.build(); + onChanged(); + } else { + pointBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public Builder mergePoint(com.google.cloud.videointelligence.v1.NormalizedVertex value) { + if (pointBuilder_ == null) { + if (point_ != null) { + point_ = + com.google.cloud.videointelligence.v1.NormalizedVertex.newBuilder(point_) + .mergeFrom(value) + .buildPartial(); + } else { + point_ = value; + } + onChanged(); + } else { + pointBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public Builder clearPoint() { + if (pointBuilder_ == null) { + point_ = null; + onChanged(); + } else { + point_ = null; + pointBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public com.google.cloud.videointelligence.v1.NormalizedVertex.Builder getPointBuilder() { + + onChanged(); + return getPointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + public com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder getPointOrBuilder() { + if (pointBuilder_ != null) { + return pointBuilder_.getMessageOrBuilder(); + } else { + return point_ == null + ? com.google.cloud.videointelligence.v1.NormalizedVertex.getDefaultInstance() + : point_; + } + } + /** + * + * + *
+     * The 2D point of the detected landmark using the normalized image
+     * coordindate system. The normalized coordinates have the range from 0 to 1.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedVertex, + com.google.cloud.videointelligence.v1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder> + getPointFieldBuilder() { + if (pointBuilder_ == null) { + pointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedVertex, + com.google.cloud.videointelligence.v1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder>( + getPoint(), getParentForChildren(), isClean()); + point_ = null; + } + return pointBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * The confidence score of the detected landmark. Range [0, 1].
+     * 
+ * + * float confidence = 3; + * + * @return The confidence. + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * The confidence score of the detected landmark. Range [0, 1].
+     * 
+ * + * float confidence = 3; + * + * @param value The confidence to set. + * @return This builder for chaining. + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The confidence score of the detected landmark. Range [0, 1].
+     * 
+ * + * float confidence = 3; + * + * @return This builder for chaining. + */ + public Builder clearConfidence() { + + 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.videointelligence.v1.DetectedLandmark) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.DetectedLandmark) + private static final com.google.cloud.videointelligence.v1.DetectedLandmark DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.DetectedLandmark(); + } + + public static com.google.cloud.videointelligence.v1.DetectedLandmark getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLandmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLandmark(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.DetectedLandmark getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmarkOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmarkOrBuilder.java new file mode 100644 index 000000000..ff81d57af --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/DetectedLandmarkOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +public interface DetectedLandmarkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1.DetectedLandmark) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of this landmark, i.e. left_hand, right_shoulder.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of this landmark, i.e. left_hand, right_shoulder.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return Whether the point field is set. + */ + boolean hasPoint(); + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + * + * @return The point. + */ + com.google.cloud.videointelligence.v1.NormalizedVertex getPoint(); + /** + * + * + *
+   * The 2D point of the detected landmark using the normalized image
+   * coordindate system. The normalized coordinates have the range from 0 to 1.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedVertex point = 2; + */ + com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder getPointOrBuilder(); + + /** + * + * + *
+   * The confidence score of the detected landmark. Range [0, 1].
+   * 
+ * + * float confidence = 3; + * + * @return The confidence. + */ + float getConfidence(); +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java index b2de7f091..dc8b99ba6 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java @@ -108,6 +108,16 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { * OBJECT_TRACKING = 9; */ OBJECT_TRACKING(9), + /** + * + * + *
+   * Logo detection, tracking, and recognition.
+   * 
+ * + * LOGO_RECOGNITION = 12; + */ + LOGO_RECOGNITION(12), UNRECOGNIZED(-1), ; @@ -191,6 +201,16 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { * OBJECT_TRACKING = 9; */ public static final int OBJECT_TRACKING_VALUE = 9; + /** + * + * + *
+   * Logo detection, tracking, and recognition.
+   * 
+ * + * LOGO_RECOGNITION = 12; + */ + public static final int LOGO_RECOGNITION_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -232,6 +252,8 @@ public static Feature forNumber(int value) { return TEXT_DETECTION; case 9: return OBJECT_TRACKING; + case 12: + return LOGO_RECOGNITION; default: return null; } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotation.java new file mode 100644 index 000000000..65d762867 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotation.java @@ -0,0 +1,1777 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +/** + * + * + *
+ * Annotation corresponding to one detected, tracked and recognized logo class.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.LogoRecognitionAnnotation} + */ +public final class LogoRecognitionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.LogoRecognitionAnnotation) + LogoRecognitionAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogoRecognitionAnnotation.newBuilder() to construct. + private LogoRecognitionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogoRecognitionAnnotation() { + tracks_ = java.util.Collections.emptyList(); + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogoRecognitionAnnotation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LogoRecognitionAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage( + com.google.cloud.videointelligence.v1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tracks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tracks_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.Track.parser(), extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + segments_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + segments_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.VideoSegment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tracks_ = java.util.Collections.unmodifiableList(tracks_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.class, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder.class); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1.Entity entity_; + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. + */ + public boolean hasEntity() { + return entity_ != null; + } + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. + */ + public com.google.cloud.videointelligence.v1.Entity getEntity() { + return entity_ == null + ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() + : entity_; + } + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder() { + return getEntity(); + } + + public static final int TRACKS_FIELD_NUMBER = 2; + private java.util.List tracks_; + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public java.util.List getTracksList() { + return tracks_; + } + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public java.util.List + getTracksOrBuilderList() { + return tracks_; + } + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public int getTracksCount() { + return tracks_.size(); + } + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.Track getTracks(int index) { + return tracks_.get(index); + } + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.TrackOrBuilder getTracksOrBuilder(int index) { + return tracks_.get(index); + } + + public static final int SEGMENTS_FIELD_NUMBER = 3; + private java.util.List segments_; + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public java.util.List getSegmentsList() { + return segments_; + } + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegment getSegments(int index) { + return segments_.get(index); + } + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.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 (entity_ != null) { + output.writeMessage(1, getEntity()); + } + for (int i = 0; i < tracks_.size(); i++) { + output.writeMessage(2, tracks_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(3, segments_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); + } + for (int i = 0; i < tracks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tracks_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, segments_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation other = + (com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity().equals(other.getEntity())) return false; + } + if (!getTracksList().equals(other.getTracksList())) return false; + if (!getSegmentsList().equals(other.getSegmentsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (getTracksCount() > 0) { + hash = (37 * hash) + TRACKS_FIELD_NUMBER; + hash = (53 * hash) + getTracksList().hashCode(); + } + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation 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.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation 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.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation 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.videointelligence.v1.LogoRecognitionAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation 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.videointelligence.v1.LogoRecognitionAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation 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.videointelligence.v1.LogoRecognitionAnnotation 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; + } + /** + * + * + *
+   * Annotation corresponding to one detected, tracked and recognized logo class.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.LogoRecognitionAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.LogoRecognitionAnnotation) + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.class, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTracksFieldBuilder(); + getSegmentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityBuilder_ == null) { + entity_ = null; + } else { + entity_ = null; + entityBuilder_ = null; + } + if (tracksBuilder_ == null) { + tracks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tracksBuilder_.clear(); + } + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation build() { + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation buildPartial() { + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation result = + new com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation(this); + int from_bitField0_ = bitField0_; + if (entityBuilder_ == null) { + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + if (tracksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tracks_ = java.util.Collections.unmodifiableList(tracks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tracks_ = tracks_; + } else { + result.tracks_ = tracksBuilder_.build(); + } + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation other) { + if (other + == com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.getDefaultInstance()) + return this; + if (other.hasEntity()) { + mergeEntity(other.getEntity()); + } + if (tracksBuilder_ == null) { + if (!other.tracks_.isEmpty()) { + if (tracks_.isEmpty()) { + tracks_ = other.tracks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTracksIsMutable(); + tracks_.addAll(other.tracks_); + } + onChanged(); + } + } else { + if (!other.tracks_.isEmpty()) { + if (tracksBuilder_.isEmpty()) { + tracksBuilder_.dispose(); + tracksBuilder_ = null; + tracks_ = other.tracks_; + bitField0_ = (bitField0_ & ~0x00000001); + tracksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTracksFieldBuilder() + : null; + } else { + tracksBuilder_.addAllMessages(other.tracks_); + } + } + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1.Entity entity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.Entity, + com.google.cloud.videointelligence.v1.Entity.Builder, + com.google.cloud.videointelligence.v1.EntityOrBuilder> + entityBuilder_; + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. + */ + public com.google.cloud.videointelligence.v1.Entity getEntity() { + if (entityBuilder_ == null) { + return entity_ == null + ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() + : entity_; + } else { + return entityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1.Entity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + onChanged(); + } else { + entityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1.Entity.Builder builderForValue) { + if (entityBuilder_ == null) { + entity_ = builderForValue.build(); + onChanged(); + } else { + entityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public Builder mergeEntity(com.google.cloud.videointelligence.v1.Entity value) { + if (entityBuilder_ == null) { + if (entity_ != null) { + entity_ = + com.google.cloud.videointelligence.v1.Entity.newBuilder(entity_) + .mergeFrom(value) + .buildPartial(); + } else { + entity_ = value; + } + onChanged(); + } else { + entityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1.Entity.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilder(); + } else { + return entity_ == null + ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() + : entity_; + } + } + /** + * + * + *
+     * Entity category information to specify the logo class that all the logo
+     * tracks within this LogoRecognitionAnnotation are recognized as.
+     * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.Entity, + com.google.cloud.videointelligence.v1.Entity.Builder, + com.google.cloud.videointelligence.v1.EntityOrBuilder> + getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.Entity, + com.google.cloud.videointelligence.v1.Entity.Builder, + com.google.cloud.videointelligence.v1.EntityOrBuilder>( + getEntity(), getParentForChildren(), isClean()); + entity_ = null; + } + return entityBuilder_; + } + + private java.util.List tracks_ = + java.util.Collections.emptyList(); + + private void ensureTracksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tracks_ = new java.util.ArrayList(tracks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.Track, + com.google.cloud.videointelligence.v1.Track.Builder, + com.google.cloud.videointelligence.v1.TrackOrBuilder> + tracksBuilder_; + + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public java.util.List getTracksList() { + if (tracksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tracks_); + } else { + return tracksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public int getTracksCount() { + if (tracksBuilder_ == null) { + return tracks_.size(); + } else { + return tracksBuilder_.getCount(); + } + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.Track getTracks(int index) { + if (tracksBuilder_ == null) { + return tracks_.get(index); + } else { + return tracksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder setTracks(int index, com.google.cloud.videointelligence.v1.Track value) { + if (tracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTracksIsMutable(); + tracks_.set(index, value); + onChanged(); + } else { + tracksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder setTracks( + int index, com.google.cloud.videointelligence.v1.Track.Builder builderForValue) { + if (tracksBuilder_ == null) { + ensureTracksIsMutable(); + tracks_.set(index, builderForValue.build()); + onChanged(); + } else { + tracksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder addTracks(com.google.cloud.videointelligence.v1.Track value) { + if (tracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTracksIsMutable(); + tracks_.add(value); + onChanged(); + } else { + tracksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder addTracks(int index, com.google.cloud.videointelligence.v1.Track value) { + if (tracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTracksIsMutable(); + tracks_.add(index, value); + onChanged(); + } else { + tracksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder addTracks(com.google.cloud.videointelligence.v1.Track.Builder builderForValue) { + if (tracksBuilder_ == null) { + ensureTracksIsMutable(); + tracks_.add(builderForValue.build()); + onChanged(); + } else { + tracksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder addTracks( + int index, com.google.cloud.videointelligence.v1.Track.Builder builderForValue) { + if (tracksBuilder_ == null) { + ensureTracksIsMutable(); + tracks_.add(index, builderForValue.build()); + onChanged(); + } else { + tracksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder addAllTracks( + java.lang.Iterable values) { + if (tracksBuilder_ == null) { + ensureTracksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tracks_); + onChanged(); + } else { + tracksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder clearTracks() { + if (tracksBuilder_ == null) { + tracks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tracksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public Builder removeTracks(int index) { + if (tracksBuilder_ == null) { + ensureTracksIsMutable(); + tracks_.remove(index); + onChanged(); + } else { + tracksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.Track.Builder getTracksBuilder(int index) { + return getTracksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.TrackOrBuilder getTracksOrBuilder(int index) { + if (tracksBuilder_ == null) { + return tracks_.get(index); + } else { + return tracksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public java.util.List + getTracksOrBuilderList() { + if (tracksBuilder_ != null) { + return tracksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tracks_); + } + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.Track.Builder addTracksBuilder() { + return getTracksFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.Track.getDefaultInstance()); + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public com.google.cloud.videointelligence.v1.Track.Builder addTracksBuilder(int index) { + return getTracksFieldBuilder() + .addBuilder(index, com.google.cloud.videointelligence.v1.Track.getDefaultInstance()); + } + /** + * + * + *
+     * All logo tracks where the recognized logo appears. Each track corresponds
+     * to one logo instance appearing in consecutive frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + public java.util.List + getTracksBuilderList() { + return getTracksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.Track, + com.google.cloud.videointelligence.v1.Track.Builder, + com.google.cloud.videointelligence.v1.TrackOrBuilder> + getTracksFieldBuilder() { + if (tracksBuilder_ == null) { + tracksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.Track, + com.google.cloud.videointelligence.v1.Track.Builder, + com.google.cloud.videointelligence.v1.TrackOrBuilder>( + tracks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tracks_ = null; + } + return tracksBuilder_; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + segments_ = + new java.util.ArrayList(segments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1.VideoSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where the recognized logo appears. There might be
+     * multiple instances of the same logo class appearing in one VideoSegment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder>( + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + @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.videointelligence.v1.LogoRecognitionAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LogoRecognitionAnnotation) + private static final com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation(); + } + + public static com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogoRecognitionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogoRecognitionAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotationOrBuilder.java new file mode 100644 index 000000000..5da50d02a --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LogoRecognitionAnnotationOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +public interface LogoRecognitionAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1.LogoRecognitionAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. + */ + boolean hasEntity(); + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. + */ + com.google.cloud.videointelligence.v1.Entity getEntity(); + /** + * + * + *
+   * Entity category information to specify the logo class that all the logo
+   * tracks within this LogoRecognitionAnnotation are recognized as.
+   * 
+ * + * .google.cloud.videointelligence.v1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder(); + + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + java.util.List getTracksList(); + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + com.google.cloud.videointelligence.v1.Track getTracks(int index); + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + int getTracksCount(); + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + java.util.List + getTracksOrBuilderList(); + /** + * + * + *
+   * All logo tracks where the recognized logo appears. Each track corresponds
+   * to one logo instance appearing in consecutive frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.Track tracks = 2; + */ + com.google.cloud.videointelligence.v1.TrackOrBuilder getTracksOrBuilder(int index); + + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + java.util.List getSegmentsList(); + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + com.google.cloud.videointelligence.v1.VideoSegment getSegments(int index); + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + int getSegmentsCount(); + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * + * + *
+   * All video segments where the recognized logo appears. There might be
+   * multiple instances of the same logo class appearing in one VideoSegment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3; + */ + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentsOrBuilder(int index); +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObject.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObject.java new file mode 100644 index 000000000..749889306 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObject.java @@ -0,0 +1,2133 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +/** + * + * + *
+ * For tracking related features.
+ * An object at time_offset with attributes, and located with
+ * normalized_bounding_box.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.TimestampedObject} + */ +public final class TimestampedObject extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.TimestampedObject) + TimestampedObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampedObject.newBuilder() to construct. + private TimestampedObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimestampedObject() { + attributes_ = java.util.Collections.emptyList(); + landmarks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimestampedObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimestampedObject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder subBuilder = null; + if (normalizedBoundingBox_ != null) { + subBuilder = normalizedBoundingBox_.toBuilder(); + } + normalizedBoundingBox_ = + input.readMessage( + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(normalizedBoundingBox_); + normalizedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.DetectedAttribute>(); + mutable_bitField0_ |= 0x00000001; + } + attributes_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.DetectedAttribute.parser(), + extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarks_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.DetectedLandmark>(); + mutable_bitField0_ |= 0x00000002; + } + landmarks_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.DetectedLandmark.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + landmarks_ = java.util.Collections.unmodifiableList(landmarks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_TimestampedObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.TimestampedObject.class, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder.class); + } + + public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1.NormalizedBoundingBox normalizedBoundingBox_; + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return Whether the normalizedBoundingBox field is set. + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBox_ != null; + } + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return The normalizedBoundingBox. + */ + public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox() { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1.NormalizedBoundingBox.getDefaultInstance() + : normalizedBoundingBox_; + } + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder() { + return getNormalizedBoundingBox(); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 3; + private java.util.List attributes_; + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesList() { + return attributes_; + } + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesOrBuilderList() { + return attributes_; + } + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAttributesCount() { + return attributes_.size(); + } + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index) { + return attributes_.get(index); + } + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index) { + return attributes_.get(index); + } + + public static final int LANDMARKS_FIELD_NUMBER = 4; + private java.util.List landmarks_; + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getLandmarksList() { + return landmarks_; + } + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLandmarksOrBuilderList() { + return landmarks_; + } + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLandmarksCount() { + return landmarks_.size(); + } + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmark getLandmarks(int index) { + return landmarks_.get(index); + } + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder getLandmarksOrBuilder( + int index) { + return landmarks_.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 (normalizedBoundingBox_ != null) { + output.writeMessage(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + output.writeMessage(2, getTimeOffset()); + } + for (int i = 0; i < attributes_.size(); i++) { + output.writeMessage(3, attributes_.get(i)); + } + for (int i = 0; i < landmarks_.size(); i++) { + output.writeMessage(4, landmarks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (normalizedBoundingBox_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset()); + } + for (int i = 0; i < attributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attributes_.get(i)); + } + for (int i = 0; i < landmarks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, landmarks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1.TimestampedObject)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1.TimestampedObject other = + (com.google.cloud.videointelligence.v1.TimestampedObject) obj; + + if (hasNormalizedBoundingBox() != other.hasNormalizedBoundingBox()) return false; + if (hasNormalizedBoundingBox()) { + if (!getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox())) return false; + } + if (hasTimeOffset() != other.hasTimeOffset()) return false; + if (hasTimeOffset()) { + if (!getTimeOffset().equals(other.getTimeOffset())) return false; + } + if (!getAttributesList().equals(other.getAttributesList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNormalizedBoundingBox()) { + hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedBoundingBox().hashCode(); + } + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } + if (getLandmarksCount() > 0) { + hash = (37 * hash) + LANDMARKS_FIELD_NUMBER; + hash = (53 * hash) + getLandmarksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject 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.videointelligence.v1.TimestampedObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject 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.videointelligence.v1.TimestampedObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject 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.videointelligence.v1.TimestampedObject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject 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.videointelligence.v1.TimestampedObject parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject 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.videointelligence.v1.TimestampedObject 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; + } + /** + * + * + *
+   * For tracking related features.
+   * An object at time_offset with attributes, and located with
+   * normalized_bounding_box.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.TimestampedObject} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.TimestampedObject) + com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_TimestampedObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.TimestampedObject.class, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1.TimestampedObject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAttributesFieldBuilder(); + getLandmarksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + attributesBuilder_.clear(); + } + if (landmarksBuilder_ == null) { + landmarks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + landmarksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.TimestampedObject getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1.TimestampedObject.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.TimestampedObject build() { + com.google.cloud.videointelligence.v1.TimestampedObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.TimestampedObject buildPartial() { + com.google.cloud.videointelligence.v1.TimestampedObject result = + new com.google.cloud.videointelligence.v1.TimestampedObject(this); + int from_bitField0_ = bitField0_; + if (normalizedBoundingBoxBuilder_ == null) { + result.normalizedBoundingBox_ = normalizedBoundingBox_; + } else { + result.normalizedBoundingBox_ = normalizedBoundingBoxBuilder_.build(); + } + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + if (landmarksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + landmarks_ = java.util.Collections.unmodifiableList(landmarks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.landmarks_ = landmarks_; + } else { + result.landmarks_ = landmarksBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1.TimestampedObject) { + return mergeFrom((com.google.cloud.videointelligence.v1.TimestampedObject) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1.TimestampedObject other) { + if (other == com.google.cloud.videointelligence.v1.TimestampedObject.getDefaultInstance()) + return this; + if (other.hasNormalizedBoundingBox()) { + mergeNormalizedBoundingBox(other.getNormalizedBoundingBox()); + } + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + attributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttributesFieldBuilder() + : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } + if (landmarksBuilder_ == null) { + if (!other.landmarks_.isEmpty()) { + if (landmarks_.isEmpty()) { + landmarks_ = other.landmarks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLandmarksIsMutable(); + landmarks_.addAll(other.landmarks_); + } + onChanged(); + } + } else { + if (!other.landmarks_.isEmpty()) { + if (landmarksBuilder_.isEmpty()) { + landmarksBuilder_.dispose(); + landmarksBuilder_ = null; + landmarks_ = other.landmarks_; + bitField0_ = (bitField0_ & ~0x00000002); + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; + } else { + landmarksBuilder_.addAllMessages(other.landmarks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1.TimestampedObject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1.TimestampedObject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1.NormalizedBoundingBox normalizedBoundingBox_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder> + normalizedBoundingBoxBuilder_; + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return Whether the normalizedBoundingBox field is set. + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return The normalizedBoundingBox. + */ + public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1.NormalizedBoundingBox.getDefaultInstance() + : normalizedBoundingBox_; + } else { + return normalizedBoundingBoxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder setNormalizedBoundingBox( + com.google.cloud.videointelligence.v1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + normalizedBoundingBox_ = value; + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder setNormalizedBoundingBox( + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder builderForValue) { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = builderForValue.build(); + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder mergeNormalizedBoundingBox( + com.google.cloud.videointelligence.v1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (normalizedBoundingBox_ != null) { + normalizedBoundingBox_ = + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.newBuilder( + normalizedBoundingBox_) + .mergeFrom(value) + .buildPartial(); + } else { + normalizedBoundingBox_ = value; + } + onChanged(); + } else { + normalizedBoundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder clearNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + onChanged(); + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder + getNormalizedBoundingBoxBuilder() { + + onChanged(); + return getNormalizedBoundingBoxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder() { + if (normalizedBoundingBoxBuilder_ != null) { + return normalizedBoundingBoxBuilder_.getMessageOrBuilder(); + } else { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1.NormalizedBoundingBox.getDefaultInstance() + : normalizedBoundingBox_; + } + } + /** + * + * + *
+     * Normalized Bounding box in a frame, where the object is located.
+     * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder> + getNormalizedBoundingBoxFieldBuilder() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBoxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder>( + getNormalizedBoundingBox(), getParentForChildren(), isClean()); + normalizedBoundingBox_ = null; + } + return normalizedBoundingBoxBuilder_; + } + + private com.google.protobuf.Duration timeOffset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the video frame for this object.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), getParentForChildren(), isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + private java.util.List attributes_ = + java.util.Collections.emptyList(); + + private void ensureAttributesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + attributes_ = + new java.util.ArrayList( + attributes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesList() { + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAttributesCount() { + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes( + int index, com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes( + int index, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes(com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + int index, com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + int index, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAttributes( + java.lang.Iterable + values) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attributesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAttributes(int index) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder getAttributesBuilder( + int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder addAttributesBuilder() { + return getAttributesFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder addAttributesBuilder( + int index) { + return getAttributesFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The attributes of the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder>( + attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.util.List landmarks_ = + java.util.Collections.emptyList(); + + private void ensureLandmarksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + landmarks_ = + new java.util.ArrayList( + landmarks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedLandmark, + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder, + com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder> + landmarksBuilder_; + + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLandmarksList() { + if (landmarksBuilder_ == null) { + return java.util.Collections.unmodifiableList(landmarks_); + } else { + return landmarksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLandmarksCount() { + if (landmarksBuilder_ == null) { + return landmarks_.size(); + } else { + return landmarksBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmark getLandmarks(int index) { + if (landmarksBuilder_ == null) { + return landmarks_.get(index); + } else { + return landmarksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLandmarks( + int index, com.google.cloud.videointelligence.v1.DetectedLandmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.set(index, value); + onChanged(); + } else { + landmarksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLandmarks( + int index, com.google.cloud.videointelligence.v1.DetectedLandmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.set(index, builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLandmarks(com.google.cloud.videointelligence.v1.DetectedLandmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.add(value); + onChanged(); + } else { + landmarksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLandmarks( + int index, com.google.cloud.videointelligence.v1.DetectedLandmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.add(index, value); + onChanged(); + } else { + landmarksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLandmarks( + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.add(builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLandmarks( + int index, com.google.cloud.videointelligence.v1.DetectedLandmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.add(index, builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllLandmarks( + java.lang.Iterable + values) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + onChanged(); + } else { + landmarksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLandmarks() { + if (landmarksBuilder_ == null) { + landmarks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + landmarksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLandmarks(int index) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.remove(index); + onChanged(); + } else { + landmarksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmark.Builder getLandmarksBuilder( + int index) { + return getLandmarksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder getLandmarksOrBuilder( + int index) { + if (landmarksBuilder_ == null) { + return landmarks_.get(index); + } else { + return landmarksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLandmarksOrBuilderList() { + if (landmarksBuilder_ != null) { + return landmarksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(landmarks_); + } + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmark.Builder addLandmarksBuilder() { + return getLandmarksFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.DetectedLandmark.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedLandmark.Builder addLandmarksBuilder( + int index) { + return getLandmarksFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.DetectedLandmark.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The detected landmarks.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLandmarksBuilderList() { + return getLandmarksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedLandmark, + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder, + com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder> + getLandmarksFieldBuilder() { + if (landmarksBuilder_ == null) { + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedLandmark, + com.google.cloud.videointelligence.v1.DetectedLandmark.Builder, + com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + landmarks_ = null; + } + return landmarksBuilder_; + } + + @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.videointelligence.v1.TimestampedObject) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.TimestampedObject) + private static final com.google.cloud.videointelligence.v1.TimestampedObject DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.TimestampedObject(); + } + + public static com.google.cloud.videointelligence.v1.TimestampedObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampedObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimestampedObject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.TimestampedObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObjectOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObjectOrBuilder.java new file mode 100644 index 000000000..843ba5154 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TimestampedObjectOrBuilder.java @@ -0,0 +1,227 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +public interface TimestampedObjectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1.TimestampedObject) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return Whether the normalizedBoundingBox field is set. + */ + boolean hasNormalizedBoundingBox(); + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + * + * @return The normalizedBoundingBox. + */ + com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox(); + /** + * + * + *
+   * Normalized Bounding box in a frame, where the object is located.
+   * 
+ * + * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + com.google.cloud.videointelligence.v1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder(); + + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. + */ + boolean hasTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. + */ + com.google.protobuf.Duration getTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the video frame for this object.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); + + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAttributesList(); + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index); + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAttributesCount(); + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAttributesOrBuilderList(); + /** + * + * + *
+   * Optional. The attributes of the object in the bounding box.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getLandmarksList(); + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedLandmark getLandmarks(int index); + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLandmarksCount(); + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLandmarksOrBuilderList(); + /** + * + * + *
+   * Optional. The detected landmarks.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder getLandmarksOrBuilder(int index); +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Track.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Track.java new file mode 100644 index 000000000..4a189b79f --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Track.java @@ -0,0 +1,1904 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +/** + * + * + *
+ * A track of an object instance.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.Track} + */ +public final class Track extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.Track) + TrackOrBuilder { + private static final long serialVersionUID = 0L; + // Use Track.newBuilder() to construct. + private Track(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Track() { + timestampedObjects_ = java.util.Collections.emptyList(); + attributes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Track(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Track( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = + input.readMessage( + com.google.cloud.videointelligence.v1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timestampedObjects_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.TimestampedObject>(); + mutable_bitField0_ |= 0x00000001; + } + timestampedObjects_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.TimestampedObject.parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + attributes_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.DetectedAttribute>(); + mutable_bitField0_ |= 0x00000002; + } + attributes_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.DetectedAttribute.parser(), + extensionRegistry)); + break; + } + case 37: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + timestampedObjects_ = java.util.Collections.unmodifiableList(timestampedObjects_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_Track_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_Track_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.Track.class, + com.google.cloud.videointelligence.v1.Track.Builder.class); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1.VideoSegment segment_; + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. + */ + public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { + return segment_ == null + ? com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + public static final int TIMESTAMPED_OBJECTS_FIELD_NUMBER = 2; + private java.util.List + timestampedObjects_; + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public java.util.List + getTimestampedObjectsList() { + return timestampedObjects_; + } + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public java.util.List + getTimestampedObjectsOrBuilderList() { + return timestampedObjects_; + } + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public int getTimestampedObjectsCount() { + return timestampedObjects_.size(); + } + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObject getTimestampedObjects(int index) { + return timestampedObjects_.get(index); + } + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder + getTimestampedObjectsOrBuilder(int index) { + return timestampedObjects_.get(index); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 3; + private java.util.List attributes_; + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesList() { + return attributes_; + } + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesOrBuilderList() { + return attributes_; + } + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAttributesCount() { + return attributes_.size(); + } + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index) { + return attributes_.get(index); + } + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index) { + return attributes_.get(index); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 4; + private float confidence_; + /** + * + * + *
+   * Optional. The confidence score of the tracked object.
+   * 
+ * + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. + */ + 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 (segment_ != null) { + output.writeMessage(1, getSegment()); + } + for (int i = 0; i < timestampedObjects_.size(); i++) { + output.writeMessage(2, timestampedObjects_.get(i)); + } + for (int i = 0; i < attributes_.size(); i++) { + output.writeMessage(3, attributes_.get(i)); + } + if (confidence_ != 0F) { + output.writeFloat(4, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + for (int i = 0; i < timestampedObjects_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, timestampedObjects_.get(i)); + } + for (int i = 0; i < attributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attributes_.get(i)); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1.Track)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1.Track other = + (com.google.cloud.videointelligence.v1.Track) obj; + + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } + if (!getTimestampedObjectsList().equals(other.getTimestampedObjectsList())) return false; + if (!getAttributesList().equals(other.getAttributesList())) return false; + if (java.lang.Float.floatToIntBits(getConfidence()) + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + if (getTimestampedObjectsCount() > 0) { + hash = (37 * hash) + TIMESTAMPED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getTimestampedObjectsList().hashCode(); + } + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1.Track parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.Track 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.videointelligence.v1.Track parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.Track 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.videointelligence.v1.Track parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1.Track parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1.Track parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.Track 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.videointelligence.v1.Track parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.Track 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.videointelligence.v1.Track parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1.Track 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.videointelligence.v1.Track 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; + } + /** + * + * + *
+   * A track of an object instance.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1.Track} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.Track) + com.google.cloud.videointelligence.v1.TrackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_Track_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_Track_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1.Track.class, + com.google.cloud.videointelligence.v1.Track.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1.Track.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimestampedObjectsFieldBuilder(); + getAttributesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + if (timestampedObjectsBuilder_ == null) { + timestampedObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + timestampedObjectsBuilder_.clear(); + } + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + attributesBuilder_.clear(); + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1_Track_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.Track getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1.Track.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.Track build() { + com.google.cloud.videointelligence.v1.Track result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.Track buildPartial() { + com.google.cloud.videointelligence.v1.Track result = + new com.google.cloud.videointelligence.v1.Track(this); + int from_bitField0_ = bitField0_; + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + if (timestampedObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + timestampedObjects_ = java.util.Collections.unmodifiableList(timestampedObjects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timestampedObjects_ = timestampedObjects_; + } else { + result.timestampedObjects_ = timestampedObjectsBuilder_.build(); + } + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1.Track) { + return mergeFrom((com.google.cloud.videointelligence.v1.Track) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1.Track other) { + if (other == com.google.cloud.videointelligence.v1.Track.getDefaultInstance()) return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (timestampedObjectsBuilder_ == null) { + if (!other.timestampedObjects_.isEmpty()) { + if (timestampedObjects_.isEmpty()) { + timestampedObjects_ = other.timestampedObjects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.addAll(other.timestampedObjects_); + } + onChanged(); + } + } else { + if (!other.timestampedObjects_.isEmpty()) { + if (timestampedObjectsBuilder_.isEmpty()) { + timestampedObjectsBuilder_.dispose(); + timestampedObjectsBuilder_ = null; + timestampedObjects_ = other.timestampedObjects_; + bitField0_ = (bitField0_ & ~0x00000001); + timestampedObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimestampedObjectsFieldBuilder() + : null; + } else { + timestampedObjectsBuilder_.addAllMessages(other.timestampedObjects_); + } + } + } + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000002); + attributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttributesFieldBuilder() + : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1.Track parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1.Track) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1.VideoSegment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. + */ + public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1.VideoSegment.newBuilder(segment_) + .mergeFrom(value) + .buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Video segment of a track.
+     * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1.VideoSegment, + com.google.cloud.videointelligence.v1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private java.util.List + timestampedObjects_ = java.util.Collections.emptyList(); + + private void ensureTimestampedObjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timestampedObjects_ = + new java.util.ArrayList( + timestampedObjects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.TimestampedObject, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder, + com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder> + timestampedObjectsBuilder_; + + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public java.util.List + getTimestampedObjectsList() { + if (timestampedObjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(timestampedObjects_); + } else { + return timestampedObjectsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public int getTimestampedObjectsCount() { + if (timestampedObjectsBuilder_ == null) { + return timestampedObjects_.size(); + } else { + return timestampedObjectsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObject getTimestampedObjects( + int index) { + if (timestampedObjectsBuilder_ == null) { + return timestampedObjects_.get(index); + } else { + return timestampedObjectsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder setTimestampedObjects( + int index, com.google.cloud.videointelligence.v1.TimestampedObject value) { + if (timestampedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.set(index, value); + onChanged(); + } else { + timestampedObjectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder setTimestampedObjects( + int index, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder builderForValue) { + if (timestampedObjectsBuilder_ == null) { + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.set(index, builderForValue.build()); + onChanged(); + } else { + timestampedObjectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder addTimestampedObjects( + com.google.cloud.videointelligence.v1.TimestampedObject value) { + if (timestampedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.add(value); + onChanged(); + } else { + timestampedObjectsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder addTimestampedObjects( + int index, com.google.cloud.videointelligence.v1.TimestampedObject value) { + if (timestampedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.add(index, value); + onChanged(); + } else { + timestampedObjectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder addTimestampedObjects( + com.google.cloud.videointelligence.v1.TimestampedObject.Builder builderForValue) { + if (timestampedObjectsBuilder_ == null) { + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.add(builderForValue.build()); + onChanged(); + } else { + timestampedObjectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder addTimestampedObjects( + int index, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder builderForValue) { + if (timestampedObjectsBuilder_ == null) { + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.add(index, builderForValue.build()); + onChanged(); + } else { + timestampedObjectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder addAllTimestampedObjects( + java.lang.Iterable + values) { + if (timestampedObjectsBuilder_ == null) { + ensureTimestampedObjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timestampedObjects_); + onChanged(); + } else { + timestampedObjectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder clearTimestampedObjects() { + if (timestampedObjectsBuilder_ == null) { + timestampedObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + timestampedObjectsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public Builder removeTimestampedObjects(int index) { + if (timestampedObjectsBuilder_ == null) { + ensureTimestampedObjectsIsMutable(); + timestampedObjects_.remove(index); + onChanged(); + } else { + timestampedObjectsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObject.Builder + getTimestampedObjectsBuilder(int index) { + return getTimestampedObjectsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder + getTimestampedObjectsOrBuilder(int index) { + if (timestampedObjectsBuilder_ == null) { + return timestampedObjects_.get(index); + } else { + return timestampedObjectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder> + getTimestampedObjectsOrBuilderList() { + if (timestampedObjectsBuilder_ != null) { + return timestampedObjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timestampedObjects_); + } + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObject.Builder + addTimestampedObjectsBuilder() { + return getTimestampedObjectsFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.TimestampedObject.getDefaultInstance()); + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public com.google.cloud.videointelligence.v1.TimestampedObject.Builder + addTimestampedObjectsBuilder(int index) { + return getTimestampedObjectsFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.TimestampedObject.getDefaultInstance()); + } + /** + * + * + *
+     * The object with timestamp and attributes per frame in the track.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + public java.util.List + getTimestampedObjectsBuilderList() { + return getTimestampedObjectsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.TimestampedObject, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder, + com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder> + getTimestampedObjectsFieldBuilder() { + if (timestampedObjectsBuilder_ == null) { + timestampedObjectsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.TimestampedObject, + com.google.cloud.videointelligence.v1.TimestampedObject.Builder, + com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder>( + timestampedObjects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + timestampedObjects_ = null; + } + return timestampedObjectsBuilder_; + } + + private java.util.List attributes_ = + java.util.Collections.emptyList(); + + private void ensureAttributesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + attributes_ = + new java.util.ArrayList( + attributes_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesList() { + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAttributesCount() { + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes( + int index, com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes( + int index, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes(com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + int index, com.google.cloud.videointelligence.v1.DetectedAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAttributes( + int index, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAttributes( + java.lang.Iterable + values) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + attributesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAttributes(int index) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder getAttributesBuilder( + int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder addAttributesBuilder() { + return getAttributesFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.videointelligence.v1.DetectedAttribute.Builder addAttributesBuilder( + int index) { + return getAttributesFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.DetectedAttribute.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Attributes in the track level.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.DetectedAttribute, + com.google.cloud.videointelligence.v1.DetectedAttribute.Builder, + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder>( + attributes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Optional. The confidence score of the tracked object.
+     * 
+ * + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Optional. The confidence score of the tracked object.
+     * 
+ * + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The confidence to set. + * @return This builder for chaining. + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The confidence score of the tracked object.
+     * 
+ * + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConfidence() { + + 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.videointelligence.v1.Track) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.Track) + private static final com.google.cloud.videointelligence.v1.Track DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.Track(); + } + + public static com.google.cloud.videointelligence.v1.Track getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Track parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Track(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1.Track getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TrackOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TrackOrBuilder.java new file mode 100644 index 000000000..bd0529e8d --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TrackOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 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/videointelligence/v1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1; + +public interface TrackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1.Track) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. + */ + boolean hasSegment(); + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. + */ + com.google.cloud.videointelligence.v1.VideoSegment getSegment(); + /** + * + * + *
+   * Video segment of a track.
+   * 
+ * + * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + java.util.List + getTimestampedObjectsList(); + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + com.google.cloud.videointelligence.v1.TimestampedObject getTimestampedObjects(int index); + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + int getTimestampedObjectsCount(); + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + java.util.List + getTimestampedObjectsOrBuilderList(); + /** + * + * + *
+   * The object with timestamp and attributes per frame in the track.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; + * + */ + com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder getTimestampedObjectsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAttributesList(); + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedAttribute getAttributes(int index); + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAttributesCount(); + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAttributesOrBuilderList(); + /** + * + * + *
+   * Optional. Attributes in the track level.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder getAttributesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The confidence score of the tracked object.
+   * 
+ * + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. + */ + float getConfidence(); +} diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java index 76dbf5209..075afd5e9 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java @@ -49,6 +49,7 @@ private VideoAnnotationResults() { speechTranscriptions_ = java.util.Collections.emptyList(); textAnnotations_ = java.util.Collections.emptyList(); objectAnnotations_ = java.util.Collections.emptyList(); + logoRecognitionAnnotations_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -246,6 +247,20 @@ private VideoAnnotationResults( extensionRegistry)); break; } + case 154: + { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { + logoRecognitionAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation>(); + mutable_bitField0_ |= 0x00000400; + } + logoRecognitionAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.parser(), + extensionRegistry)); + break; + } case 186: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { @@ -312,6 +327,10 @@ private VideoAnnotationResults( if (((mutable_bitField0_ & 0x00000200) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } + if (((mutable_bitField0_ & 0x00000400) != 0)) { + logoRecognitionAnnotations_ = + java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); + } if (((mutable_bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); @@ -1287,6 +1306,85 @@ public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation getObjectA return objectAnnotations_.get(index); } + public static final int LOGO_RECOGNITION_ANNOTATIONS_FIELD_NUMBER = 19; + private java.util.List + logoRecognitionAnnotations_; + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public java.util.List + getLogoRecognitionAnnotationsList() { + return logoRecognitionAnnotations_; + } + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder> + getLogoRecognitionAnnotationsOrBuilderList() { + return logoRecognitionAnnotations_; + } + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public int getLogoRecognitionAnnotationsCount() { + return logoRecognitionAnnotations_.size(); + } + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + getLogoRecognitionAnnotations(int index) { + return logoRecognitionAnnotations_.get(index); + } + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder + getLogoRecognitionAnnotationsOrBuilder(int index) { + return logoRecognitionAnnotations_.get(index); + } + public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** @@ -1383,6 +1481,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < objectAnnotations_.size(); i++) { output.writeMessage(14, objectAnnotations_.get(i)); } + for (int i = 0; i < logoRecognitionAnnotations_.size(); i++) { + output.writeMessage(19, logoRecognitionAnnotations_.get(i)); + } for (int i = 0; i < segmentPresenceLabelAnnotations_.size(); i++) { output.writeMessage(23, segmentPresenceLabelAnnotations_.get(i)); } @@ -1442,6 +1543,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, objectAnnotations_.get(i)); } + for (int i = 0; i < logoRecognitionAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, logoRecognitionAnnotations_.get(i)); + } for (int i = 0; i < segmentPresenceLabelAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1490,6 +1596,8 @@ public boolean equals(final java.lang.Object obj) { if (!getSpeechTranscriptionsList().equals(other.getSpeechTranscriptionsList())) return false; if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false; if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; + if (!getLogoRecognitionAnnotationsList().equals(other.getLogoRecognitionAnnotationsList())) + return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; @@ -1555,6 +1663,10 @@ public int hashCode() { hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getObjectAnnotationsList().hashCode(); } + if (getLogoRecognitionAnnotationsCount() > 0) { + hash = (37 * hash) + LOGO_RECOGNITION_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLogoRecognitionAnnotationsList().hashCode(); + } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); @@ -1710,6 +1822,7 @@ private void maybeForceBuilderInitialization() { getSpeechTranscriptionsFieldBuilder(); getTextAnnotationsFieldBuilder(); getObjectAnnotationsFieldBuilder(); + getLogoRecognitionAnnotationsFieldBuilder(); } } @@ -1790,6 +1903,12 @@ public Builder clear() { } else { objectAnnotationsBuilder_.clear(); } + if (logoRecognitionAnnotationsBuilder_ == null) { + logoRecognitionAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + logoRecognitionAnnotationsBuilder_.clear(); + } if (errorBuilder_ == null) { error_ = null; } else { @@ -1929,6 +2048,16 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial } else { result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } + if (logoRecognitionAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + logoRecognitionAnnotations_ = + java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.logoRecognitionAnnotations_ = logoRecognitionAnnotations_; + } else { + result.logoRecognitionAnnotations_ = logoRecognitionAnnotationsBuilder_.build(); + } if (errorBuilder_ == null) { result.error_ = error_; } else { @@ -2267,6 +2396,33 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe } } } + if (logoRecognitionAnnotationsBuilder_ == null) { + if (!other.logoRecognitionAnnotations_.isEmpty()) { + if (logoRecognitionAnnotations_.isEmpty()) { + logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.addAll(other.logoRecognitionAnnotations_); + } + onChanged(); + } + } else { + if (!other.logoRecognitionAnnotations_.isEmpty()) { + if (logoRecognitionAnnotationsBuilder_.isEmpty()) { + logoRecognitionAnnotationsBuilder_.dispose(); + logoRecognitionAnnotationsBuilder_ = null; + logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; + bitField0_ = (bitField0_ & ~0x00000400); + logoRecognitionAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoRecognitionAnnotationsFieldBuilder() + : null; + } else { + logoRecognitionAnnotationsBuilder_.addAllMessages(other.logoRecognitionAnnotations_); + } + } + } if (other.hasError()) { mergeError(other.getError()); } @@ -6965,6 +7121,415 @@ public Builder removeObjectAnnotations(int index) { return objectAnnotationsBuilder_; } + private java.util.List + logoRecognitionAnnotations_ = java.util.Collections.emptyList(); + + private void ensureLogoRecognitionAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + logoRecognitionAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation>( + logoRecognitionAnnotations_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder> + logoRecognitionAnnotationsBuilder_; + + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public java.util.List + getLogoRecognitionAnnotationsList() { + if (logoRecognitionAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); + } else { + return logoRecognitionAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public int getLogoRecognitionAnnotationsCount() { + if (logoRecognitionAnnotationsBuilder_ == null) { + return logoRecognitionAnnotations_.size(); + } else { + return logoRecognitionAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation + getLogoRecognitionAnnotations(int index) { + if (logoRecognitionAnnotationsBuilder_ == null) { + return logoRecognitionAnnotations_.get(index); + } else { + return logoRecognitionAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder setLogoRecognitionAnnotations( + int index, com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation value) { + if (logoRecognitionAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.set(index, value); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder setLogoRecognitionAnnotations( + int index, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder builderForValue) { + if (logoRecognitionAnnotationsBuilder_ == null) { + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder addLogoRecognitionAnnotations( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation value) { + if (logoRecognitionAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.add(value); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder addLogoRecognitionAnnotations( + int index, com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation value) { + if (logoRecognitionAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.add(index, value); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder addLogoRecognitionAnnotations( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder builderForValue) { + if (logoRecognitionAnnotationsBuilder_ == null) { + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder addLogoRecognitionAnnotations( + int index, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder builderForValue) { + if (logoRecognitionAnnotationsBuilder_ == null) { + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder addAllLogoRecognitionAnnotations( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation> + values) { + if (logoRecognitionAnnotationsBuilder_ == null) { + ensureLogoRecognitionAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoRecognitionAnnotations_); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder clearLogoRecognitionAnnotations() { + if (logoRecognitionAnnotationsBuilder_ == null) { + logoRecognitionAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public Builder removeLogoRecognitionAnnotations(int index) { + if (logoRecognitionAnnotationsBuilder_ == null) { + ensureLogoRecognitionAnnotationsIsMutable(); + logoRecognitionAnnotations_.remove(index); + onChanged(); + } else { + logoRecognitionAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder + getLogoRecognitionAnnotationsBuilder(int index) { + return getLogoRecognitionAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder + getLogoRecognitionAnnotationsOrBuilder(int index) { + if (logoRecognitionAnnotationsBuilder_ == null) { + return logoRecognitionAnnotations_.get(index); + } else { + return logoRecognitionAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder> + getLogoRecognitionAnnotationsOrBuilderList() { + if (logoRecognitionAnnotationsBuilder_ != null) { + return logoRecognitionAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); + } + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder + addLogoRecognitionAnnotationsBuilder() { + return getLogoRecognitionAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder + addLogoRecognitionAnnotationsBuilder(int index) { + return getLogoRecognitionAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Annotations for list of logos detected, tracked and recognized in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + public java.util.List + getLogoRecognitionAnnotationsBuilderList() { + return getLogoRecognitionAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder> + getLogoRecognitionAnnotationsFieldBuilder() { + if (logoRecognitionAnnotationsBuilder_ == null) { + logoRecognitionAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder>( + logoRecognitionAnnotations_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + logoRecognitionAnnotations_ = null; + } + return logoRecognitionAnnotationsBuilder_; + } + private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java index f418f14e1..7f1fc9d1e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java @@ -792,6 +792,71 @@ com.google.cloud.videointelligence.v1.TextAnnotationOrBuilder getTextAnnotations com.google.cloud.videointelligence.v1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index); + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + java.util.List + getLogoRecognitionAnnotationsList(); + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation getLogoRecognitionAnnotations( + int index); + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + int getLogoRecognitionAnnotationsCount(); + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + java.util.List + getLogoRecognitionAnnotationsOrBuilderList(); + /** + * + * + *
+   * Annotations for list of logos detected, tracked and recognized in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19; + * + */ + com.google.cloud.videointelligence.v1.LogoRecognitionAnnotationOrBuilder + getLogoRecognitionAnnotationsOrBuilder(int index); + /** * * diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java index fd8516626..c19f00d93 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java @@ -103,6 +103,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_videointelligence_v1_FaceAnnotation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_videointelligence_v1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1_TimestampedObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1_Track_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1_Track_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1_DetectedAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1_DetectedLandmark_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_videointelligence_v1_VideoAnnotationResults_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -167,6 +183,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -255,121 +275,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Annotation\022\021\n\tthumbnail\030\001 \001(\014\022@\n\010segment" + "s\030\002 \003(\0132..google.cloud.videointelligence" + ".v1.FaceSegment\022<\n\006frames\030\003 \003(\0132,.google" - + ".cloud.videointelligence.v1.FaceFrame\"\275\010" - + "\n\026VideoAnnotationResults\022\021\n\tinput_uri\030\001 " - + "\001(\t\022@\n\007segment\030\n \001(\0132/.google.cloud.vide" - + "ointelligence.v1.VideoSegment\022U\n\031segment" - + "_label_annotations\030\002 \003(\01322.google.cloud." - + "videointelligence.v1.LabelAnnotation\022^\n\"" - + "segment_presence_label_annotations\030\027 \003(\013" - + "22.google.cloud.videointelligence.v1.Lab" - + "elAnnotation\022R\n\026shot_label_annotations\030\003" - + " \003(\01322.google.cloud.videointelligence.v1" - + ".LabelAnnotation\022[\n\037shot_presence_label_" - + "annotations\030\030 \003(\01322.google.cloud.videoin" - + "telligence.v1.LabelAnnotation\022S\n\027frame_l" - + "abel_annotations\030\004 \003(\01322.google.cloud.vi" - + "deointelligence.v1.LabelAnnotation\022K\n\020fa" - + "ce_annotations\030\005 \003(\01321.google.cloud.vide" - + "ointelligence.v1.FaceAnnotation\022I\n\020shot_" - + "annotations\030\006 \003(\0132/.google.cloud.videoin" - + "telligence.v1.VideoSegment\022Y\n\023explicit_a" - + "nnotation\030\007 \001(\0132<.google.cloud.videointe" - + "lligence.v1.ExplicitContentAnnotation\022U\n" - + "\025speech_transcriptions\030\013 \003(\01326.google.cl" - + "oud.videointelligence.v1.SpeechTranscrip" - + "tion\022K\n\020text_annotations\030\014 \003(\01321.google." - + "cloud.videointelligence.v1.TextAnnotatio" - + "n\022W\n\022object_annotations\030\016 \003(\0132;.google.c" - + "loud.videointelligence.v1.ObjectTracking" - + "Annotation\022!\n\005error\030\t \001(\0132\022.google.rpc.S" - + "tatus\"n\n\025AnnotateVideoResponse\022U\n\022annota" - + "tion_results\030\001 \003(\01329.google.cloud.videoi" - + "ntelligence.v1.VideoAnnotationResults\"\246\002" - + "\n\027VideoAnnotationProgress\022\021\n\tinput_uri\030\001" - + " \001(\t\022\030\n\020progress_percent\030\002 \001(\005\022.\n\nstart_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/" - + "\n\013update_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022;\n\007feature\030\005 \001(\0162*.google.cloud." - + "videointelligence.v1.Feature\022@\n\007segment\030" - + "\006 \001(\0132/.google.cloud.videointelligence.v" - + "1.VideoSegment\"p\n\025AnnotateVideoProgress\022" - + "W\n\023annotation_progress\030\001 \003(\0132:.google.cl" - + "oud.videointelligence.v1.VideoAnnotation" - + "Progress\"\201\003\n\031SpeechTranscriptionConfig\022\032" - + "\n\rlanguage_code\030\001 \001(\tB\003\340A\002\022\035\n\020max_altern" - + "atives\030\002 \001(\005B\003\340A\001\022\035\n\020filter_profanity\030\003 " - + "\001(\010B\003\340A\001\022N\n\017speech_contexts\030\004 \003(\01320.goog" - + "le.cloud.videointelligence.v1.SpeechCont" - + "extB\003\340A\001\022)\n\034enable_automatic_punctuation" - + "\030\005 \001(\010B\003\340A\001\022\031\n\014audio_tracks\030\006 \003(\005B\003\340A\001\022\'" - + "\n\032enable_speaker_diarization\030\007 \001(\010B\003\340A\001\022" - + "&\n\031diarization_speaker_count\030\010 \001(\005B\003\340A\001\022" - + "#\n\026enable_word_confidence\030\t \001(\010B\003\340A\001\"%\n\r" - + "SpeechContext\022\024\n\007phrases\030\001 \003(\tB\003\340A\001\"\210\001\n\023" - + "SpeechTranscription\022U\n\014alternatives\030\001 \003(" - + "\0132?.google.cloud.videointelligence.v1.Sp" - + "eechRecognitionAlternative\022\032\n\rlanguage_c" - + "ode\030\002 \001(\tB\003\340A\003\"\214\001\n\034SpeechRecognitionAlte" - + "rnative\022\022\n\ntranscript\030\001 \001(\t\022\027\n\nconfidenc" - + "e\030\002 \001(\002B\003\340A\003\022?\n\005words\030\003 \003(\0132+.google.clo" - + "ud.videointelligence.v1.WordInfoB\003\340A\003\"\247\001" - + "\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.google." - + "protobuf.Duration\022+\n\010end_time\030\002 \001(\0132\031.go" - + "ogle.protobuf.Duration\022\014\n\004word\030\003 \001(\t\022\027\n\n" - + "confidence\030\004 \001(\002B\003\340A\003\022\030\n\013speaker_tag\030\005 \001" - + "(\005B\003\340A\003\"(\n\020NormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t" - + "\n\001y\030\002 \001(\002\"_\n\026NormalizedBoundingPoly\022E\n\010v" - + "ertices\030\001 \003(\01323.google.cloud.videointell" - + "igence.v1.NormalizedVertex\"\241\001\n\013TextSegme" - + "nt\022@\n\007segment\030\001 \001(\0132/.google.cloud.video" - + "intelligence.v1.VideoSegment\022\022\n\nconfiden" - + "ce\030\002 \001(\002\022<\n\006frames\030\003 \003(\0132,.google.cloud." - + "videointelligence.v1.TextFrame\"\224\001\n\tTextF" - + "rame\022W\n\024rotated_bounding_box\030\001 \001(\01329.goo" - + "gle.cloud.videointelligence.v1.Normalize" - + "dBoundingPoly\022.\n\013time_offset\030\002 \001(\0132\031.goo" - + "gle.protobuf.Duration\"`\n\016TextAnnotation\022" - + "\014\n\004text\030\001 \001(\t\022@\n\010segments\030\002 \003(\0132..google" - + ".cloud.videointelligence.v1.TextSegment\"" - + "\240\001\n\023ObjectTrackingFrame\022Y\n\027normalized_bo" - + "unding_box\030\001 \001(\01328.google.cloud.videoint" - + "elligence.v1.NormalizedBoundingBox\022.\n\013ti" - + "me_offset\030\002 \001(\0132\031.google.protobuf.Durati" - + "on\"\227\002\n\030ObjectTrackingAnnotation\022B\n\007segme" - + "nt\030\003 \001(\0132/.google.cloud.videointelligenc" - + "e.v1.VideoSegmentH\000\022\022\n\010track_id\030\005 \001(\003H\000\022" - + "9\n\006entity\030\001 \001(\0132).google.cloud.videointe" - + "lligence.v1.Entity\022\022\n\nconfidence\030\004 \001(\002\022F" - + "\n\006frames\030\002 \003(\01326.google.cloud.videointel" - + "ligence.v1.ObjectTrackingFrameB\014\n\ntrack_" - + "info*\311\001\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020" - + "\000\022\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_CHANGE_DE" - + "TECTION\020\002\022\036\n\032EXPLICIT_CONTENT_DETECTION\020" - + "\003\022\022\n\016FACE_DETECTION\020\004\022\030\n\024SPEECH_TRANSCRI" - + "PTION\020\006\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJECT_TR" - + "ACKING\020\t*r\n\022LabelDetectionMode\022$\n LABEL_" - + "DETECTION_MODE_UNSPECIFIED\020\000\022\r\n\tSHOT_MOD" - + "E\020\001\022\016\n\nFRAME_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MO" - + "DE\020\003*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECI" - + "FIED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022" - + "\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY" - + "\020\0052\300\002\n\030VideoIntelligenceService\022\315\001\n\rAnno" - + "tateVideo\0227.google.cloud.videointelligen" - + "ce.v1.AnnotateVideoRequest\032\035.google.long" - + "running.Operation\"d\202\323\344\223\002\030\"\023/v1/videos:an" - + "notate:\001*\332A\022input_uri,features\312A.\n\025Annot" - + "ateVideoResponse\022\025AnnotateVideoProgress\032" - + "T\312A videointelligence.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\213\002\n%com.google.cloud.videointellig" - + "ence.v1B\035VideoIntelligenceServiceProtoP\001" - + "ZRgoogle.golang.org/genproto/googleapis/" - + "cloud/videointelligence/v1;videointellig" - + "ence\252\002!Google.Cloud.VideoIntelligence.V1" - + "\312\002!Google\\Cloud\\VideoIntelligence\\V1\352\002$G" - + "oogle::Cloud::VideoIntelligence::V1b\006pro" - + "to3" + + ".cloud.videointelligence.v1.FaceFrame\"\272\002" + + "\n\021TimestampedObject\022Y\n\027normalized_boundi" + + "ng_box\030\001 \001(\01328.google.cloud.videointelli" + + "gence.v1.NormalizedBoundingBox\022.\n\013time_o" + + "ffset\030\002 \001(\0132\031.google.protobuf.Duration\022M" + + "\n\nattributes\030\003 \003(\01324.google.cloud.videoi" + + "ntelligence.v1.DetectedAttributeB\003\340A\001\022K\n" + + "\tlandmarks\030\004 \003(\01323.google.cloud.videoint" + + "elligence.v1.DetectedLandmarkB\003\340A\001\"\204\002\n\005T" + + "rack\022@\n\007segment\030\001 \001(\0132/.google.cloud.vid" + + "eointelligence.v1.VideoSegment\022Q\n\023timest" + + "amped_objects\030\002 \003(\01324.google.cloud.video" + + "intelligence.v1.TimestampedObject\022M\n\natt" + + "ributes\030\003 \003(\01324.google.cloud.videointell" + + "igence.v1.DetectedAttributeB\003\340A\001\022\027\n\nconf" + + "idence\030\004 \001(\002B\003\340A\001\"D\n\021DetectedAttribute\022\014" + + "\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\r\n\005valu" + + "e\030\003 \001(\t\"x\n\020DetectedLandmark\022\014\n\004name\030\001 \001(" + + "\t\022B\n\005point\030\002 \001(\01323.google.cloud.videoint" + + "elligence.v1.NormalizedVertex\022\022\n\nconfide" + + "nce\030\003 \001(\002\"\241\t\n\026VideoAnnotationResults\022\021\n\t" + + "input_uri\030\001 \001(\t\022@\n\007segment\030\n \001(\0132/.googl" + + "e.cloud.videointelligence.v1.VideoSegmen" + + "t\022U\n\031segment_label_annotations\030\002 \003(\01322.g" + + "oogle.cloud.videointelligence.v1.LabelAn" + + "notation\022^\n\"segment_presence_label_annot" + + "ations\030\027 \003(\01322.google.cloud.videointelli" + + "gence.v1.LabelAnnotation\022R\n\026shot_label_a" + + "nnotations\030\003 \003(\01322.google.cloud.videoint" + + "elligence.v1.LabelAnnotation\022[\n\037shot_pre" + + "sence_label_annotations\030\030 \003(\01322.google.c" + + "loud.videointelligence.v1.LabelAnnotatio" + + "n\022S\n\027frame_label_annotations\030\004 \003(\01322.goo" + + "gle.cloud.videointelligence.v1.LabelAnno" + + "tation\022K\n\020face_annotations\030\005 \003(\01321.googl" + + "e.cloud.videointelligence.v1.FaceAnnotat" + + "ion\022I\n\020shot_annotations\030\006 \003(\0132/.google.c" + + "loud.videointelligence.v1.VideoSegment\022Y" + + "\n\023explicit_annotation\030\007 \001(\0132<.google.clo" + + "ud.videointelligence.v1.ExplicitContentA" + + "nnotation\022U\n\025speech_transcriptions\030\013 \003(\013" + + "26.google.cloud.videointelligence.v1.Spe" + + "echTranscription\022K\n\020text_annotations\030\014 \003" + + "(\01321.google.cloud.videointelligence.v1.T" + + "extAnnotation\022W\n\022object_annotations\030\016 \003(" + + "\0132;.google.cloud.videointelligence.v1.Ob" + + "jectTrackingAnnotation\022b\n\034logo_recogniti" + + "on_annotations\030\023 \003(\0132<.google.cloud.vide" + + "ointelligence.v1.LogoRecognitionAnnotati" + + "on\022!\n\005error\030\t \001(\0132\022.google.rpc.Status\"n\n" + + "\025AnnotateVideoResponse\022U\n\022annotation_res" + + "ults\030\001 \003(\01329.google.cloud.videointellige" + + "nce.v1.VideoAnnotationResults\"\246\002\n\027VideoA" + + "nnotationProgress\022\021\n\tinput_uri\030\001 \001(\t\022\030\n\020" + + "progress_percent\030\002 \001(\005\022.\n\nstart_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" + + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + + ";\n\007feature\030\005 \001(\0162*.google.cloud.videoint" + + "elligence.v1.Feature\022@\n\007segment\030\006 \001(\0132/." + + "google.cloud.videointelligence.v1.VideoS" + + "egment\"p\n\025AnnotateVideoProgress\022W\n\023annot" + + "ation_progress\030\001 \003(\0132:.google.cloud.vide" + + "ointelligence.v1.VideoAnnotationProgress" + + "\"\201\003\n\031SpeechTranscriptionConfig\022\032\n\rlangua" + + "ge_code\030\001 \001(\tB\003\340A\002\022\035\n\020max_alternatives\030\002" + + " \001(\005B\003\340A\001\022\035\n\020filter_profanity\030\003 \001(\010B\003\340A\001" + + "\022N\n\017speech_contexts\030\004 \003(\01320.google.cloud" + + ".videointelligence.v1.SpeechContextB\003\340A\001" + + "\022)\n\034enable_automatic_punctuation\030\005 \001(\010B\003" + + "\340A\001\022\031\n\014audio_tracks\030\006 \003(\005B\003\340A\001\022\'\n\032enable" + + "_speaker_diarization\030\007 \001(\010B\003\340A\001\022&\n\031diari" + + "zation_speaker_count\030\010 \001(\005B\003\340A\001\022#\n\026enabl" + + "e_word_confidence\030\t \001(\010B\003\340A\001\"%\n\rSpeechCo" + + "ntext\022\024\n\007phrases\030\001 \003(\tB\003\340A\001\"\210\001\n\023SpeechTr" + + "anscription\022U\n\014alternatives\030\001 \003(\0132?.goog" + + "le.cloud.videointelligence.v1.SpeechReco" + + "gnitionAlternative\022\032\n\rlanguage_code\030\002 \001(" + + "\tB\003\340A\003\"\214\001\n\034SpeechRecognitionAlternative\022" + + "\022\n\ntranscript\030\001 \001(\t\022\027\n\nconfidence\030\002 \001(\002B" + + "\003\340A\003\022?\n\005words\030\003 \003(\0132+.google.cloud.video" + + "intelligence.v1.WordInfoB\003\340A\003\"\247\001\n\010WordIn" + + "fo\022-\n\nstart_time\030\001 \001(\0132\031.google.protobuf" + + ".Duration\022+\n\010end_time\030\002 \001(\0132\031.google.pro" + + "tobuf.Duration\022\014\n\004word\030\003 \001(\t\022\027\n\nconfiden" + + "ce\030\004 \001(\002B\003\340A\003\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\003\"" + + "(\n\020NormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(" + + "\002\"_\n\026NormalizedBoundingPoly\022E\n\010vertices\030" + + "\001 \003(\01323.google.cloud.videointelligence.v" + + "1.NormalizedVertex\"\241\001\n\013TextSegment\022@\n\007se" + + "gment\030\001 \001(\0132/.google.cloud.videointellig" + + "ence.v1.VideoSegment\022\022\n\nconfidence\030\002 \001(\002" + + "\022<\n\006frames\030\003 \003(\0132,.google.cloud.videoint" + + "elligence.v1.TextFrame\"\224\001\n\tTextFrame\022W\n\024" + + "rotated_bounding_box\030\001 \001(\01329.google.clou" + + "d.videointelligence.v1.NormalizedBoundin" + + "gPoly\022.\n\013time_offset\030\002 \001(\0132\031.google.prot" + + "obuf.Duration\"`\n\016TextAnnotation\022\014\n\004text\030" + + "\001 \001(\t\022@\n\010segments\030\002 \003(\0132..google.cloud.v" + + "ideointelligence.v1.TextSegment\"\240\001\n\023Obje" + + "ctTrackingFrame\022Y\n\027normalized_bounding_b" + + "ox\030\001 \001(\01328.google.cloud.videointelligenc" + + "e.v1.NormalizedBoundingBox\022.\n\013time_offse" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\227\002\n\030O" + + "bjectTrackingAnnotation\022B\n\007segment\030\003 \001(\013" + + "2/.google.cloud.videointelligence.v1.Vid" + + "eoSegmentH\000\022\022\n\010track_id\030\005 \001(\003H\000\0229\n\006entit" + + "y\030\001 \001(\0132).google.cloud.videointelligence" + + ".v1.Entity\022\022\n\nconfidence\030\004 \001(\002\022F\n\006frames" + + "\030\002 \003(\01326.google.cloud.videointelligence." + + "v1.ObjectTrackingFrameB\014\n\ntrack_info\"\323\001\n" + + "\031LogoRecognitionAnnotation\0229\n\006entity\030\001 \001" + + "(\0132).google.cloud.videointelligence.v1.E" + + "ntity\0228\n\006tracks\030\002 \003(\0132(.google.cloud.vid" + + "eointelligence.v1.Track\022A\n\010segments\030\003 \003(" + + "\0132/.google.cloud.videointelligence.v1.Vi" + + "deoSegment*\337\001\n\007Feature\022\027\n\023FEATURE_UNSPEC" + + "IFIED\020\000\022\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_CHA" + + "NGE_DETECTION\020\002\022\036\n\032EXPLICIT_CONTENT_DETE" + + "CTION\020\003\022\022\n\016FACE_DETECTION\020\004\022\030\n\024SPEECH_TR" + + "ANSCRIPTION\020\006\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJ" + + "ECT_TRACKING\020\t\022\024\n\020LOGO_RECOGNITION\020\014*r\n\022" + + "LabelDetectionMode\022$\n LABEL_DETECTION_MO" + + "DE_UNSPECIFIED\020\000\022\r\n\tSHOT_MODE\020\001\022\016\n\nFRAME" + + "_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MODE\020\003*t\n\nLike" + + "lihood\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\rVE" + + "RY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020" + + "\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\300\002\n\030Video" + + "IntelligenceService\022\315\001\n\rAnnotateVideo\0227." + + "google.cloud.videointelligence.v1.Annota" + + "teVideoRequest\032\035.google.longrunning.Oper" + + "ation\"d\202\323\344\223\002\030\"\023/v1/videos:annotate:\001*\332A\022" + + "input_uri,features\312A.\n\025AnnotateVideoResp" + + "onse\022\025AnnotateVideoProgress\032T\312A videoint" + + "elligence.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\213\002\n%co" + + "m.google.cloud.videointelligence.v1B\035Vid" + + "eoIntelligenceServiceProtoP\001ZRgoogle.gol" + + "ang.org/genproto/googleapis/cloud/videoi" + + "ntelligence/v1;videointelligence\252\002!Googl" + + "e.Cloud.VideoIntelligence.V1\312\002!Google\\Cl" + + "oud\\VideoIntelligence\\V1\352\002$Google::Cloud" + + "::VideoIntelligence::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -546,8 +593,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Thumbnail", "Segments", "Frames", }); - internal_static_google_cloud_videointelligence_v1_VideoAnnotationResults_descriptor = + internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_videointelligence_v1_TimestampedObject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1_TimestampedObject_descriptor, + new java.lang.String[] { + "NormalizedBoundingBox", "TimeOffset", "Attributes", "Landmarks", + }); + internal_static_google_cloud_videointelligence_v1_Track_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_videointelligence_v1_Track_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1_Track_descriptor, + new java.lang.String[] { + "Segment", "TimestampedObjects", "Attributes", "Confidence", + }); + internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_videointelligence_v1_DetectedAttribute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1_DetectedAttribute_descriptor, + new java.lang.String[] { + "Name", "Confidence", "Value", + }); + internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_videointelligence_v1_DetectedLandmark_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1_DetectedLandmark_descriptor, + new java.lang.String[] { + "Name", "Point", "Confidence", + }); + internal_static_google_cloud_videointelligence_v1_VideoAnnotationResults_descriptor = + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_videointelligence_v1_VideoAnnotationResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_VideoAnnotationResults_descriptor, @@ -565,10 +644,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpeechTranscriptions", "TextAnnotations", "ObjectAnnotations", + "LogoRecognitionAnnotations", "Error", }); internal_static_google_cloud_videointelligence_v1_AnnotateVideoResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_videointelligence_v1_AnnotateVideoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_AnnotateVideoResponse_descriptor, @@ -576,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnnotationResults", }); internal_static_google_cloud_videointelligence_v1_VideoAnnotationProgress_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_videointelligence_v1_VideoAnnotationProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_VideoAnnotationProgress_descriptor, @@ -584,7 +664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputUri", "ProgressPercent", "StartTime", "UpdateTime", "Feature", "Segment", }); internal_static_google_cloud_videointelligence_v1_AnnotateVideoProgress_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_videointelligence_v1_AnnotateVideoProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_AnnotateVideoProgress_descriptor, @@ -592,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnnotationProgress", }); internal_static_google_cloud_videointelligence_v1_SpeechTranscriptionConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_videointelligence_v1_SpeechTranscriptionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_SpeechTranscriptionConfig_descriptor, @@ -608,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableWordConfidence", }); internal_static_google_cloud_videointelligence_v1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_videointelligence_v1_SpeechContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_SpeechContext_descriptor, @@ -616,7 +696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Phrases", }); internal_static_google_cloud_videointelligence_v1_SpeechTranscription_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_videointelligence_v1_SpeechTranscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_SpeechTranscription_descriptor, @@ -624,7 +704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alternatives", "LanguageCode", }); internal_static_google_cloud_videointelligence_v1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_videointelligence_v1_SpeechRecognitionAlternative_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_SpeechRecognitionAlternative_descriptor, @@ -632,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", "Confidence", "Words", }); internal_static_google_cloud_videointelligence_v1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_videointelligence_v1_WordInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_WordInfo_descriptor, @@ -640,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); internal_static_google_cloud_videointelligence_v1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_videointelligence_v1_NormalizedVertex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_NormalizedVertex_descriptor, @@ -648,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "X", "Y", }); internal_static_google_cloud_videointelligence_v1_NormalizedBoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_videointelligence_v1_NormalizedBoundingPoly_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_NormalizedBoundingPoly_descriptor, @@ -656,7 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vertices", }); internal_static_google_cloud_videointelligence_v1_TextSegment_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_videointelligence_v1_TextSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_TextSegment_descriptor, @@ -664,7 +744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Segment", "Confidence", "Frames", }); internal_static_google_cloud_videointelligence_v1_TextFrame_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_videointelligence_v1_TextFrame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_TextFrame_descriptor, @@ -672,7 +752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RotatedBoundingBox", "TimeOffset", }); internal_static_google_cloud_videointelligence_v1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_videointelligence_v1_TextAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_TextAnnotation_descriptor, @@ -680,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "Segments", }); internal_static_google_cloud_videointelligence_v1_ObjectTrackingFrame_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_videointelligence_v1_ObjectTrackingFrame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_ObjectTrackingFrame_descriptor, @@ -688,13 +768,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NormalizedBoundingBox", "TimeOffset", }); internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor, new java.lang.String[] { "Segment", "TrackId", "Entity", "Confidence", "Frames", "TrackInfo", }); + internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1_LogoRecognitionAnnotation_descriptor, + new java.lang.String[] { + "Entity", "Tracks", "Segments", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto b/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto index ee7d618fb..9dcfda55e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto +++ b/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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. -// syntax = "proto3"; @@ -148,6 +147,9 @@ enum Feature { // Object detection and tracking. OBJECT_TRACKING = 9; + + // Logo detection, tracking, and recognition. + LOGO_RECOGNITION = 12; } // Label detection mode. @@ -397,6 +399,67 @@ message FaceAnnotation { repeated FaceFrame frames = 3; } +// For tracking related features. +// An object at time_offset with attributes, and located with +// normalized_bounding_box. +message TimestampedObject { + // Normalized Bounding box in a frame, where the object is located. + NormalizedBoundingBox normalized_bounding_box = 1; + + // Time-offset, relative to the beginning of the video, + // corresponding to the video frame for this object. + google.protobuf.Duration time_offset = 2; + + // Optional. The attributes of the object in the bounding box. + repeated DetectedAttribute attributes = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The detected landmarks. + repeated DetectedLandmark landmarks = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A track of an object instance. +message Track { + // Video segment of a track. + VideoSegment segment = 1; + + // The object with timestamp and attributes per frame in the track. + repeated TimestampedObject timestamped_objects = 2; + + // Optional. Attributes in the track level. + repeated DetectedAttribute attributes = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The confidence score of the tracked object. + float confidence = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A generic detected attribute represented by name in string format. +message DetectedAttribute { + // The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc. + // A full list of supported type names will be provided in the document. + string name = 1; + + // Detected attribute confidence. Range [0, 1]. + float confidence = 2; + + // Text value of the detection result. For example, the value for "HairColor" + // can be "black", "blonde", etc. + string value = 3; +} + +// A generic detected landmark represented by name in string format and a 2D +// location. +message DetectedLandmark { + // The name of this landmark, i.e. left_hand, right_shoulder. + string name = 1; + + // The 2D point of the detected landmark using the normalized image + // coordindate system. The normalized coordinates have the range from 0 to 1. + NormalizedVertex point = 2; + + // The confidence score of the detected landmark. Range [0, 1]. + float confidence = 3; +} + // Annotation results for a single video. message VideoAnnotationResults { // Video file location in @@ -453,6 +516,9 @@ message VideoAnnotationResults { // Annotations for list of objects detected and tracked in video. repeated ObjectTrackingAnnotation object_annotations = 14; + // Annotations for list of logos detected, tracked and recognized in video. + repeated LogoRecognitionAnnotation logo_recognition_annotations = 19; + // If set, indicates an error. Note that for a single `AnnotateVideoRequest` // some videos may succeed and some may fail. google.rpc.Status error = 9; @@ -743,3 +809,18 @@ message ObjectTrackingAnnotation { // Streaming mode: it can only be one ObjectTrackingFrame message in frames. repeated ObjectTrackingFrame frames = 2; } + +// Annotation corresponding to one detected, tracked and recognized logo class. +message LogoRecognitionAnnotation { + // Entity category information to specify the logo class that all the logo + // tracks within this LogoRecognitionAnnotation are recognized as. + Entity entity = 1; + + // All logo tracks where the recognized logo appears. Each track corresponds + // to one logo instance appearing in consecutive frames. + repeated Track tracks = 2; + + // All video segments where the recognized logo appears. There might be + // multiple instances of the same logo class appearing in one VideoSegment. + repeated VideoSegment segments = 3; +} diff --git a/synth.metadata b/synth.metadata index 92f30c904..d05ae25ab 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,20 +1,13 @@ { - "updateTime": "2020-02-28T20:25:26.153790Z", + "updateTime": "2020-03-10T10:03:09.677112Z", "sources": [ - { - "generator": { - "name": "artman", - "version": "0.46.0", - "dockerImage": "googleapis/artman@sha256:6248a21fba8f0d618c3b032669cec2618e684b66922bb70391fe08c41b05f6ee" - } - }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e9e90a787703ec5d388902e2cb796aaed3a385b4", - "internalRef": "297671458", - "log": "e9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n" + "sha": "4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6", + "internalRef": "299971671", + "log": "4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6\nExpose logo recognition API proto for GA.\n\nPiperOrigin-RevId: 299971671\n\n" } }, { @@ -29,51 +22,46 @@ { "client": { "source": "googleapis", - "apiName": "video-intelligence", + "apiName": "videointelligence", "apiVersion": "v1", "language": "java", - "generator": "gapic", - "config": "google/cloud/videointelligence/artman_videointelligence_v1.yaml" + "generator": "bazel" } }, { "client": { "source": "googleapis", - "apiName": "video-intelligence", + "apiName": "videointelligence", "apiVersion": "v1beta2", "language": "java", - "generator": "gapic", - "config": "google/cloud/videointelligence/artman_videointelligence_v1beta2.yaml" + "generator": "bazel" } }, { "client": { "source": "googleapis", - "apiName": "video-intelligence", + "apiName": "videointelligence", "apiVersion": "v1p1beta1", "language": "java", - "generator": "gapic", - "config": "google/cloud/videointelligence/artman_videointelligence_v1p1beta1.yaml" + "generator": "bazel" } }, { "client": { "source": "googleapis", - "apiName": "video-intelligence", + "apiName": "videointelligence", "apiVersion": "v1p2beta1", "language": "java", - "generator": "gapic", - "config": "google/cloud/videointelligence/artman_videointelligence_v1p2beta1.yaml" + "generator": "bazel" } }, { "client": { "source": "googleapis", - "apiName": "video-intelligence", + "apiName": "videointelligence", "apiVersion": "v1p3beta1", "language": "java", - "generator": "gapic", - "config": "google/cloud/videointelligence/artman_videointelligence_v1p3beta1.yaml" + "generator": "bazel" } } ]