Class TrackDefinition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
com.google.cloud.video.transcoder.v1.TrackDefinition.Builder
- All Implemented Interfaces:
TrackDefinitionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TrackDefinition
public static final class TrackDefinition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
implements TrackDefinitionOrBuilder
Track definition for the input asset.Protobuf type
google.cloud.video.transcoder.v1.TrackDefinition-
Method Summary
Modifier and TypeMethodDescriptionaddAllDetectedLanguages(Iterable<String> values) Output only.addAllLanguages(Iterable<String> values) Optional.addDetectedLanguages(String value) Output only.addDetectedLanguagesBytes(com.google.protobuf.ByteString value) Output only.addLanguages(String value) Optional.addLanguagesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Output only.Optional.The input track.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDetectedLanguages(int index) Output only.com.google.protobuf.ByteStringgetDetectedLanguagesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.booleanOptional.intThe input track.getLanguages(int index) Optional.com.google.protobuf.ByteStringgetLanguagesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanThe input track.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TrackDefinition other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDetectedLanguages(int index, String value) Output only.setDetectLanguages(boolean value) Optional.setInputTrack(int value) The input track.setLanguages(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrackDefinition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TrackDefinition.Builder>
-
mergeFrom
public TrackDefinition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrackDefinition.Builder>- Throws:
IOException
-
hasInputTrack
public boolean hasInputTrack()The input track.
optional int32 input_track = 1;- Specified by:
hasInputTrackin interfaceTrackDefinitionOrBuilder- Returns:
- Whether the inputTrack field is set.
-
getInputTrack
public int getInputTrack()The input track.
optional int32 input_track = 1;- Specified by:
getInputTrackin interfaceTrackDefinitionOrBuilder- Returns:
- The inputTrack.
-
setInputTrack
The input track.
optional int32 input_track = 1;- Parameters:
value- The inputTrack to set.- Returns:
- This builder for chaining.
-
clearInputTrack
The input track.
optional int32 input_track = 1;- Returns:
- This builder for chaining.
-
getLanguagesList
public com.google.protobuf.ProtocolStringList getLanguagesList()Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguagesListin interfaceTrackDefinitionOrBuilder- Returns:
- A list containing the languages.
-
getLanguagesCount
public int getLanguagesCount()Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguagesCountin interfaceTrackDefinitionOrBuilder- Returns:
- The count of languages.
-
getLanguages
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguagesin interfaceTrackDefinitionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The languages at the given index.
-
getLanguagesBytes
public com.google.protobuf.ByteString getLanguagesBytes(int index) Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguagesBytesin interfaceTrackDefinitionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languages at the given index.
-
setLanguages
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The languages to set.- Returns:
- This builder for chaining.
-
addLanguages
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languages to add.- Returns:
- This builder for chaining.
-
addAllLanguages
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The languages to add.- Returns:
- This builder for chaining.
-
clearLanguages
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addLanguagesBytes
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
repeated string languages = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the languages to add.- Returns:
- This builder for chaining.
-
getDetectLanguages
public boolean getDetectLanguages()Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDetectLanguagesin interfaceTrackDefinitionOrBuilder- Returns:
- The detectLanguages.
-
setDetectLanguages
Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The detectLanguages to set.- Returns:
- This builder for chaining.
-
clearDetectLanguages
Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
bool detect_languages = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDetectedLanguagesList
public com.google.protobuf.ProtocolStringList getDetectedLanguagesList()Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetectedLanguagesListin interfaceTrackDefinitionOrBuilder- Returns:
- A list containing the detectedLanguages.
-
getDetectedLanguagesCount
public int getDetectedLanguagesCount()Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetectedLanguagesCountin interfaceTrackDefinitionOrBuilder- Returns:
- The count of detectedLanguages.
-
getDetectedLanguages
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetectedLanguagesin interfaceTrackDefinitionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The detectedLanguages at the given index.
-
getDetectedLanguagesBytes
public com.google.protobuf.ByteString getDetectedLanguagesBytes(int index) Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetectedLanguagesBytesin interfaceTrackDefinitionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the detectedLanguages at the given index.
-
setDetectedLanguages
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The detectedLanguages to set.- Returns:
- This builder for chaining.
-
addDetectedLanguages
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The detectedLanguages to add.- Returns:
- This builder for chaining.
-
addAllDetectedLanguages
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The detectedLanguages to add.- Returns:
- This builder for chaining.
-
clearDetectedLanguages
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addDetectedLanguagesBytes
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
repeated string detected_languages = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the detectedLanguages to add.- Returns:
- This builder for chaining.
-