com.google.cloud.videointelligence.v1p3beta1.VideoContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-video-intelligence-v1p3beta1 Show documentation
Show all versions of proto-google-cloud-video-intelligence-v1p3beta1 Show documentation
PROTO library for proto-google-cloud-video-intelligence-v1p3beta1
/*
* 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/v1p3beta1/video_intelligence.proto
package com.google.cloud.videointelligence.v1p3beta1;
/**
*
*
*
* Video context and/or feature-specific parameters.
*
*
* Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoContext}
*/
public final class VideoContext extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.VideoContext)
VideoContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use VideoContext.newBuilder() to construct.
private VideoContext(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VideoContext() {
segments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VideoContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private VideoContext(
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:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
segments_ =
new java.util.ArrayList<
com.google.cloud.videointelligence.v1p3beta1.VideoSegment>();
mutable_bitField0_ |= 0x00000001;
}
segments_.add(
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(),
extensionRegistry));
break;
}
case 18:
{
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder subBuilder =
null;
if (labelDetectionConfig_ != null) {
subBuilder = labelDetectionConfig_.toBuilder();
}
labelDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(labelDetectionConfig_);
labelDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 26:
{
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder
subBuilder = null;
if (shotChangeDetectionConfig_ != null) {
subBuilder = shotChangeDetectionConfig_.toBuilder();
}
shotChangeDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shotChangeDetectionConfig_);
shotChangeDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 34:
{
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder
subBuilder = null;
if (explicitContentDetectionConfig_ != null) {
subBuilder = explicitContentDetectionConfig_.toBuilder();
}
explicitContentDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(explicitContentDetectionConfig_);
explicitContentDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 42:
{
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder subBuilder =
null;
if (faceDetectionConfig_ != null) {
subBuilder = faceDetectionConfig_.toBuilder();
}
faceDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(faceDetectionConfig_);
faceDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 50:
{
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder
subBuilder = null;
if (speechTranscriptionConfig_ != null) {
subBuilder = speechTranscriptionConfig_.toBuilder();
}
speechTranscriptionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(speechTranscriptionConfig_);
speechTranscriptionConfig_ = subBuilder.buildPartial();
}
break;
}
case 66:
{
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder subBuilder =
null;
if (textDetectionConfig_ != null) {
subBuilder = textDetectionConfig_.toBuilder();
}
textDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(textDetectionConfig_);
textDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 90:
{
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder
subBuilder = null;
if (personDetectionConfig_ != null) {
subBuilder = personDetectionConfig_.toBuilder();
}
personDetectionConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(personDetectionConfig_);
personDetectionConfig_ = subBuilder.buildPartial();
}
break;
}
case 106:
{
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder subBuilder =
null;
if (objectTrackingConfig_ != null) {
subBuilder = objectTrackingConfig_.toBuilder();
}
objectTrackingConfig_ =
input.readMessage(
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(objectTrackingConfig_);
objectTrackingConfig_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
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.v1p3beta1.VideoIntelligenceServiceProto
.internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto
.internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.videointelligence.v1p3beta1.VideoContext.class,
com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder.class);
}
public static final int SEGMENTS_FIELD_NUMBER = 1;
private java.util.List segments_;
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
@java.lang.Override
public java.util.List
getSegmentsList() {
return segments_;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
getSegmentsOrBuilderList() {
return segments_;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
@java.lang.Override
public int getSegmentsCount() {
return segments_.size();
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegments(int index) {
return segments_.get(index);
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
int index) {
return segments_.get(index);
}
public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 2;
private com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig labelDetectionConfig_;
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*
* @return Whether the labelDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasLabelDetectionConfig() {
return labelDetectionConfig_ != null;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*
* @return The labelDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
getLabelDetectionConfig() {
return labelDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance()
: labelDetectionConfig_;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder
getLabelDetectionConfigOrBuilder() {
return getLabelDetectionConfig();
}
public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
shotChangeDetectionConfig_;
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*
* @return Whether the shotChangeDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasShotChangeDetectionConfig() {
return shotChangeDetectionConfig_ != null;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*
* @return The shotChangeDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
getShotChangeDetectionConfig() {
return shotChangeDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
.getDefaultInstance()
: shotChangeDetectionConfig_;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder
getShotChangeDetectionConfigOrBuilder() {
return getShotChangeDetectionConfig();
}
public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4;
private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
explicitContentDetectionConfig_;
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*
* @return Whether the explicitContentDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasExplicitContentDetectionConfig() {
return explicitContentDetectionConfig_ != null;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*
* @return The explicitContentDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
getExplicitContentDetectionConfig() {
return explicitContentDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
.getDefaultInstance()
: explicitContentDetectionConfig_;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder
getExplicitContentDetectionConfigOrBuilder() {
return getExplicitContentDetectionConfig();
}
public static final int FACE_DETECTION_CONFIG_FIELD_NUMBER = 5;
private com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig faceDetectionConfig_;
/**
*
*
*
* Config for FACE_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*
* @return Whether the faceDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasFaceDetectionConfig() {
return faceDetectionConfig_ != null;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*
* @return The faceDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig getFaceDetectionConfig() {
return faceDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.getDefaultInstance()
: faceDetectionConfig_;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfigOrBuilder
getFaceDetectionConfigOrBuilder() {
return getFaceDetectionConfig();
}
public static final int SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER = 6;
private com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
speechTranscriptionConfig_;
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*
* @return Whether the speechTranscriptionConfig field is set.
*/
@java.lang.Override
public boolean hasSpeechTranscriptionConfig() {
return speechTranscriptionConfig_ != null;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*
* @return The speechTranscriptionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
getSpeechTranscriptionConfig() {
return speechTranscriptionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
.getDefaultInstance()
: speechTranscriptionConfig_;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfigOrBuilder
getSpeechTranscriptionConfigOrBuilder() {
return getSpeechTranscriptionConfig();
}
public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER = 8;
private com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig textDetectionConfig_;
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*
* @return Whether the textDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasTextDetectionConfig() {
return textDetectionConfig_ != null;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*
* @return The textDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig() {
return textDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance()
: textDetectionConfig_;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder
getTextDetectionConfigOrBuilder() {
return getTextDetectionConfig();
}
public static final int PERSON_DETECTION_CONFIG_FIELD_NUMBER = 11;
private com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig personDetectionConfig_;
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*
* @return Whether the personDetectionConfig field is set.
*/
@java.lang.Override
public boolean hasPersonDetectionConfig() {
return personDetectionConfig_ != null;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*
* @return The personDetectionConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig
getPersonDetectionConfig() {
return personDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.getDefaultInstance()
: personDetectionConfig_;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfigOrBuilder
getPersonDetectionConfigOrBuilder() {
return getPersonDetectionConfig();
}
public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 13;
private com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig objectTrackingConfig_;
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*
* @return Whether the objectTrackingConfig field is set.
*/
@java.lang.Override
public boolean hasObjectTrackingConfig() {
return objectTrackingConfig_ != null;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*
* @return The objectTrackingConfig.
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig
getObjectTrackingConfig() {
return objectTrackingConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.getDefaultInstance()
: objectTrackingConfig_;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfigOrBuilder
getObjectTrackingConfigOrBuilder() {
return getObjectTrackingConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < segments_.size(); i++) {
output.writeMessage(1, segments_.get(i));
}
if (labelDetectionConfig_ != null) {
output.writeMessage(2, getLabelDetectionConfig());
}
if (shotChangeDetectionConfig_ != null) {
output.writeMessage(3, getShotChangeDetectionConfig());
}
if (explicitContentDetectionConfig_ != null) {
output.writeMessage(4, getExplicitContentDetectionConfig());
}
if (faceDetectionConfig_ != null) {
output.writeMessage(5, getFaceDetectionConfig());
}
if (speechTranscriptionConfig_ != null) {
output.writeMessage(6, getSpeechTranscriptionConfig());
}
if (textDetectionConfig_ != null) {
output.writeMessage(8, getTextDetectionConfig());
}
if (personDetectionConfig_ != null) {
output.writeMessage(11, getPersonDetectionConfig());
}
if (objectTrackingConfig_ != null) {
output.writeMessage(13, getObjectTrackingConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < segments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, segments_.get(i));
}
if (labelDetectionConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLabelDetectionConfig());
}
if (shotChangeDetectionConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getShotChangeDetectionConfig());
}
if (explicitContentDetectionConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, getExplicitContentDetectionConfig());
}
if (faceDetectionConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFaceDetectionConfig());
}
if (speechTranscriptionConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, getSpeechTranscriptionConfig());
}
if (textDetectionConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTextDetectionConfig());
}
if (personDetectionConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPersonDetectionConfig());
}
if (objectTrackingConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(13, getObjectTrackingConfig());
}
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.v1p3beta1.VideoContext)) {
return super.equals(obj);
}
com.google.cloud.videointelligence.v1p3beta1.VideoContext other =
(com.google.cloud.videointelligence.v1p3beta1.VideoContext) obj;
if (!getSegmentsList().equals(other.getSegmentsList())) return false;
if (hasLabelDetectionConfig() != other.hasLabelDetectionConfig()) return false;
if (hasLabelDetectionConfig()) {
if (!getLabelDetectionConfig().equals(other.getLabelDetectionConfig())) return false;
}
if (hasShotChangeDetectionConfig() != other.hasShotChangeDetectionConfig()) return false;
if (hasShotChangeDetectionConfig()) {
if (!getShotChangeDetectionConfig().equals(other.getShotChangeDetectionConfig()))
return false;
}
if (hasExplicitContentDetectionConfig() != other.hasExplicitContentDetectionConfig())
return false;
if (hasExplicitContentDetectionConfig()) {
if (!getExplicitContentDetectionConfig().equals(other.getExplicitContentDetectionConfig()))
return false;
}
if (hasFaceDetectionConfig() != other.hasFaceDetectionConfig()) return false;
if (hasFaceDetectionConfig()) {
if (!getFaceDetectionConfig().equals(other.getFaceDetectionConfig())) return false;
}
if (hasSpeechTranscriptionConfig() != other.hasSpeechTranscriptionConfig()) return false;
if (hasSpeechTranscriptionConfig()) {
if (!getSpeechTranscriptionConfig().equals(other.getSpeechTranscriptionConfig()))
return false;
}
if (hasTextDetectionConfig() != other.hasTextDetectionConfig()) return false;
if (hasTextDetectionConfig()) {
if (!getTextDetectionConfig().equals(other.getTextDetectionConfig())) return false;
}
if (hasPersonDetectionConfig() != other.hasPersonDetectionConfig()) return false;
if (hasPersonDetectionConfig()) {
if (!getPersonDetectionConfig().equals(other.getPersonDetectionConfig())) return false;
}
if (hasObjectTrackingConfig() != other.hasObjectTrackingConfig()) return false;
if (hasObjectTrackingConfig()) {
if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) 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 (getSegmentsCount() > 0) {
hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
hash = (53 * hash) + getSegmentsList().hashCode();
}
if (hasLabelDetectionConfig()) {
hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLabelDetectionConfig().hashCode();
}
if (hasShotChangeDetectionConfig()) {
hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getShotChangeDetectionConfig().hashCode();
}
if (hasExplicitContentDetectionConfig()) {
hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode();
}
if (hasFaceDetectionConfig()) {
hash = (37 * hash) + FACE_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getFaceDetectionConfig().hashCode();
}
if (hasSpeechTranscriptionConfig()) {
hash = (37 * hash) + SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSpeechTranscriptionConfig().hashCode();
}
if (hasTextDetectionConfig()) {
hash = (37 * hash) + TEXT_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getTextDetectionConfig().hashCode();
}
if (hasPersonDetectionConfig()) {
hash = (37 * hash) + PERSON_DETECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getPersonDetectionConfig().hashCode();
}
if (hasObjectTrackingConfig()) {
hash = (37 * hash) + OBJECT_TRACKING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getObjectTrackingConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext 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.v1p3beta1.VideoContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext 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.v1p3beta1.VideoContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext 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.v1p3beta1.VideoContext parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext 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.v1p3beta1.VideoContext parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext 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.v1p3beta1.VideoContext 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;
}
/**
*
*
*
* Video context and/or feature-specific parameters.
*
*
* Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoContext}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.VideoContext)
com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto
.internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto
.internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.videointelligence.v1p3beta1.VideoContext.class,
com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder.class);
}
// Construct using com.google.cloud.videointelligence.v1p3beta1.VideoContext.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getSegmentsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (segmentsBuilder_ == null) {
segments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
segmentsBuilder_.clear();
}
if (labelDetectionConfigBuilder_ == null) {
labelDetectionConfig_ = null;
} else {
labelDetectionConfig_ = null;
labelDetectionConfigBuilder_ = null;
}
if (shotChangeDetectionConfigBuilder_ == null) {
shotChangeDetectionConfig_ = null;
} else {
shotChangeDetectionConfig_ = null;
shotChangeDetectionConfigBuilder_ = null;
}
if (explicitContentDetectionConfigBuilder_ == null) {
explicitContentDetectionConfig_ = null;
} else {
explicitContentDetectionConfig_ = null;
explicitContentDetectionConfigBuilder_ = null;
}
if (faceDetectionConfigBuilder_ == null) {
faceDetectionConfig_ = null;
} else {
faceDetectionConfig_ = null;
faceDetectionConfigBuilder_ = null;
}
if (speechTranscriptionConfigBuilder_ == null) {
speechTranscriptionConfig_ = null;
} else {
speechTranscriptionConfig_ = null;
speechTranscriptionConfigBuilder_ = null;
}
if (textDetectionConfigBuilder_ == null) {
textDetectionConfig_ = null;
} else {
textDetectionConfig_ = null;
textDetectionConfigBuilder_ = null;
}
if (personDetectionConfigBuilder_ == null) {
personDetectionConfig_ = null;
} else {
personDetectionConfig_ = null;
personDetectionConfigBuilder_ = null;
}
if (objectTrackingConfigBuilder_ == null) {
objectTrackingConfig_ = null;
} else {
objectTrackingConfig_ = null;
objectTrackingConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto
.internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor;
}
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.VideoContext getDefaultInstanceForType() {
return com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.VideoContext build() {
com.google.cloud.videointelligence.v1p3beta1.VideoContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.videointelligence.v1p3beta1.VideoContext buildPartial() {
com.google.cloud.videointelligence.v1p3beta1.VideoContext result =
new com.google.cloud.videointelligence.v1p3beta1.VideoContext(this);
int from_bitField0_ = bitField0_;
if (segmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
segments_ = java.util.Collections.unmodifiableList(segments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.segments_ = segments_;
} else {
result.segments_ = segmentsBuilder_.build();
}
if (labelDetectionConfigBuilder_ == null) {
result.labelDetectionConfig_ = labelDetectionConfig_;
} else {
result.labelDetectionConfig_ = labelDetectionConfigBuilder_.build();
}
if (shotChangeDetectionConfigBuilder_ == null) {
result.shotChangeDetectionConfig_ = shotChangeDetectionConfig_;
} else {
result.shotChangeDetectionConfig_ = shotChangeDetectionConfigBuilder_.build();
}
if (explicitContentDetectionConfigBuilder_ == null) {
result.explicitContentDetectionConfig_ = explicitContentDetectionConfig_;
} else {
result.explicitContentDetectionConfig_ = explicitContentDetectionConfigBuilder_.build();
}
if (faceDetectionConfigBuilder_ == null) {
result.faceDetectionConfig_ = faceDetectionConfig_;
} else {
result.faceDetectionConfig_ = faceDetectionConfigBuilder_.build();
}
if (speechTranscriptionConfigBuilder_ == null) {
result.speechTranscriptionConfig_ = speechTranscriptionConfig_;
} else {
result.speechTranscriptionConfig_ = speechTranscriptionConfigBuilder_.build();
}
if (textDetectionConfigBuilder_ == null) {
result.textDetectionConfig_ = textDetectionConfig_;
} else {
result.textDetectionConfig_ = textDetectionConfigBuilder_.build();
}
if (personDetectionConfigBuilder_ == null) {
result.personDetectionConfig_ = personDetectionConfig_;
} else {
result.personDetectionConfig_ = personDetectionConfigBuilder_.build();
}
if (objectTrackingConfigBuilder_ == null) {
result.objectTrackingConfig_ = objectTrackingConfig_;
} else {
result.objectTrackingConfig_ = objectTrackingConfigBuilder_.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.v1p3beta1.VideoContext) {
return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.VideoContext) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.VideoContext other) {
if (other == com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance())
return this;
if (segmentsBuilder_ == null) {
if (!other.segments_.isEmpty()) {
if (segments_.isEmpty()) {
segments_ = other.segments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSegmentsIsMutable();
segments_.addAll(other.segments_);
}
onChanged();
}
} else {
if (!other.segments_.isEmpty()) {
if (segmentsBuilder_.isEmpty()) {
segmentsBuilder_.dispose();
segmentsBuilder_ = null;
segments_ = other.segments_;
bitField0_ = (bitField0_ & ~0x00000001);
segmentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSegmentsFieldBuilder()
: null;
} else {
segmentsBuilder_.addAllMessages(other.segments_);
}
}
}
if (other.hasLabelDetectionConfig()) {
mergeLabelDetectionConfig(other.getLabelDetectionConfig());
}
if (other.hasShotChangeDetectionConfig()) {
mergeShotChangeDetectionConfig(other.getShotChangeDetectionConfig());
}
if (other.hasExplicitContentDetectionConfig()) {
mergeExplicitContentDetectionConfig(other.getExplicitContentDetectionConfig());
}
if (other.hasFaceDetectionConfig()) {
mergeFaceDetectionConfig(other.getFaceDetectionConfig());
}
if (other.hasSpeechTranscriptionConfig()) {
mergeSpeechTranscriptionConfig(other.getSpeechTranscriptionConfig());
}
if (other.hasTextDetectionConfig()) {
mergeTextDetectionConfig(other.getTextDetectionConfig());
}
if (other.hasPersonDetectionConfig()) {
mergePersonDetectionConfig(other.getPersonDetectionConfig());
}
if (other.hasObjectTrackingConfig()) {
mergeObjectTrackingConfig(other.getObjectTrackingConfig());
}
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.v1p3beta1.VideoContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(com.google.cloud.videointelligence.v1p3beta1.VideoContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List segments_ =
java.util.Collections.emptyList();
private void ensureSegmentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
segments_ =
new java.util.ArrayList(
segments_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
segmentsBuilder_;
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public java.util.List
getSegmentsList() {
if (segmentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(segments_);
} else {
return segmentsBuilder_.getMessageList();
}
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public int getSegmentsCount() {
if (segmentsBuilder_ == null) {
return segments_.size();
} else {
return segmentsBuilder_.getCount();
}
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegments(int index) {
if (segmentsBuilder_ == null) {
return segments_.get(index);
} else {
return segmentsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder setSegments(
int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
if (segmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentsIsMutable();
segments_.set(index, value);
onChanged();
} else {
segmentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder setSegments(
int index,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
if (segmentsBuilder_ == null) {
ensureSegmentsIsMutable();
segments_.set(index, builderForValue.build());
onChanged();
} else {
segmentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder addSegments(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
if (segmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentsIsMutable();
segments_.add(value);
onChanged();
} else {
segmentsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder addSegments(
int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
if (segmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentsIsMutable();
segments_.add(index, value);
onChanged();
} else {
segmentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder addSegments(
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
if (segmentsBuilder_ == null) {
ensureSegmentsIsMutable();
segments_.add(builderForValue.build());
onChanged();
} else {
segmentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder addSegments(
int index,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
if (segmentsBuilder_ == null) {
ensureSegmentsIsMutable();
segments_.add(index, builderForValue.build());
onChanged();
} else {
segmentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder addAllSegments(
java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.VideoSegment>
values) {
if (segmentsBuilder_ == null) {
ensureSegmentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_);
onChanged();
} else {
segmentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder clearSegments() {
if (segmentsBuilder_ == null) {
segments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
segmentsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public Builder removeSegments(int index) {
if (segmentsBuilder_ == null) {
ensureSegmentsIsMutable();
segments_.remove(index);
onChanged();
} else {
segmentsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentsBuilder(
int index) {
return getSegmentsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
int index) {
if (segmentsBuilder_ == null) {
return segments_.get(index);
} else {
return segmentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public java.util.List<
? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
getSegmentsOrBuilderList() {
if (segmentsBuilder_ != null) {
return segmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(segments_);
}
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegmentsBuilder() {
return getSegmentsFieldBuilder()
.addBuilder(
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance());
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegmentsBuilder(
int index) {
return getSegmentsFieldBuilder()
.addBuilder(
index,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance());
}
/**
*
*
*
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
*
* repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1;
*/
public java.util.List
getSegmentsBuilderList() {
return getSegmentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
getSegmentsFieldBuilder() {
if (segmentsBuilder_ == null) {
segmentsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>(
segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
segments_ = null;
}
return segmentsBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig labelDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder>
labelDetectionConfigBuilder_;
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*
* @return Whether the labelDetectionConfig field is set.
*/
public boolean hasLabelDetectionConfig() {
return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*
* @return The labelDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
getLabelDetectionConfig() {
if (labelDetectionConfigBuilder_ == null) {
return labelDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance()
: labelDetectionConfig_;
} else {
return labelDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public Builder setLabelDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig value) {
if (labelDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labelDetectionConfig_ = value;
onChanged();
} else {
labelDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public Builder setLabelDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder builderForValue) {
if (labelDetectionConfigBuilder_ == null) {
labelDetectionConfig_ = builderForValue.build();
onChanged();
} else {
labelDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public Builder mergeLabelDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig value) {
if (labelDetectionConfigBuilder_ == null) {
if (labelDetectionConfig_ != null) {
labelDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.newBuilder(
labelDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
labelDetectionConfig_ = value;
}
onChanged();
} else {
labelDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public Builder clearLabelDetectionConfig() {
if (labelDetectionConfigBuilder_ == null) {
labelDetectionConfig_ = null;
onChanged();
} else {
labelDetectionConfig_ = null;
labelDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder
getLabelDetectionConfigBuilder() {
onChanged();
return getLabelDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder
getLabelDetectionConfigOrBuilder() {
if (labelDetectionConfigBuilder_ != null) {
return labelDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return labelDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance()
: labelDetectionConfig_;
}
}
/**
*
*
*
* Config for LABEL_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder>
getLabelDetectionConfigFieldBuilder() {
if (labelDetectionConfigBuilder_ == null) {
labelDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder>(
getLabelDetectionConfig(), getParentForChildren(), isClean());
labelDetectionConfig_ = null;
}
return labelDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
shotChangeDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder>
shotChangeDetectionConfigBuilder_;
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*
* @return Whether the shotChangeDetectionConfig field is set.
*/
public boolean hasShotChangeDetectionConfig() {
return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*
* @return The shotChangeDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
getShotChangeDetectionConfig() {
if (shotChangeDetectionConfigBuilder_ == null) {
return shotChangeDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
.getDefaultInstance()
: shotChangeDetectionConfig_;
} else {
return shotChangeDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public Builder setShotChangeDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig value) {
if (shotChangeDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shotChangeDetectionConfig_ = value;
onChanged();
} else {
shotChangeDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public Builder setShotChangeDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder
builderForValue) {
if (shotChangeDetectionConfigBuilder_ == null) {
shotChangeDetectionConfig_ = builderForValue.build();
onChanged();
} else {
shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public Builder mergeShotChangeDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig value) {
if (shotChangeDetectionConfigBuilder_ == null) {
if (shotChangeDetectionConfig_ != null) {
shotChangeDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.newBuilder(
shotChangeDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
shotChangeDetectionConfig_ = value;
}
onChanged();
} else {
shotChangeDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public Builder clearShotChangeDetectionConfig() {
if (shotChangeDetectionConfigBuilder_ == null) {
shotChangeDetectionConfig_ = null;
onChanged();
} else {
shotChangeDetectionConfig_ = null;
shotChangeDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder
getShotChangeDetectionConfigBuilder() {
onChanged();
return getShotChangeDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder
getShotChangeDetectionConfigOrBuilder() {
if (shotChangeDetectionConfigBuilder_ != null) {
return shotChangeDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return shotChangeDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
.getDefaultInstance()
: shotChangeDetectionConfig_;
}
}
/**
*
*
*
* Config for SHOT_CHANGE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder>
getShotChangeDetectionConfigFieldBuilder() {
if (shotChangeDetectionConfigBuilder_ == null) {
shotChangeDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder>(
getShotChangeDetectionConfig(), getParentForChildren(), isClean());
shotChangeDetectionConfig_ = null;
}
return shotChangeDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
explicitContentDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder>
explicitContentDetectionConfigBuilder_;
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*
* @return Whether the explicitContentDetectionConfig field is set.
*/
public boolean hasExplicitContentDetectionConfig() {
return explicitContentDetectionConfigBuilder_ != null
|| explicitContentDetectionConfig_ != null;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*
* @return The explicitContentDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
getExplicitContentDetectionConfig() {
if (explicitContentDetectionConfigBuilder_ == null) {
return explicitContentDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
.getDefaultInstance()
: explicitContentDetectionConfig_;
} else {
return explicitContentDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public Builder setExplicitContentDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig value) {
if (explicitContentDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
explicitContentDetectionConfig_ = value;
onChanged();
} else {
explicitContentDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public Builder setExplicitContentDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder
builderForValue) {
if (explicitContentDetectionConfigBuilder_ == null) {
explicitContentDetectionConfig_ = builderForValue.build();
onChanged();
} else {
explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public Builder mergeExplicitContentDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig value) {
if (explicitContentDetectionConfigBuilder_ == null) {
if (explicitContentDetectionConfig_ != null) {
explicitContentDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
.newBuilder(explicitContentDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
explicitContentDetectionConfig_ = value;
}
onChanged();
} else {
explicitContentDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public Builder clearExplicitContentDetectionConfig() {
if (explicitContentDetectionConfigBuilder_ == null) {
explicitContentDetectionConfig_ = null;
onChanged();
} else {
explicitContentDetectionConfig_ = null;
explicitContentDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder
getExplicitContentDetectionConfigBuilder() {
onChanged();
return getExplicitContentDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder
getExplicitContentDetectionConfigOrBuilder() {
if (explicitContentDetectionConfigBuilder_ != null) {
return explicitContentDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return explicitContentDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
.getDefaultInstance()
: explicitContentDetectionConfig_;
}
}
/**
*
*
*
* Config for EXPLICIT_CONTENT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder>
getExplicitContentDetectionConfigFieldBuilder() {
if (explicitContentDetectionConfigBuilder_ == null) {
explicitContentDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1
.ExplicitContentDetectionConfigOrBuilder>(
getExplicitContentDetectionConfig(), getParentForChildren(), isClean());
explicitContentDetectionConfig_ = null;
}
return explicitContentDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig faceDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfigOrBuilder>
faceDetectionConfigBuilder_;
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*
* @return Whether the faceDetectionConfig field is set.
*/
public boolean hasFaceDetectionConfig() {
return faceDetectionConfigBuilder_ != null || faceDetectionConfig_ != null;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*
* @return The faceDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig
getFaceDetectionConfig() {
if (faceDetectionConfigBuilder_ == null) {
return faceDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.getDefaultInstance()
: faceDetectionConfig_;
} else {
return faceDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public Builder setFaceDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig value) {
if (faceDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
faceDetectionConfig_ = value;
onChanged();
} else {
faceDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public Builder setFaceDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder builderForValue) {
if (faceDetectionConfigBuilder_ == null) {
faceDetectionConfig_ = builderForValue.build();
onChanged();
} else {
faceDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public Builder mergeFaceDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig value) {
if (faceDetectionConfigBuilder_ == null) {
if (faceDetectionConfig_ != null) {
faceDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.newBuilder(
faceDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
faceDetectionConfig_ = value;
}
onChanged();
} else {
faceDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public Builder clearFaceDetectionConfig() {
if (faceDetectionConfigBuilder_ == null) {
faceDetectionConfig_ = null;
onChanged();
} else {
faceDetectionConfig_ = null;
faceDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder
getFaceDetectionConfigBuilder() {
onChanged();
return getFaceDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfigOrBuilder
getFaceDetectionConfigOrBuilder() {
if (faceDetectionConfigBuilder_ != null) {
return faceDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return faceDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.getDefaultInstance()
: faceDetectionConfig_;
}
}
/**
*
*
*
* Config for FACE_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig face_detection_config = 5;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfigOrBuilder>
getFaceDetectionConfigFieldBuilder() {
if (faceDetectionConfigBuilder_ == null) {
faceDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.FaceDetectionConfigOrBuilder>(
getFaceDetectionConfig(), getParentForChildren(), isClean());
faceDetectionConfig_ = null;
}
return faceDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
speechTranscriptionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfigOrBuilder>
speechTranscriptionConfigBuilder_;
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*
* @return Whether the speechTranscriptionConfig field is set.
*/
public boolean hasSpeechTranscriptionConfig() {
return speechTranscriptionConfigBuilder_ != null || speechTranscriptionConfig_ != null;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*
* @return The speechTranscriptionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
getSpeechTranscriptionConfig() {
if (speechTranscriptionConfigBuilder_ == null) {
return speechTranscriptionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
.getDefaultInstance()
: speechTranscriptionConfig_;
} else {
return speechTranscriptionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public Builder setSpeechTranscriptionConfig(
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig value) {
if (speechTranscriptionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
speechTranscriptionConfig_ = value;
onChanged();
} else {
speechTranscriptionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public Builder setSpeechTranscriptionConfig(
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder
builderForValue) {
if (speechTranscriptionConfigBuilder_ == null) {
speechTranscriptionConfig_ = builderForValue.build();
onChanged();
} else {
speechTranscriptionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public Builder mergeSpeechTranscriptionConfig(
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig value) {
if (speechTranscriptionConfigBuilder_ == null) {
if (speechTranscriptionConfig_ != null) {
speechTranscriptionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.newBuilder(
speechTranscriptionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
speechTranscriptionConfig_ = value;
}
onChanged();
} else {
speechTranscriptionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public Builder clearSpeechTranscriptionConfig() {
if (speechTranscriptionConfigBuilder_ == null) {
speechTranscriptionConfig_ = null;
onChanged();
} else {
speechTranscriptionConfig_ = null;
speechTranscriptionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder
getSpeechTranscriptionConfigBuilder() {
onChanged();
return getSpeechTranscriptionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfigOrBuilder
getSpeechTranscriptionConfigOrBuilder() {
if (speechTranscriptionConfigBuilder_ != null) {
return speechTranscriptionConfigBuilder_.getMessageOrBuilder();
} else {
return speechTranscriptionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig
.getDefaultInstance()
: speechTranscriptionConfig_;
}
}
/**
*
*
*
* Config for SPEECH_TRANSCRIPTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfigOrBuilder>
getSpeechTranscriptionConfigFieldBuilder() {
if (speechTranscriptionConfigBuilder_ == null) {
speechTranscriptionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfigOrBuilder>(
getSpeechTranscriptionConfig(), getParentForChildren(), isClean());
speechTranscriptionConfig_ = null;
}
return speechTranscriptionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig textDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder>
textDetectionConfigBuilder_;
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*
* @return Whether the textDetectionConfig field is set.
*/
public boolean hasTextDetectionConfig() {
return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*
* @return The textDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig
getTextDetectionConfig() {
if (textDetectionConfigBuilder_ == null) {
return textDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance()
: textDetectionConfig_;
} else {
return textDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public Builder setTextDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig value) {
if (textDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
textDetectionConfig_ = value;
onChanged();
} else {
textDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public Builder setTextDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder builderForValue) {
if (textDetectionConfigBuilder_ == null) {
textDetectionConfig_ = builderForValue.build();
onChanged();
} else {
textDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public Builder mergeTextDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig value) {
if (textDetectionConfigBuilder_ == null) {
if (textDetectionConfig_ != null) {
textDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.newBuilder(
textDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
textDetectionConfig_ = value;
}
onChanged();
} else {
textDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public Builder clearTextDetectionConfig() {
if (textDetectionConfigBuilder_ == null) {
textDetectionConfig_ = null;
onChanged();
} else {
textDetectionConfig_ = null;
textDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder
getTextDetectionConfigBuilder() {
onChanged();
return getTextDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder
getTextDetectionConfigOrBuilder() {
if (textDetectionConfigBuilder_ != null) {
return textDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return textDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance()
: textDetectionConfig_;
}
}
/**
*
*
*
* Config for TEXT_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder>
getTextDetectionConfigFieldBuilder() {
if (textDetectionConfigBuilder_ == null) {
textDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder>(
getTextDetectionConfig(), getParentForChildren(), isClean());
textDetectionConfig_ = null;
}
return textDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig
personDetectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfigOrBuilder>
personDetectionConfigBuilder_;
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*
* @return Whether the personDetectionConfig field is set.
*/
public boolean hasPersonDetectionConfig() {
return personDetectionConfigBuilder_ != null || personDetectionConfig_ != null;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*
* @return The personDetectionConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig
getPersonDetectionConfig() {
if (personDetectionConfigBuilder_ == null) {
return personDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig
.getDefaultInstance()
: personDetectionConfig_;
} else {
return personDetectionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public Builder setPersonDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig value) {
if (personDetectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
personDetectionConfig_ = value;
onChanged();
} else {
personDetectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public Builder setPersonDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder
builderForValue) {
if (personDetectionConfigBuilder_ == null) {
personDetectionConfig_ = builderForValue.build();
onChanged();
} else {
personDetectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public Builder mergePersonDetectionConfig(
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig value) {
if (personDetectionConfigBuilder_ == null) {
if (personDetectionConfig_ != null) {
personDetectionConfig_ =
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.newBuilder(
personDetectionConfig_)
.mergeFrom(value)
.buildPartial();
} else {
personDetectionConfig_ = value;
}
onChanged();
} else {
personDetectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public Builder clearPersonDetectionConfig() {
if (personDetectionConfigBuilder_ == null) {
personDetectionConfig_ = null;
onChanged();
} else {
personDetectionConfig_ = null;
personDetectionConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder
getPersonDetectionConfigBuilder() {
onChanged();
return getPersonDetectionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfigOrBuilder
getPersonDetectionConfigOrBuilder() {
if (personDetectionConfigBuilder_ != null) {
return personDetectionConfigBuilder_.getMessageOrBuilder();
} else {
return personDetectionConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig
.getDefaultInstance()
: personDetectionConfig_;
}
}
/**
*
*
*
* Config for PERSON_DETECTION.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig person_detection_config = 11;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfigOrBuilder>
getPersonDetectionConfigFieldBuilder() {
if (personDetectionConfigBuilder_ == null) {
personDetectionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.PersonDetectionConfigOrBuilder>(
getPersonDetectionConfig(), getParentForChildren(), isClean());
personDetectionConfig_ = null;
}
return personDetectionConfigBuilder_;
}
private com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig objectTrackingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfigOrBuilder>
objectTrackingConfigBuilder_;
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*
* @return Whether the objectTrackingConfig field is set.
*/
public boolean hasObjectTrackingConfig() {
return objectTrackingConfigBuilder_ != null || objectTrackingConfig_ != null;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*
* @return The objectTrackingConfig.
*/
public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig
getObjectTrackingConfig() {
if (objectTrackingConfigBuilder_ == null) {
return objectTrackingConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.getDefaultInstance()
: objectTrackingConfig_;
} else {
return objectTrackingConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public Builder setObjectTrackingConfig(
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig value) {
if (objectTrackingConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
objectTrackingConfig_ = value;
onChanged();
} else {
objectTrackingConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public Builder setObjectTrackingConfig(
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder builderForValue) {
if (objectTrackingConfigBuilder_ == null) {
objectTrackingConfig_ = builderForValue.build();
onChanged();
} else {
objectTrackingConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public Builder mergeObjectTrackingConfig(
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig value) {
if (objectTrackingConfigBuilder_ == null) {
if (objectTrackingConfig_ != null) {
objectTrackingConfig_ =
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.newBuilder(
objectTrackingConfig_)
.mergeFrom(value)
.buildPartial();
} else {
objectTrackingConfig_ = value;
}
onChanged();
} else {
objectTrackingConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public Builder clearObjectTrackingConfig() {
if (objectTrackingConfigBuilder_ == null) {
objectTrackingConfig_ = null;
onChanged();
} else {
objectTrackingConfig_ = null;
objectTrackingConfigBuilder_ = null;
}
return this;
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder
getObjectTrackingConfigBuilder() {
onChanged();
return getObjectTrackingConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfigOrBuilder
getObjectTrackingConfigOrBuilder() {
if (objectTrackingConfigBuilder_ != null) {
return objectTrackingConfigBuilder_.getMessageOrBuilder();
} else {
return objectTrackingConfig_ == null
? com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.getDefaultInstance()
: objectTrackingConfig_;
}
}
/**
*
*
*
* Config for OBJECT_TRACKING.
*
*
*
* .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfigOrBuilder>
getObjectTrackingConfigFieldBuilder() {
if (objectTrackingConfigBuilder_ == null) {
objectTrackingConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig.Builder,
com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfigOrBuilder>(
getObjectTrackingConfig(), getParentForChildren(), isClean());
objectTrackingConfig_ = null;
}
return objectTrackingConfigBuilder_;
}
@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.v1p3beta1.VideoContext)
}
// @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.VideoContext)
private static final com.google.cloud.videointelligence.v1p3beta1.VideoContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.VideoContext();
}
public static com.google.cloud.videointelligence.v1p3beta1.VideoContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VideoContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VideoContext(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.v1p3beta1.VideoContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy