All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig Maven / Gradle / Ivy

There is a newer version: 0.144.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto

package com.google.cloud.videointelligence.v1p3beta1;

/**
 *
 *
 * 
 * Provides information to the annotator that specifies how to process the
 * request.
 * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} */ public final class StreamingVideoConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) StreamingVideoConfigOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingVideoConfig.newBuilder() to construct. private StreamingVideoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingVideoConfig() { feature_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingVideoConfig( 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 8: { int rawValue = input.readEnum(); feature_ = rawValue; break; } case 18: { com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .Builder subBuilder = null; if (streamingConfigCase_ == 2) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 2; break; } case 26: { com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder subBuilder = null; if (streamingConfigCase_ == 3) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 3; break; } case 34: { com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .Builder subBuilder = null; if (streamingConfigCase_ == 4) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 4; break; } case 42: { com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder subBuilder = null; if (streamingConfigCase_ == 5) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 5; break; } case 170: { com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .Builder subBuilder = null; if (streamingConfigCase_ == 21) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 21; break; } case 178: { com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .Builder subBuilder = null; if (streamingConfigCase_ == 22) { subBuilder = ((com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfig) streamingConfig_) .toBuilder(); } streamingConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfig) streamingConfig_); streamingConfig_ = subBuilder.buildPartial(); } streamingConfigCase_ = 22; break; } case 242: { com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder subBuilder = null; if (storageConfig_ != null) { subBuilder = storageConfig_.toBuilder(); } storageConfig_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storageConfig_); storageConfig_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.class, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder.class); } private int streamingConfigCase_ = 0; private java.lang.Object streamingConfig_; public enum StreamingConfigCase implements com.google.protobuf.Internal.EnumLite { SHOT_CHANGE_DETECTION_CONFIG(2), LABEL_DETECTION_CONFIG(3), EXPLICIT_CONTENT_DETECTION_CONFIG(4), OBJECT_TRACKING_CONFIG(5), AUTOML_CLASSIFICATION_CONFIG(21), AUTOML_OBJECT_TRACKING_CONFIG(22), STREAMINGCONFIG_NOT_SET(0); private final int value; private StreamingConfigCase(int value) { this.value = value; } /** @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StreamingConfigCase valueOf(int value) { return forNumber(value); } public static StreamingConfigCase forNumber(int value) { switch (value) { case 2: return SHOT_CHANGE_DETECTION_CONFIG; case 3: return LABEL_DETECTION_CONFIG; case 4: return EXPLICIT_CONTENT_DETECTION_CONFIG; case 5: return OBJECT_TRACKING_CONFIG; case 21: return AUTOML_CLASSIFICATION_CONFIG; case 22: return AUTOML_OBJECT_TRACKING_CONFIG; case 0: return STREAMINGCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public StreamingConfigCase getStreamingConfigCase() { return StreamingConfigCase.forNumber(streamingConfigCase_); } public static final int FEATURE_FIELD_NUMBER = 1; private int feature_; /** * * *
   * Requested annotation feature.
   * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public int getFeatureValue() { return feature_; } /** * * *
   * Requested annotation feature.
   * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { @SuppressWarnings("deprecation") com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result = com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_); return result == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED : result; } public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 2; /** * * *
   * Config for STREAMING_SHOT_CHANGE_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public boolean hasShotChangeDetectionConfig() { return streamingConfigCase_ == 2; } /** * * *
   * Config for STREAMING_SHOT_CHANGE_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig() { if (streamingConfigCase_ == 2) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_SHOT_CHANGE_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder() { if (streamingConfigCase_ == 2) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 3; /** * * *
   * Config for STREAMING_LABEL_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public boolean hasLabelDetectionConfig() { return streamingConfigCase_ == 3; } /** * * *
   * Config for STREAMING_LABEL_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig getLabelDetectionConfig() { if (streamingConfigCase_ == 3) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_LABEL_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder() { if (streamingConfigCase_ == 3) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4; /** * * *
   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public boolean hasExplicitContentDetectionConfig() { return streamingConfigCase_ == 4; } /** * * *
   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig getExplicitContentDetectionConfig() { if (streamingConfigCase_ == 4) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder() { if (streamingConfigCase_ == 4) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 5; /** * * *
   * Config for STREAMING_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public boolean hasObjectTrackingConfig() { return streamingConfigCase_ == 5; } /** * * *
   * Config for STREAMING_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig getObjectTrackingConfig() { if (streamingConfigCase_ == 5) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if (streamingConfigCase_ == 5) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } public static final int AUTOML_CLASSIFICATION_CONFIG_FIELD_NUMBER = 21; /** * * *
   * Config for STREAMING_AUTOML_CLASSIFICATION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public boolean hasAutomlClassificationConfig() { return streamingConfigCase_ == 21; } /** * * *
   * Config for STREAMING_AUTOML_CLASSIFICATION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig() { if (streamingConfigCase_ == 21) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_AUTOML_CLASSIFICATION.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfigOrBuilder getAutomlClassificationConfigOrBuilder() { if (streamingConfigCase_ == 21) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } public static final int AUTOML_OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 22; /** * * *
   * Config for STREAMING_AUTOML_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public boolean hasAutomlObjectTrackingConfig() { return streamingConfigCase_ == 22; } /** * * *
   * Config for STREAMING_AUTOML_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig getAutomlObjectTrackingConfig() { if (streamingConfigCase_ == 22) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } /** * * *
   * Config for STREAMING_AUTOML_OBJECT_TRACKING.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfigOrBuilder getAutomlObjectTrackingConfigOrBuilder() { if (streamingConfigCase_ == 22) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } public static final int STORAGE_CONFIG_FIELD_NUMBER = 30; private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_; /** * * *
   * Streaming storage option. By default: storage is disabled.
   * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public boolean hasStorageConfig() { return storageConfig_ != null; } /** * * *
   * Streaming storage option. By default: storage is disabled.
   * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { return storageConfig_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.getDefaultInstance() : storageConfig_; } /** * * *
   * Streaming storage option. By default: storage is disabled.
   * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder getStorageConfigOrBuilder() { return getStorageConfig(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (feature_ != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature .STREAMING_FEATURE_UNSPECIFIED .getNumber()) { output.writeEnum(1, feature_); } if (streamingConfigCase_ == 2) { output.writeMessage( 2, (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 3) { output.writeMessage( 3, (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 4) { output.writeMessage( 4, (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 5) { output.writeMessage( 5, (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_); } if (streamingConfigCase_ == 21) { output.writeMessage( 21, (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_); } if (streamingConfigCase_ == 22) { output.writeMessage( 22, (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_); } if (storageConfig_ != null) { output.writeMessage(30, getStorageConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (feature_ != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature .STREAMING_FEATURE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, feature_); } if (streamingConfigCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) streamingConfig_); } if (streamingConfigCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_); } if (streamingConfigCase_ == 21) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 21, (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_); } if (streamingConfigCase_ == 22) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 22, (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_); } if (storageConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getStorageConfig()); } 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.StreamingVideoConfig)) { return super.equals(obj); } com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig other = (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) obj; if (feature_ != other.feature_) return false; if (hasStorageConfig() != other.hasStorageConfig()) return false; if (hasStorageConfig()) { if (!getStorageConfig().equals(other.getStorageConfig())) return false; } if (!getStreamingConfigCase().equals(other.getStreamingConfigCase())) return false; switch (streamingConfigCase_) { case 2: if (!getShotChangeDetectionConfig().equals(other.getShotChangeDetectionConfig())) return false; break; case 3: if (!getLabelDetectionConfig().equals(other.getLabelDetectionConfig())) return false; break; case 4: if (!getExplicitContentDetectionConfig().equals(other.getExplicitContentDetectionConfig())) return false; break; case 5: if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; break; case 21: if (!getAutomlClassificationConfig().equals(other.getAutomlClassificationConfig())) return false; break; case 22: if (!getAutomlObjectTrackingConfig().equals(other.getAutomlObjectTrackingConfig())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FEATURE_FIELD_NUMBER; hash = (53 * hash) + feature_; if (hasStorageConfig()) { hash = (37 * hash) + STORAGE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStorageConfig().hashCode(); } switch (streamingConfigCase_) { case 2: hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShotChangeDetectionConfig().hashCode(); break; case 3: hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLabelDetectionConfig().hashCode(); break; case 4: hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode(); break; case 5: hash = (37 * hash) + OBJECT_TRACKING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getObjectTrackingConfig().hashCode(); break; case 21: hash = (37 * hash) + AUTOML_CLASSIFICATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutomlClassificationConfig().hashCode(); break; case 22: hash = (37 * hash) + AUTOML_OBJECT_TRACKING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutomlObjectTrackingConfig().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig 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.StreamingVideoConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig 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.StreamingVideoConfig parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig 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.StreamingVideoConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig 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.StreamingVideoConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig 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.StreamingVideoConfig 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.StreamingVideoConfig 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.StreamingVideoConfig 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; } /** * * *
   * Provides information to the annotator that specifies how to process the
   * request.
   * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.class, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder.class); } // Construct using // com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); feature_ = 0; if (storageConfigBuilder_ == null) { storageConfig_ = null; } else { storageConfig_ = null; storageConfigBuilder_ = null; } streamingConfigCase_ = 0; streamingConfig_ = 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_StreamingVideoConfig_descriptor; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig build() { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig buildPartial() { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig result = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig(this); result.feature_ = feature_; if (streamingConfigCase_ == 2) { if (shotChangeDetectionConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = shotChangeDetectionConfigBuilder_.build(); } } if (streamingConfigCase_ == 3) { if (labelDetectionConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = labelDetectionConfigBuilder_.build(); } } if (streamingConfigCase_ == 4) { if (explicitContentDetectionConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = explicitContentDetectionConfigBuilder_.build(); } } if (streamingConfigCase_ == 5) { if (objectTrackingConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = objectTrackingConfigBuilder_.build(); } } if (streamingConfigCase_ == 21) { if (automlClassificationConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = automlClassificationConfigBuilder_.build(); } } if (streamingConfigCase_ == 22) { if (automlObjectTrackingConfigBuilder_ == null) { result.streamingConfig_ = streamingConfig_; } else { result.streamingConfig_ = automlObjectTrackingConfigBuilder_.build(); } } if (storageConfigBuilder_ == null) { result.storageConfig_ = storageConfig_; } else { result.storageConfig_ = storageConfigBuilder_.build(); } result.streamingConfigCase_ = streamingConfigCase_; 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.StreamingVideoConfig) { return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig other) { if (other == com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance()) return this; if (other.feature_ != 0) { setFeatureValue(other.getFeatureValue()); } if (other.hasStorageConfig()) { mergeStorageConfig(other.getStorageConfig()); } switch (other.getStreamingConfigCase()) { case SHOT_CHANGE_DETECTION_CONFIG: { mergeShotChangeDetectionConfig(other.getShotChangeDetectionConfig()); break; } case LABEL_DETECTION_CONFIG: { mergeLabelDetectionConfig(other.getLabelDetectionConfig()); break; } case EXPLICIT_CONTENT_DETECTION_CONFIG: { mergeExplicitContentDetectionConfig(other.getExplicitContentDetectionConfig()); break; } case OBJECT_TRACKING_CONFIG: { mergeObjectTrackingConfig(other.getObjectTrackingConfig()); break; } case AUTOML_CLASSIFICATION_CONFIG: { mergeAutomlClassificationConfig(other.getAutomlClassificationConfig()); break; } case AUTOML_OBJECT_TRACKING_CONFIG: { mergeAutomlObjectTrackingConfig(other.getAutomlObjectTrackingConfig()); break; } case STREAMINGCONFIG_NOT_SET: { break; } } 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.StreamingVideoConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int streamingConfigCase_ = 0; private java.lang.Object streamingConfig_; public StreamingConfigCase getStreamingConfigCase() { return StreamingConfigCase.forNumber(streamingConfigCase_); } public Builder clearStreamingConfig() { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); return this; } private int feature_ = 0; /** * * *
     * Requested annotation feature.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public int getFeatureValue() { return feature_; } /** * * *
     * Requested annotation feature.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public Builder setFeatureValue(int value) { feature_ = value; onChanged(); return this; } /** * * *
     * Requested annotation feature.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { @SuppressWarnings("deprecation") com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result = com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_); return result == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED : result; } /** * * *
     * Requested annotation feature.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.StreamingFeature value) { if (value == null) { throw new NullPointerException(); } feature_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Requested annotation feature.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; */ public Builder clearFeature() { feature_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfigOrBuilder> shotChangeDetectionConfigBuilder_; /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public boolean hasShotChangeDetectionConfig() { return streamingConfigCase_ == 2; } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig() { if (shotChangeDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 2) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 2) { return shotChangeDetectionConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public Builder setShotChangeDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) { if (shotChangeDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { shotChangeDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 2; return this; } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public Builder setShotChangeDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder builderForValue) { if (shotChangeDetectionConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 2; return this; } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public Builder mergeShotChangeDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) { if (shotChangeDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 2 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .newBuilder( (com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 2) { shotChangeDetectionConfigBuilder_.mergeFrom(value); } shotChangeDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 2; return this; } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public Builder clearShotChangeDetectionConfig() { if (shotChangeDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 2) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 2) { streamingConfigCase_ = 0; streamingConfig_ = null; } shotChangeDetectionConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder() { return getShotChangeDetectionConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder() { if ((streamingConfigCase_ == 2) && (shotChangeDetectionConfigBuilder_ != null)) { return shotChangeDetectionConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 2) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_SHOT_CHANGE_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfigOrBuilder> getShotChangeDetectionConfigFieldBuilder() { if (shotChangeDetectionConfigBuilder_ == null) { if (!(streamingConfigCase_ == 2)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .getDefaultInstance(); } shotChangeDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingShotChangeDetectionConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 2; onChanged(); ; return shotChangeDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder> labelDetectionConfigBuilder_; /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public boolean hasLabelDetectionConfig() { return streamingConfigCase_ == 3; } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig getLabelDetectionConfig() { if (labelDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 3) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 3) { return labelDetectionConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public Builder setLabelDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) { if (labelDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { labelDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 3; return this; } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public Builder setLabelDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder builderForValue) { if (labelDetectionConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { labelDetectionConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 3; return this; } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public Builder mergeLabelDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) { if (labelDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 3 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.newBuilder( (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 3) { labelDetectionConfigBuilder_.mergeFrom(value); } labelDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 3; return this; } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public Builder clearLabelDetectionConfig() { if (labelDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 3) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 3) { streamingConfigCase_ = 0; streamingConfig_ = null; } labelDetectionConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder getLabelDetectionConfigBuilder() { return getLabelDetectionConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder() { if ((streamingConfigCase_ == 3) && (labelDetectionConfigBuilder_ != null)) { return labelDetectionConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 3) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_LABEL_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder> getLabelDetectionConfigFieldBuilder() { if (labelDetectionConfigBuilder_ == null) { if (!(streamingConfigCase_ == 3)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig .getDefaultInstance(); } labelDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingLabelDetectionConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 3; onChanged(); ; return labelDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfigOrBuilder> explicitContentDetectionConfigBuilder_; /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public boolean hasExplicitContentDetectionConfig() { return streamingConfigCase_ == 4; } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig getExplicitContentDetectionConfig() { if (explicitContentDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 4) { return (com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 4) { return explicitContentDetectionConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public Builder setExplicitContentDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig value) { if (explicitContentDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { explicitContentDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 4; return this; } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public Builder setExplicitContentDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig.Builder builderForValue) { if (explicitContentDetectionConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 4; return this; } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public Builder mergeExplicitContentDetectionConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig value) { if (explicitContentDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 4 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig.getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .newBuilder( (com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 4) { explicitContentDetectionConfigBuilder_.mergeFrom(value); } explicitContentDetectionConfigBuilder_.setMessage(value); } streamingConfigCase_ = 4; return this; } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public Builder clearExplicitContentDetectionConfig() { if (explicitContentDetectionConfigBuilder_ == null) { if (streamingConfigCase_ == 4) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 4) { streamingConfigCase_ = 0; streamingConfig_ = null; } explicitContentDetectionConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .Builder getExplicitContentDetectionConfigBuilder() { return getExplicitContentDetectionConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ public com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder() { if ((streamingConfigCase_ == 4) && (explicitContentDetectionConfigBuilder_ != null)) { return explicitContentDetectionConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 4) { return (com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfigOrBuilder> getExplicitContentDetectionConfigFieldBuilder() { if (explicitContentDetectionConfigBuilder_ == null) { if (!(streamingConfigCase_ == 4)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .getDefaultInstance(); } explicitContentDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1 .StreamingExplicitContentDetectionConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 4; onChanged(); ; return explicitContentDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder> objectTrackingConfigBuilder_; /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public boolean hasObjectTrackingConfig() { return streamingConfigCase_ == 5; } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig getObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 5) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 5) { return objectTrackingConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public Builder setObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { objectTrackingConfigBuilder_.setMessage(value); } streamingConfigCase_ = 5; return this; } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public Builder setObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder builderForValue) { if (objectTrackingConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { objectTrackingConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 5; return this; } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public Builder mergeObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 5 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.newBuilder( (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 5) { objectTrackingConfigBuilder_.mergeFrom(value); } objectTrackingConfigBuilder_.setMessage(value); } streamingConfigCase_ = 5; return this; } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public Builder clearObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 5) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 5) { streamingConfigCase_ = 0; streamingConfig_ = null; } objectTrackingConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder getObjectTrackingConfigBuilder() { return getObjectTrackingConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if ((streamingConfigCase_ == 5) && (objectTrackingConfigBuilder_ != null)) { return objectTrackingConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 5) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder> getObjectTrackingConfigFieldBuilder() { if (objectTrackingConfigBuilder_ == null) { if (!(streamingConfigCase_ == 5)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig .getDefaultInstance(); } objectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingObjectTrackingConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 5; onChanged(); ; return objectTrackingConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfigOrBuilder> automlClassificationConfigBuilder_; /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public boolean hasAutomlClassificationConfig() { return streamingConfigCase_ == 21; } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig() { if (automlClassificationConfigBuilder_ == null) { if (streamingConfigCase_ == 21) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 21) { return automlClassificationConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public Builder setAutomlClassificationConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig value) { if (automlClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { automlClassificationConfigBuilder_.setMessage(value); } streamingConfigCase_ = 21; return this; } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public Builder setAutomlClassificationConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig.Builder builderForValue) { if (automlClassificationConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { automlClassificationConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 21; return this; } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public Builder mergeAutomlClassificationConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig value) { if (automlClassificationConfigBuilder_ == null) { if (streamingConfigCase_ == 21 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .newBuilder( (com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 21) { automlClassificationConfigBuilder_.mergeFrom(value); } automlClassificationConfigBuilder_.setMessage(value); } streamingConfigCase_ = 21; return this; } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public Builder clearAutomlClassificationConfig() { if (automlClassificationConfigBuilder_ == null) { if (streamingConfigCase_ == 21) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 21) { streamingConfigCase_ = 0; streamingConfig_ = null; } automlClassificationConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig.Builder getAutomlClassificationConfigBuilder() { return getAutomlClassificationConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfigOrBuilder getAutomlClassificationConfigOrBuilder() { if ((streamingConfigCase_ == 21) && (automlClassificationConfigBuilder_ != null)) { return automlClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 21) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_AUTOML_CLASSIFICATION.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfigOrBuilder> getAutomlClassificationConfigFieldBuilder() { if (automlClassificationConfigBuilder_ == null) { if (!(streamingConfigCase_ == 21)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .getDefaultInstance(); } automlClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlClassificationConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 21; onChanged(); ; return automlClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfigOrBuilder> automlObjectTrackingConfigBuilder_; /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public boolean hasAutomlObjectTrackingConfig() { return streamingConfigCase_ == 22; } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig getAutomlObjectTrackingConfig() { if (automlObjectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 22) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } else { if (streamingConfigCase_ == 22) { return automlObjectTrackingConfigBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public Builder setAutomlObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig value) { if (automlObjectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamingConfig_ = value; onChanged(); } else { automlObjectTrackingConfigBuilder_.setMessage(value); } streamingConfigCase_ = 22; return this; } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public Builder setAutomlObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig.Builder builderForValue) { if (automlObjectTrackingConfigBuilder_ == null) { streamingConfig_ = builderForValue.build(); onChanged(); } else { automlObjectTrackingConfigBuilder_.setMessage(builderForValue.build()); } streamingConfigCase_ = 22; return this; } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public Builder mergeAutomlObjectTrackingConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig value) { if (automlObjectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 22 && streamingConfig_ != com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance()) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .newBuilder( (com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfig) streamingConfig_) .mergeFrom(value) .buildPartial(); } else { streamingConfig_ = value; } onChanged(); } else { if (streamingConfigCase_ == 22) { automlObjectTrackingConfigBuilder_.mergeFrom(value); } automlObjectTrackingConfigBuilder_.setMessage(value); } streamingConfigCase_ = 22; return this; } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public Builder clearAutomlObjectTrackingConfig() { if (automlObjectTrackingConfigBuilder_ == null) { if (streamingConfigCase_ == 22) { streamingConfigCase_ = 0; streamingConfig_ = null; onChanged(); } } else { if (streamingConfigCase_ == 22) { streamingConfigCase_ = 0; streamingConfig_ = null; } automlObjectTrackingConfigBuilder_.clear(); } return this; } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig.Builder getAutomlObjectTrackingConfigBuilder() { return getAutomlObjectTrackingConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfigOrBuilder getAutomlObjectTrackingConfigOrBuilder() { if ((streamingConfigCase_ == 22) && (automlObjectTrackingConfigBuilder_ != null)) { return automlObjectTrackingConfigBuilder_.getMessageOrBuilder(); } else { if (streamingConfigCase_ == 22) { return (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_; } return com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } } /** * * *
     * Config for STREAMING_AUTOML_OBJECT_TRACKING.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfigOrBuilder> getAutomlObjectTrackingConfigFieldBuilder() { if (automlObjectTrackingConfigBuilder_ == null) { if (!(streamingConfigCase_ == 22)) { streamingConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .getDefaultInstance(); } automlObjectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingAutomlObjectTrackingConfigOrBuilder>( (com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig) streamingConfig_, getParentForChildren(), isClean()); streamingConfig_ = null; } streamingConfigCase_ = 22; onChanged(); ; return automlObjectTrackingConfigBuilder_; } private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder> storageConfigBuilder_; /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public boolean hasStorageConfig() { return storageConfigBuilder_ != null || storageConfig_ != null; } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { if (storageConfigBuilder_ == null) { return storageConfig_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig .getDefaultInstance() : storageConfig_; } else { return storageConfigBuilder_.getMessage(); } } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public Builder setStorageConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) { if (storageConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageConfig_ = value; onChanged(); } else { storageConfigBuilder_.setMessage(value); } return this; } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public Builder setStorageConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder builderForValue) { if (storageConfigBuilder_ == null) { storageConfig_ = builderForValue.build(); onChanged(); } else { storageConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public Builder mergeStorageConfig( com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) { if (storageConfigBuilder_ == null) { if (storageConfig_ != null) { storageConfig_ = com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.newBuilder( storageConfig_) .mergeFrom(value) .buildPartial(); } else { storageConfig_ = value; } onChanged(); } else { storageConfigBuilder_.mergeFrom(value); } return this; } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public Builder clearStorageConfig() { if (storageConfigBuilder_ == null) { storageConfig_ = null; onChanged(); } else { storageConfig_ = null; storageConfigBuilder_ = null; } return this; } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder getStorageConfigBuilder() { onChanged(); return getStorageConfigFieldBuilder().getBuilder(); } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder getStorageConfigOrBuilder() { if (storageConfigBuilder_ != null) { return storageConfigBuilder_.getMessageOrBuilder(); } else { return storageConfig_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig .getDefaultInstance() : storageConfig_; } } /** * * *
     * Streaming storage option. By default: storage is disabled.
     * 
* * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder> getStorageConfigFieldBuilder() { if (storageConfigBuilder_ == null) { storageConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder>( getStorageConfig(), getParentForChildren(), isClean()); storageConfig_ = null; } return storageConfigBuilder_; } @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.StreamingVideoConfig) } // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig(); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingVideoConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingVideoConfig(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.StreamingVideoConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy