
com.google.api.services.transcoder.v1.model.AudioStream Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.transcoder.v1.model;
/**
* Audio stream resource.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Transcoder API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AudioStream extends com.google.api.client.json.GenericJson {
/**
* Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer bitrateBps;
/**
* Number of audio channels. Must be between 1 and 6. The default is 2.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer channelCount;
/**
* A list of channel names specifying layout of the audio channels. This only affects the metadata
* embedded in the container headers, if supported by the specified format. The default is `["fl",
* "fr"]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel -
* `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` -
* Low frequency
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List channelLayout;
/**
* The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-
* he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String codec;
/**
* The name for this particular audio stream that will be added to the HLS/DASH manifest. Not
* supported in MP4 files.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;
/**
* The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see
* https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String languageCode;
/**
* The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List mapping;
static {
// hack to force ProGuard to consider AudioMapping used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(AudioMapping.class);
}
/**
* The audio sample rate in Hertz. The default is 48000 Hertz.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer sampleRateHertz;
/**
* Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
* @return value or {@code null} for none
*/
public java.lang.Integer getBitrateBps() {
return bitrateBps;
}
/**
* Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
* @param bitrateBps bitrateBps or {@code null} for none
*/
public AudioStream setBitrateBps(java.lang.Integer bitrateBps) {
this.bitrateBps = bitrateBps;
return this;
}
/**
* Number of audio channels. Must be between 1 and 6. The default is 2.
* @return value or {@code null} for none
*/
public java.lang.Integer getChannelCount() {
return channelCount;
}
/**
* Number of audio channels. Must be between 1 and 6. The default is 2.
* @param channelCount channelCount or {@code null} for none
*/
public AudioStream setChannelCount(java.lang.Integer channelCount) {
this.channelCount = channelCount;
return this;
}
/**
* A list of channel names specifying layout of the audio channels. This only affects the metadata
* embedded in the container headers, if supported by the specified format. The default is `["fl",
* "fr"]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel -
* `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` -
* Low frequency
* @return value or {@code null} for none
*/
public java.util.List getChannelLayout() {
return channelLayout;
}
/**
* A list of channel names specifying layout of the audio channels. This only affects the metadata
* embedded in the container headers, if supported by the specified format. The default is `["fl",
* "fr"]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel -
* `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` -
* Low frequency
* @param channelLayout channelLayout or {@code null} for none
*/
public AudioStream setChannelLayout(java.util.List channelLayout) {
this.channelLayout = channelLayout;
return this;
}
/**
* The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-
* he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`
* @return value or {@code null} for none
*/
public java.lang.String getCodec() {
return codec;
}
/**
* The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-
* he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`
* @param codec codec or {@code null} for none
*/
public AudioStream setCodec(java.lang.String codec) {
this.codec = codec;
return this;
}
/**
* The name for this particular audio stream that will be added to the HLS/DASH manifest. Not
* supported in MP4 files.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}
/**
* The name for this particular audio stream that will be added to the HLS/DASH manifest. Not
* supported in MP4 files.
* @param displayName displayName or {@code null} for none
*/
public AudioStream setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}
/**
* The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see
* https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
* @return value or {@code null} for none
*/
public java.lang.String getLanguageCode() {
return languageCode;
}
/**
* The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see
* https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
* @param languageCode languageCode or {@code null} for none
*/
public AudioStream setLanguageCode(java.lang.String languageCode) {
this.languageCode = languageCode;
return this;
}
/**
* The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
* @return value or {@code null} for none
*/
public java.util.List getMapping() {
return mapping;
}
/**
* The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
* @param mapping mapping or {@code null} for none
*/
public AudioStream setMapping(java.util.List mapping) {
this.mapping = mapping;
return this;
}
/**
* The audio sample rate in Hertz. The default is 48000 Hertz.
* @return value or {@code null} for none
*/
public java.lang.Integer getSampleRateHertz() {
return sampleRateHertz;
}
/**
* The audio sample rate in Hertz. The default is 48000 Hertz.
* @param sampleRateHertz sampleRateHertz or {@code null} for none
*/
public AudioStream setSampleRateHertz(java.lang.Integer sampleRateHertz) {
this.sampleRateHertz = sampleRateHertz;
return this;
}
@Override
public AudioStream set(String fieldName, Object value) {
return (AudioStream) super.set(fieldName, value);
}
@Override
public AudioStream clone() {
return (AudioStream) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy