Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
ElementaryStream,
Encryption,
Input,
InputAttributes,
Job,
JobConfig,
JobTemplate,
Expand All @@ -43,6 +44,7 @@
SegmentSettings,
SpriteSheet,
TextStream,
TrackDefinition,
VideoStream,
)
from google.cloud.video.transcoder_v1.types.services import (
Expand All @@ -67,6 +69,7 @@
"ElementaryStream",
"Encryption",
"Input",
"InputAttributes",
"Job",
"JobConfig",
"JobTemplate",
Expand All @@ -79,6 +82,7 @@
"SegmentSettings",
"SpriteSheet",
"TextStream",
"TrackDefinition",
"VideoStream",
"CreateJobRequest",
"CreateJobTemplateRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.16.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
ElementaryStream,
Encryption,
Input,
InputAttributes,
Job,
JobConfig,
JobTemplate,
Expand All @@ -41,6 +42,7 @@
SegmentSettings,
SpriteSheet,
TextStream,
TrackDefinition,
VideoStream,
)
from .types.services import (
Expand Down Expand Up @@ -70,6 +72,7 @@
"GetJobRequest",
"GetJobTemplateRequest",
"Input",
"InputAttributes",
"Job",
"JobConfig",
"JobTemplate",
Expand All @@ -86,6 +89,7 @@
"SegmentSettings",
"SpriteSheet",
"TextStream",
"TrackDefinition",
"TranscoderServiceClient",
"VideoStream",
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.16.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ElementaryStream,
Encryption,
Input,
InputAttributes,
Job,
JobConfig,
JobTemplate,
Expand All @@ -32,6 +33,7 @@
SegmentSettings,
SpriteSheet,
TextStream,
TrackDefinition,
VideoStream,
)
from .services import (
Expand All @@ -54,6 +56,7 @@
"ElementaryStream",
"Encryption",
"Input",
"InputAttributes",
"Job",
"JobConfig",
"JobTemplate",
Expand All @@ -66,6 +69,7 @@
"SegmentSettings",
"SpriteSheet",
"TextStream",
"TrackDefinition",
"VideoStream",
"CreateJobRequest",
"CreateJobTemplateRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"SpriteSheet",
"Overlay",
"PreprocessingConfig",
"TrackDefinition",
"InputAttributes",
"VideoStream",
"AudioStream",
"TextStream",
Expand Down Expand Up @@ -408,6 +410,8 @@ class Input(proto.Message):
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__.
preprocessing_config (google.cloud.video.transcoder_v1.types.PreprocessingConfig):
Preprocessing configurations.
attributes (google.cloud.video.transcoder_v1.types.InputAttributes):
Optional. Input Attributes.
"""

key: str = proto.Field(
Expand All @@ -423,6 +427,11 @@ class Input(proto.Message):
number=3,
message="PreprocessingConfig",
)
attributes: "InputAttributes" = proto.Field(
proto.MESSAGE,
number=4,
message="InputAttributes",
)


class Output(proto.Message):
Expand Down Expand Up @@ -1533,6 +1542,72 @@ class BwdifConfig(proto.Message):
)


class TrackDefinition(proto.Message):
r"""Track definition for the input asset.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
input_track (int):
The input track.

This field is a member of `oneof`_ ``_input_track``.
languages (MutableSequence[str]):
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.
detect_languages (bool):
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.
detected_languages (MutableSequence[str]):
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.
"""

input_track: int = proto.Field(
proto.INT32,
number=1,
optional=True,
)
languages: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=2,
)
detect_languages: bool = proto.Field(
proto.BOOL,
number=3,
)
detected_languages: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=4,
)


class InputAttributes(proto.Message):
r"""Input attributes that provide additional information about
the input asset.

Attributes:
track_definitions (MutableSequence[google.cloud.video.transcoder_v1.types.TrackDefinition]):
Optional. A list of track definitions for the
input asset.
"""

track_definitions: MutableSequence["TrackDefinition"] = proto.RepeatedField(
proto.MESSAGE,
number=1,
message="TrackDefinition",
)


class VideoStream(proto.Message):
r"""Video stream resource.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-video-transcoder",
"version": "1.16.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6505,6 +6505,19 @@ def test_create_job_rest_call_success(request_type):
},
},
},
"attributes": {
"track_definitions": [
{
"input_track": 1188,
"languages": ["languages_value1", "languages_value2"],
"detect_languages": True,
"detected_languages": [
"detected_languages_value1",
"detected_languages_value2",
],
}
]
},
}
],
"edit_list": [
Expand Down Expand Up @@ -7345,6 +7358,19 @@ def test_create_job_template_rest_call_success(request_type):
},
},
},
"attributes": {
"track_definitions": [
{
"input_track": 1188,
"languages": ["languages_value1", "languages_value2"],
"detect_languages": True,
"detected_languages": [
"detected_languages_value1",
"detected_languages_value2",
],
}
]
},
}
],
"edit_list": [
Expand Down
Loading