diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index be5377d6b350..8723b4161800 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.16.0 + 26.18.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientHttpJsonTest.java b/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientHttpJsonTest.java index c0b2f0279e3c..d7def71ef85e 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientHttpJsonTest.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientHttpJsonTest.java @@ -93,6 +93,7 @@ public void createJobTest() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockService.addResponse(expectedResponse); @@ -147,6 +148,7 @@ public void createJobTest2() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockService.addResponse(expectedResponse); @@ -301,6 +303,7 @@ public void getJobTest() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockService.addResponse(expectedResponse); @@ -353,6 +356,7 @@ public void getJobTest2() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockService.addResponse(expectedResponse); diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientTest.java b/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientTest.java index 590125a9fb2d..db06ae240ebf 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientTest.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClientTest.java @@ -96,6 +96,7 @@ public void createJobTest() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -145,6 +146,7 @@ public void createJobTest2() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -282,6 +284,7 @@ public void getJobTest() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -328,6 +331,7 @@ public void getJobTest2() throws Exception { .setTtlAfterCompletionDays(107576420) .putAllLabels(new HashMap()) .setError(Status.newBuilder().build()) + .setBatchModePriority(2137003131) .build(); mockTranscoderService.addResponse(expectedResponse); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Encryption.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Encryption.java new file mode 100644 index 000000000000..465e8acf5dba --- /dev/null +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Encryption.java @@ -0,0 +1,7980 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/transcoder/v1/resources.proto + +package com.google.cloud.video.transcoder.v1; + +/** + * + * + *
+ * Encryption settings.
+ * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption} + */ +public final class Encryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption) + EncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Encryption.newBuilder() to construct. + private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Encryption() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Encryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.class, + com.google.cloud.video.transcoder.v1.Encryption.Builder.class); + } + + public interface Aes128EncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Aes128Encryption} + */ + public static final class Aes128Encryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) + Aes128EncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Aes128Encryption.newBuilder() to construct. + private Aes128Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Aes128Encryption() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Aes128Encryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.class, + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.Aes128Encryption)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption other = + (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption 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.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption 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.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption 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.video.transcoder.v1.Encryption.Aes128Encryption + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + 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.video.transcoder.v1.Encryption.Aes128Encryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption 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.video.transcoder.v1.Encryption.Aes128Encryption 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; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Aes128Encryption} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) + com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.class, + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder.class); + } + + // Construct using + // com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption build() { + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption result = + new com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption(this); + 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.video.transcoder.v1.Encryption.Aes128Encryption) { + return mergeFrom( + (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption other) { + if (other + == com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.Aes128Encryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) + private static final com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aes128Encryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.Aes128Encryption + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SampleAesEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption} + */ + public static final class SampleAesEncryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + SampleAesEncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SampleAesEncryption.newBuilder() to construct. + private SampleAesEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleAesEncryption() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleAesEncryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.class, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.SampleAesEncryption)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption other = + (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption 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.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption 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.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption 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.video.transcoder.v1.Encryption.SampleAesEncryption + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + 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.video.transcoder.v1.Encryption.SampleAesEncryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption 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.video.transcoder.v1.Encryption.SampleAesEncryption 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; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.class, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder.class); + } + + // Construct using + // com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption build() { + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption result = + new com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption(this); + 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.video.transcoder.v1.Encryption.SampleAesEncryption) { + return mergeFrom( + (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption other) { + if (other + == com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.SampleAesEncryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + private static final com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleAesEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.SampleAesEncryption + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MpegCommonEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Specify the encryption scheme.
+     *
+     * Supported encryption schemes:
+     *
+     * - `cenc`
+     * - `cbcs`
+     * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scheme. + */ + java.lang.String getScheme(); + /** + * + * + *
+     * Required. Specify the encryption scheme.
+     *
+     * Supported encryption schemes:
+     *
+     * - `cenc`
+     * - `cbcs`
+     * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scheme. + */ + com.google.protobuf.ByteString getSchemeBytes(); + } + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption} + */ + public static final class MpegCommonEncryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + MpegCommonEncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MpegCommonEncryption.newBuilder() to construct. + private MpegCommonEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MpegCommonEncryption() { + scheme_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MpegCommonEncryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.class, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder.class); + } + + public static final int SCHEME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object scheme_ = ""; + /** + * + * + *
+     * Required. Specify the encryption scheme.
+     *
+     * Supported encryption schemes:
+     *
+     * - `cenc`
+     * - `cbcs`
+     * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scheme. + */ + @java.lang.Override + public java.lang.String getScheme() { + java.lang.Object ref = scheme_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheme_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Specify the encryption scheme.
+     *
+     * Supported encryption schemes:
+     *
+     * - `cenc`
+     * - `cbcs`
+     * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scheme. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemeBytes() { + java.lang.Object ref = scheme_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheme_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scheme_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheme_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scheme_); + } + size += getUnknownFields().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.video.transcoder.v1.Encryption.MpegCommonEncryption)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption other = + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) obj; + + if (!getScheme().equals(other.getScheme())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SCHEME_FIELD_NUMBER; + hash = (53 * hash) + getScheme().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption 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.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption 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.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption 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.video.transcoder.v1.Encryption.MpegCommonEncryption + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + 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.video.transcoder.v1.Encryption.MpegCommonEncryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption 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.video.transcoder.v1.Encryption.MpegCommonEncryption 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; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.class, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder.class); + } + + // Construct using + // com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scheme_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption build() { + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption result = + new com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scheme_ = scheme_; + } + } + + @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.video.transcoder.v1.Encryption.MpegCommonEncryption) { + return mergeFrom( + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption other) { + if (other + == com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance()) return this; + if (!other.getScheme().isEmpty()) { + scheme_ = other.scheme_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + scheme_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object scheme_ = ""; + /** + * + * + *
+       * Required. Specify the encryption scheme.
+       *
+       * Supported encryption schemes:
+       *
+       * - `cenc`
+       * - `cbcs`
+       * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scheme. + */ + public java.lang.String getScheme() { + java.lang.Object ref = scheme_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheme_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Specify the encryption scheme.
+       *
+       * Supported encryption schemes:
+       *
+       * - `cenc`
+       * - `cbcs`
+       * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scheme. + */ + public com.google.protobuf.ByteString getSchemeBytes() { + java.lang.Object ref = scheme_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Specify the encryption scheme.
+       *
+       * Supported encryption schemes:
+       *
+       * - `cenc`
+       * - `cbcs`
+       * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scheme to set. + * @return This builder for chaining. + */ + public Builder setScheme(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheme_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Specify the encryption scheme.
+       *
+       * Supported encryption schemes:
+       *
+       * - `cenc`
+       * - `cbcs`
+       * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScheme() { + scheme_ = getDefaultInstance().getScheme(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Specify the encryption scheme.
+       *
+       * Supported encryption schemes:
+       *
+       * - `cenc`
+       * - `cbcs`
+       * 
+ * + * string scheme = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scheme to set. + * @return This builder for chaining. + */ + public Builder setSchemeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheme_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.video.transcoder.v1.Encryption.MpegCommonEncryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + private static final com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MpegCommonEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.MpegCommonEncryption + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SecretManagerSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The name of the Secret Version containing the encryption key in
+     * the following format:
+     * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+     *
+     * Note that only numbered versions are supported. Aliases like "latest" are
+     * not supported.
+     * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The secretVersion. + */ + java.lang.String getSecretVersion(); + /** + * + * + *
+     * Required. The name of the Secret Version containing the encryption key in
+     * the following format:
+     * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+     *
+     * Note that only numbered versions are supported. Aliases like "latest" are
+     * not supported.
+     * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for secretVersion. + */ + com.google.protobuf.ByteString getSecretVersionBytes(); + } + /** + * + * + *
+   * Configuration for secrets stored in Google Secret Manager.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.SecretManagerSource} + */ + public static final class SecretManagerSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + SecretManagerSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretManagerSource.newBuilder() to construct. + private SecretManagerSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecretManagerSource() { + secretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecretManagerSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.class, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder.class); + } + + public static final int SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretVersion_ = ""; + /** + * + * + *
+     * Required. The name of the Secret Version containing the encryption key in
+     * the following format:
+     * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+     *
+     * Note that only numbered versions are supported. Aliases like "latest" are
+     * not supported.
+     * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The secretVersion. + */ + @java.lang.Override + public java.lang.String getSecretVersion() { + java.lang.Object ref = secretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The name of the Secret Version containing the encryption key in
+     * the following format:
+     * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+     *
+     * Note that only numbered versions are supported. Aliases like "latest" are
+     * not supported.
+     * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for secretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretVersionBytes() { + java.lang.Object ref = secretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretVersion_); + } + size += getUnknownFields().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.video.transcoder.v1.Encryption.SecretManagerSource)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource other = + (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) obj; + + if (!getSecretVersion().equals(other.getSecretVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSecretVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource 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.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource 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.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource 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.video.transcoder.v1.Encryption.SecretManagerSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + 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.video.transcoder.v1.Encryption.SecretManagerSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource 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.video.transcoder.v1.Encryption.SecretManagerSource 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; + } + /** + * + * + *
+     * Configuration for secrets stored in Google Secret Manager.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.SecretManagerSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.class, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder.class); + } + + // Construct using + // com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + secretVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource build() { + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource result = + new com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.secretVersion_ = secretVersion_; + } + } + + @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.video.transcoder.v1.Encryption.SecretManagerSource) { + return mergeFrom( + (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource other) { + if (other + == com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance()) return this; + if (!other.getSecretVersion().isEmpty()) { + secretVersion_ = other.secretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + secretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object secretVersion_ = ""; + /** + * + * + *
+       * Required. The name of the Secret Version containing the encryption key in
+       * the following format:
+       * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+       *
+       * Note that only numbered versions are supported. Aliases like "latest" are
+       * not supported.
+       * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The secretVersion. + */ + public java.lang.String getSecretVersion() { + java.lang.Object ref = secretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The name of the Secret Version containing the encryption key in
+       * the following format:
+       * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+       *
+       * Note that only numbered versions are supported. Aliases like "latest" are
+       * not supported.
+       * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for secretVersion. + */ + public com.google.protobuf.ByteString getSecretVersionBytes() { + java.lang.Object ref = secretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The name of the Secret Version containing the encryption key in
+       * the following format:
+       * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+       *
+       * Note that only numbered versions are supported. Aliases like "latest" are
+       * not supported.
+       * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The secretVersion to set. + * @return This builder for chaining. + */ + public Builder setSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the Secret Version containing the encryption key in
+       * the following format:
+       * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+       *
+       * Note that only numbered versions are supported. Aliases like "latest" are
+       * not supported.
+       * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSecretVersion() { + secretVersion_ = getDefaultInstance().getSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the Secret Version containing the encryption key in
+       * the following format:
+       * `projects/{project}/secrets/{secret_id}/versions/{version_number}`
+       *
+       * Note that only numbered versions are supported. Aliases like "latest" are
+       * not supported.
+       * 
+ * + * string secret_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for secretVersion to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.video.transcoder.v1.Encryption.SecretManagerSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + private static final com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretManagerSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.SecretManagerSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WidevineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.Widevine) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Widevine configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Widevine} + */ + public static final class Widevine extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.Widevine) + WidevineOrBuilder { + private static final long serialVersionUID = 0L; + // Use Widevine.newBuilder() to construct. + private Widevine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Widevine() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Widevine(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Widevine.class, + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.Widevine)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.Widevine other = + (com.google.cloud.video.transcoder.v1.Encryption.Widevine) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine 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.video.transcoder.v1.Encryption.Widevine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine 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.video.transcoder.v1.Encryption.Widevine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine 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.video.transcoder.v1.Encryption.Widevine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine 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.video.transcoder.v1.Encryption.Widevine parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine 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.video.transcoder.v1.Encryption.Widevine 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; + } + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Widevine} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.Widevine) + com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Widevine.class, + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.Widevine.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Widevine getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Widevine build() { + com.google.cloud.video.transcoder.v1.Encryption.Widevine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Widevine buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.Widevine result = + new com.google.cloud.video.transcoder.v1.Encryption.Widevine(this); + 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.video.transcoder.v1.Encryption.Widevine) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption.Widevine) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption.Widevine other) { + if (other == com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.Widevine) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.Widevine) + private static final com.google.cloud.video.transcoder.v1.Encryption.Widevine DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.Widevine(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Widevine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Widevine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.Widevine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FairplayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.Fairplay) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Fairplay configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Fairplay} + */ + public static final class Fairplay extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.Fairplay) + FairplayOrBuilder { + private static final long serialVersionUID = 0L; + // Use Fairplay.newBuilder() to construct. + private Fairplay(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Fairplay() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Fairplay(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.class, + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.Fairplay)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.Fairplay other = + (com.google.cloud.video.transcoder.v1.Encryption.Fairplay) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay 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.video.transcoder.v1.Encryption.Fairplay parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay 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.video.transcoder.v1.Encryption.Fairplay parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay 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.video.transcoder.v1.Encryption.Fairplay parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay 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.video.transcoder.v1.Encryption.Fairplay parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay 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.video.transcoder.v1.Encryption.Fairplay 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; + } + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Fairplay} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.Fairplay) + com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.class, + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.Fairplay.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay build() { + com.google.cloud.video.transcoder.v1.Encryption.Fairplay result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.Fairplay result = + new com.google.cloud.video.transcoder.v1.Encryption.Fairplay(this); + 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.video.transcoder.v1.Encryption.Fairplay) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption.Fairplay) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption.Fairplay other) { + if (other == com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.Fairplay) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.Fairplay) + private static final com.google.cloud.video.transcoder.v1.Encryption.Fairplay DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.Fairplay(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Fairplay getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fairplay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.Fairplay getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PlayreadyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.Playready) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Playready configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Playready} + */ + public static final class Playready extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.Playready) + PlayreadyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Playready.newBuilder() to construct. + private Playready(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Playready() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Playready(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Playready.class, + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.Playready)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.Playready other = + (com.google.cloud.video.transcoder.v1.Encryption.Playready) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready 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.video.transcoder.v1.Encryption.Playready parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready 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.video.transcoder.v1.Encryption.Playready parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready 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.video.transcoder.v1.Encryption.Playready parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready 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.video.transcoder.v1.Encryption.Playready parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready 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.video.transcoder.v1.Encryption.Playready 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; + } + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Playready} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.Playready) + com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Playready.class, + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.Playready.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Playready getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Playready build() { + com.google.cloud.video.transcoder.v1.Encryption.Playready result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Playready buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.Playready result = + new com.google.cloud.video.transcoder.v1.Encryption.Playready(this); + 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.video.transcoder.v1.Encryption.Playready) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption.Playready) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption.Playready other) { + if (other == com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.Playready) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.Playready) + private static final com.google.cloud.video.transcoder.v1.Encryption.Playready DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.Playready(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Playready getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Playready parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.Playready getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ClearkeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.Clearkey) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Clearkey configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Clearkey} + */ + public static final class Clearkey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.Clearkey) + ClearkeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Clearkey.newBuilder() to construct. + private Clearkey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Clearkey() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Clearkey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.class, + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.video.transcoder.v1.Encryption.Clearkey)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.Clearkey other = + (com.google.cloud.video.transcoder.v1.Encryption.Clearkey) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey 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.video.transcoder.v1.Encryption.Clearkey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey 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.video.transcoder.v1.Encryption.Clearkey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey 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.video.transcoder.v1.Encryption.Clearkey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey 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.video.transcoder.v1.Encryption.Clearkey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey 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.video.transcoder.v1.Encryption.Clearkey 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; + } + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.Clearkey} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.Clearkey) + com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.class, + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.Clearkey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey build() { + com.google.cloud.video.transcoder.v1.Encryption.Clearkey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.Clearkey result = + new com.google.cloud.video.transcoder.v1.Encryption.Clearkey(this); + 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.video.transcoder.v1.Encryption.Clearkey) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption.Clearkey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption.Clearkey other) { + if (other == com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.video.transcoder.v1.Encryption.Clearkey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.Clearkey) + private static final com.google.cloud.video.transcoder.v1.Encryption.Clearkey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.Clearkey(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.Clearkey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Clearkey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.Clearkey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DrmSystemsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption.DrmSystems) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return Whether the widevine field is set. + */ + boolean hasWidevine(); + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return The widevine. + */ + com.google.cloud.video.transcoder.v1.Encryption.Widevine getWidevine(); + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder getWidevineOrBuilder(); + + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return Whether the fairplay field is set. + */ + boolean hasFairplay(); + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return The fairplay. + */ + com.google.cloud.video.transcoder.v1.Encryption.Fairplay getFairplay(); + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder getFairplayOrBuilder(); + + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return Whether the playready field is set. + */ + boolean hasPlayready(); + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return The playready. + */ + com.google.cloud.video.transcoder.v1.Encryption.Playready getPlayready(); + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder getPlayreadyOrBuilder(); + + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return Whether the clearkey field is set. + */ + boolean hasClearkey(); + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return The clearkey. + */ + com.google.cloud.video.transcoder.v1.Encryption.Clearkey getClearkey(); + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder getClearkeyOrBuilder(); + } + /** + * + * + *
+   * Defines configuration for DRM systems in use.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.DrmSystems} + */ + public static final class DrmSystems extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Encryption.DrmSystems) + DrmSystemsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DrmSystems.newBuilder() to construct. + private DrmSystems(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DrmSystems() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DrmSystems(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.class, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder.class); + } + + public static final int WIDEVINE_FIELD_NUMBER = 1; + private com.google.cloud.video.transcoder.v1.Encryption.Widevine widevine_; + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return Whether the widevine field is set. + */ + @java.lang.Override + public boolean hasWidevine() { + return widevine_ != null; + } + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return The widevine. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Widevine getWidevine() { + return widevine_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance() + : widevine_; + } + /** + * + * + *
+     * Widevine configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder + getWidevineOrBuilder() { + return widevine_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance() + : widevine_; + } + + public static final int FAIRPLAY_FIELD_NUMBER = 2; + private com.google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay_; + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return Whether the fairplay field is set. + */ + @java.lang.Override + public boolean hasFairplay() { + return fairplay_ != null; + } + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return The fairplay. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay getFairplay() { + return fairplay_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance() + : fairplay_; + } + /** + * + * + *
+     * Fairplay configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder + getFairplayOrBuilder() { + return fairplay_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance() + : fairplay_; + } + + public static final int PLAYREADY_FIELD_NUMBER = 3; + private com.google.cloud.video.transcoder.v1.Encryption.Playready playready_; + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return Whether the playready field is set. + */ + @java.lang.Override + public boolean hasPlayready() { + return playready_ != null; + } + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return The playready. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Playready getPlayready() { + return playready_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance() + : playready_; + } + /** + * + * + *
+     * Playready configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder + getPlayreadyOrBuilder() { + return playready_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance() + : playready_; + } + + public static final int CLEARKEY_FIELD_NUMBER = 4; + private com.google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey_; + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return Whether the clearkey field is set. + */ + @java.lang.Override + public boolean hasClearkey() { + return clearkey_ != null; + } + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return The clearkey. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey getClearkey() { + return clearkey_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance() + : clearkey_; + } + /** + * + * + *
+     * Clearkey configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder + getClearkeyOrBuilder() { + return clearkey_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance() + : clearkey_; + } + + 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 (widevine_ != null) { + output.writeMessage(1, getWidevine()); + } + if (fairplay_ != null) { + output.writeMessage(2, getFairplay()); + } + if (playready_ != null) { + output.writeMessage(3, getPlayready()); + } + if (clearkey_ != null) { + output.writeMessage(4, getClearkey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (widevine_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWidevine()); + } + if (fairplay_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFairplay()); + } + if (playready_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPlayready()); + } + if (clearkey_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClearkey()); + } + size += getUnknownFields().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.video.transcoder.v1.Encryption.DrmSystems)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems other = + (com.google.cloud.video.transcoder.v1.Encryption.DrmSystems) obj; + + if (hasWidevine() != other.hasWidevine()) return false; + if (hasWidevine()) { + if (!getWidevine().equals(other.getWidevine())) return false; + } + if (hasFairplay() != other.hasFairplay()) return false; + if (hasFairplay()) { + if (!getFairplay().equals(other.getFairplay())) return false; + } + if (hasPlayready() != other.hasPlayready()) return false; + if (hasPlayready()) { + if (!getPlayready().equals(other.getPlayready())) return false; + } + if (hasClearkey() != other.hasClearkey()) return false; + if (hasClearkey()) { + if (!getClearkey().equals(other.getClearkey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWidevine()) { + hash = (37 * hash) + WIDEVINE_FIELD_NUMBER; + hash = (53 * hash) + getWidevine().hashCode(); + } + if (hasFairplay()) { + hash = (37 * hash) + FAIRPLAY_FIELD_NUMBER; + hash = (53 * hash) + getFairplay().hashCode(); + } + if (hasPlayready()) { + hash = (37 * hash) + PLAYREADY_FIELD_NUMBER; + hash = (53 * hash) + getPlayready().hashCode(); + } + if (hasClearkey()) { + hash = (37 * hash) + CLEARKEY_FIELD_NUMBER; + hash = (53 * hash) + getClearkey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems 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.video.transcoder.v1.Encryption.DrmSystems parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems 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.video.transcoder.v1.Encryption.DrmSystems parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems 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.video.transcoder.v1.Encryption.DrmSystems parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems 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.video.transcoder.v1.Encryption.DrmSystems parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems 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.video.transcoder.v1.Encryption.DrmSystems 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; + } + /** + * + * + *
+     * Defines configuration for DRM systems in use.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption.DrmSystems} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption.DrmSystems) + com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.class, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + widevine_ = null; + if (widevineBuilder_ != null) { + widevineBuilder_.dispose(); + widevineBuilder_ = null; + } + fairplay_ = null; + if (fairplayBuilder_ != null) { + fairplayBuilder_.dispose(); + fairplayBuilder_ = null; + } + playready_ = null; + if (playreadyBuilder_ != null) { + playreadyBuilder_.dispose(); + playreadyBuilder_ = null; + } + clearkey_ = null; + if (clearkeyBuilder_ != null) { + clearkeyBuilder_.dispose(); + clearkeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems + getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems build() { + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems result = + new com.google.cloud.video.transcoder.v1.Encryption.DrmSystems(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.widevine_ = widevineBuilder_ == null ? widevine_ : widevineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fairplay_ = fairplayBuilder_ == null ? fairplay_ : fairplayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.playready_ = playreadyBuilder_ == null ? playready_ : playreadyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clearkey_ = clearkeyBuilder_ == null ? clearkey_ : clearkeyBuilder_.build(); + } + } + + @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.video.transcoder.v1.Encryption.DrmSystems) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption.DrmSystems) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption.DrmSystems other) { + if (other + == com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance()) + return this; + if (other.hasWidevine()) { + mergeWidevine(other.getWidevine()); + } + if (other.hasFairplay()) { + mergeFairplay(other.getFairplay()); + } + if (other.hasPlayready()) { + mergePlayready(other.getPlayready()); + } + if (other.hasClearkey()) { + mergeClearkey(other.getClearkey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getWidevineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getFairplayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPlayreadyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getClearkeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.video.transcoder.v1.Encryption.Widevine widevine_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Widevine, + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder, + com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder> + widevineBuilder_; + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return Whether the widevine field is set. + */ + public boolean hasWidevine() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + * + * @return The widevine. + */ + public com.google.cloud.video.transcoder.v1.Encryption.Widevine getWidevine() { + if (widevineBuilder_ == null) { + return widevine_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance() + : widevine_; + } else { + return widevineBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public Builder setWidevine(com.google.cloud.video.transcoder.v1.Encryption.Widevine value) { + if (widevineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + widevine_ = value; + } else { + widevineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public Builder setWidevine( + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder builderForValue) { + if (widevineBuilder_ == null) { + widevine_ = builderForValue.build(); + } else { + widevineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public Builder mergeWidevine(com.google.cloud.video.transcoder.v1.Encryption.Widevine value) { + if (widevineBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && widevine_ != null + && widevine_ + != com.google.cloud.video.transcoder.v1.Encryption.Widevine + .getDefaultInstance()) { + getWidevineBuilder().mergeFrom(value); + } else { + widevine_ = value; + } + } else { + widevineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public Builder clearWidevine() { + bitField0_ = (bitField0_ & ~0x00000001); + widevine_ = null; + if (widevineBuilder_ != null) { + widevineBuilder_.dispose(); + widevineBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder getWidevineBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWidevineFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + public com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder + getWidevineOrBuilder() { + if (widevineBuilder_ != null) { + return widevineBuilder_.getMessageOrBuilder(); + } else { + return widevine_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Widevine.getDefaultInstance() + : widevine_; + } + } + /** + * + * + *
+       * Widevine configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Widevine widevine = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Widevine, + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder, + com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder> + getWidevineFieldBuilder() { + if (widevineBuilder_ == null) { + widevineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Widevine, + com.google.cloud.video.transcoder.v1.Encryption.Widevine.Builder, + com.google.cloud.video.transcoder.v1.Encryption.WidevineOrBuilder>( + getWidevine(), getParentForChildren(), isClean()); + widevine_ = null; + } + return widevineBuilder_; + } + + private com.google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Fairplay, + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder, + com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder> + fairplayBuilder_; + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return Whether the fairplay field is set. + */ + public boolean hasFairplay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + * + * @return The fairplay. + */ + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay getFairplay() { + if (fairplayBuilder_ == null) { + return fairplay_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance() + : fairplay_; + } else { + return fairplayBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public Builder setFairplay(com.google.cloud.video.transcoder.v1.Encryption.Fairplay value) { + if (fairplayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fairplay_ = value; + } else { + fairplayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public Builder setFairplay( + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder builderForValue) { + if (fairplayBuilder_ == null) { + fairplay_ = builderForValue.build(); + } else { + fairplayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public Builder mergeFairplay(com.google.cloud.video.transcoder.v1.Encryption.Fairplay value) { + if (fairplayBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fairplay_ != null + && fairplay_ + != com.google.cloud.video.transcoder.v1.Encryption.Fairplay + .getDefaultInstance()) { + getFairplayBuilder().mergeFrom(value); + } else { + fairplay_ = value; + } + } else { + fairplayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public Builder clearFairplay() { + bitField0_ = (bitField0_ & ~0x00000002); + fairplay_ = null; + if (fairplayBuilder_ != null) { + fairplayBuilder_.dispose(); + fairplayBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder getFairplayBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFairplayFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + public com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder + getFairplayOrBuilder() { + if (fairplayBuilder_ != null) { + return fairplayBuilder_.getMessageOrBuilder(); + } else { + return fairplay_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Fairplay.getDefaultInstance() + : fairplay_; + } + } + /** + * + * + *
+       * Fairplay configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Fairplay fairplay = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Fairplay, + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder, + com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder> + getFairplayFieldBuilder() { + if (fairplayBuilder_ == null) { + fairplayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Fairplay, + com.google.cloud.video.transcoder.v1.Encryption.Fairplay.Builder, + com.google.cloud.video.transcoder.v1.Encryption.FairplayOrBuilder>( + getFairplay(), getParentForChildren(), isClean()); + fairplay_ = null; + } + return fairplayBuilder_; + } + + private com.google.cloud.video.transcoder.v1.Encryption.Playready playready_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Playready, + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder, + com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder> + playreadyBuilder_; + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return Whether the playready field is set. + */ + public boolean hasPlayready() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + * + * @return The playready. + */ + public com.google.cloud.video.transcoder.v1.Encryption.Playready getPlayready() { + if (playreadyBuilder_ == null) { + return playready_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance() + : playready_; + } else { + return playreadyBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public Builder setPlayready(com.google.cloud.video.transcoder.v1.Encryption.Playready value) { + if (playreadyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playready_ = value; + } else { + playreadyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public Builder setPlayready( + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder builderForValue) { + if (playreadyBuilder_ == null) { + playready_ = builderForValue.build(); + } else { + playreadyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public Builder mergePlayready( + com.google.cloud.video.transcoder.v1.Encryption.Playready value) { + if (playreadyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && playready_ != null + && playready_ + != com.google.cloud.video.transcoder.v1.Encryption.Playready + .getDefaultInstance()) { + getPlayreadyBuilder().mergeFrom(value); + } else { + playready_ = value; + } + } else { + playreadyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public Builder clearPlayready() { + bitField0_ = (bitField0_ & ~0x00000004); + playready_ = null; + if (playreadyBuilder_ != null) { + playreadyBuilder_.dispose(); + playreadyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder + getPlayreadyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPlayreadyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + public com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder + getPlayreadyOrBuilder() { + if (playreadyBuilder_ != null) { + return playreadyBuilder_.getMessageOrBuilder(); + } else { + return playready_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Playready.getDefaultInstance() + : playready_; + } + } + /** + * + * + *
+       * Playready configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Playready playready = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Playready, + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder, + com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder> + getPlayreadyFieldBuilder() { + if (playreadyBuilder_ == null) { + playreadyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Playready, + com.google.cloud.video.transcoder.v1.Encryption.Playready.Builder, + com.google.cloud.video.transcoder.v1.Encryption.PlayreadyOrBuilder>( + getPlayready(), getParentForChildren(), isClean()); + playready_ = null; + } + return playreadyBuilder_; + } + + private com.google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Clearkey, + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder, + com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder> + clearkeyBuilder_; + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return Whether the clearkey field is set. + */ + public boolean hasClearkey() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + * + * @return The clearkey. + */ + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey getClearkey() { + if (clearkeyBuilder_ == null) { + return clearkey_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance() + : clearkey_; + } else { + return clearkeyBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public Builder setClearkey(com.google.cloud.video.transcoder.v1.Encryption.Clearkey value) { + if (clearkeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clearkey_ = value; + } else { + clearkeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public Builder setClearkey( + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder builderForValue) { + if (clearkeyBuilder_ == null) { + clearkey_ = builderForValue.build(); + } else { + clearkeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public Builder mergeClearkey(com.google.cloud.video.transcoder.v1.Encryption.Clearkey value) { + if (clearkeyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && clearkey_ != null + && clearkey_ + != com.google.cloud.video.transcoder.v1.Encryption.Clearkey + .getDefaultInstance()) { + getClearkeyBuilder().mergeFrom(value); + } else { + clearkey_ = value; + } + } else { + clearkeyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public Builder clearClearkey() { + bitField0_ = (bitField0_ & ~0x00000008); + clearkey_ = null; + if (clearkeyBuilder_ != null) { + clearkeyBuilder_.dispose(); + clearkeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder getClearkeyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getClearkeyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + public com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder + getClearkeyOrBuilder() { + if (clearkeyBuilder_ != null) { + return clearkeyBuilder_.getMessageOrBuilder(); + } else { + return clearkey_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.Clearkey.getDefaultInstance() + : clearkey_; + } + } + /** + * + * + *
+       * Clearkey configuration.
+       * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Clearkey clearkey = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Clearkey, + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder, + com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder> + getClearkeyFieldBuilder() { + if (clearkeyBuilder_ == null) { + clearkeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Clearkey, + com.google.cloud.video.transcoder.v1.Encryption.Clearkey.Builder, + com.google.cloud.video.transcoder.v1.Encryption.ClearkeyOrBuilder>( + getClearkey(), getParentForChildren(), isClean()); + clearkey_ = null; + } + return clearkeyBuilder_; + } + + @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.video.transcoder.v1.Encryption.DrmSystems) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption.DrmSystems) + private static final com.google.cloud.video.transcoder.v1.Encryption.DrmSystems + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption.DrmSystems(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption.DrmSystems getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DrmSystems parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption.DrmSystems getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int encryptionModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object encryptionMode_; + + public enum EncryptionModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AES_128(3), + SAMPLE_AES(4), + MPEG_CENC(5), + ENCRYPTIONMODE_NOT_SET(0); + private final int value; + + private EncryptionModeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EncryptionModeCase valueOf(int value) { + return forNumber(value); + } + + public static EncryptionModeCase forNumber(int value) { + switch (value) { + case 3: + return AES_128; + case 4: + return SAMPLE_AES; + case 5: + return MPEG_CENC; + case 0: + return ENCRYPTIONMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncryptionModeCase getEncryptionModeCase() { + return EncryptionModeCase.forNumber(encryptionModeCase_); + } + + private int secretSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object secretSource_; + + public enum SecretSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SECRET_MANAGER_KEY_SOURCE(7), + SECRETSOURCE_NOT_SET(0); + private final int value; + + private SecretSourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SecretSourceCase valueOf(int value) { + return forNumber(value); + } + + public static SecretSourceCase forNumber(int value) { + switch (value) { + case 7: + return SECRET_MANAGER_KEY_SOURCE; + case 0: + return SECRETSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SecretSourceCase getSecretSourceCase() { + return SecretSourceCase.forNumber(secretSourceCase_); + } + + public static final int ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+   * Required. Identifier for this set of encryption options.
+   * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Identifier for this set of encryption options.
+   * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AES_128_FIELD_NUMBER = 3; + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return Whether the aes128 field is set. + */ + @java.lang.Override + public boolean hasAes128() { + return encryptionModeCase_ == 3; + } + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return The aes128. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption getAes128() { + if (encryptionModeCase_ == 3) { + return (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder + getAes128OrBuilder() { + if (encryptionModeCase_ == 3) { + return (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.getDefaultInstance(); + } + + public static final int SAMPLE_AES_FIELD_NUMBER = 4; + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return Whether the sampleAes field is set. + */ + @java.lang.Override + public boolean hasSampleAes() { + return encryptionModeCase_ == 4; + } + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return The sampleAes. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption getSampleAes() { + if (encryptionModeCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder + getSampleAesOrBuilder() { + if (encryptionModeCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.getDefaultInstance(); + } + + public static final int MPEG_CENC_FIELD_NUMBER = 5; + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return Whether the mpegCenc field is set. + */ + @java.lang.Override + public boolean hasMpegCenc() { + return encryptionModeCase_ == 5; + } + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return The mpegCenc. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption getMpegCenc() { + if (encryptionModeCase_ == 5) { + return (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder + getMpegCencOrBuilder() { + if (encryptionModeCase_ == 5) { + return (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + + public static final int SECRET_MANAGER_KEY_SOURCE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return Whether the secretManagerKeySource field is set. + */ + @java.lang.Override + public boolean hasSecretManagerKeySource() { + return secretSourceCase_ == 7; + } + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return The secretManagerKeySource. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + getSecretManagerKeySource() { + if (secretSourceCase_ == 7) { + return (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) secretSource_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.getDefaultInstance(); + } + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder + getSecretManagerKeySourceOrBuilder() { + if (secretSourceCase_ == 7) { + return (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) secretSource_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.getDefaultInstance(); + } + + public static final int DRM_SYSTEMS_FIELD_NUMBER = 8; + private com.google.cloud.video.transcoder.v1.Encryption.DrmSystems drmSystems_; + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the drmSystems field is set. + */ + @java.lang.Override + public boolean hasDrmSystems() { + return drmSystems_ != null; + } + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The drmSystems. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems getDrmSystems() { + return drmSystems_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance() + : drmSystems_; + } + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder + getDrmSystemsOrBuilder() { + return drmSystems_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance() + : drmSystems_; + } + + 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 (encryptionModeCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_); + } + if (encryptionModeCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) encryptionMode_); + } + if (encryptionModeCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) encryptionMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, id_); + } + if (secretSourceCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) secretSource_); + } + if (drmSystems_ != null) { + output.writeMessage(8, getDrmSystems()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptionModeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_); + } + if (encryptionModeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + encryptionMode_); + } + if (encryptionModeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + encryptionMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, id_); + } + if (secretSourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) secretSource_); + } + if (drmSystems_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDrmSystems()); + } + size += getUnknownFields().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.video.transcoder.v1.Encryption)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Encryption other = + (com.google.cloud.video.transcoder.v1.Encryption) obj; + + if (!getId().equals(other.getId())) return false; + if (hasDrmSystems() != other.hasDrmSystems()) return false; + if (hasDrmSystems()) { + if (!getDrmSystems().equals(other.getDrmSystems())) return false; + } + if (!getEncryptionModeCase().equals(other.getEncryptionModeCase())) return false; + switch (encryptionModeCase_) { + case 3: + if (!getAes128().equals(other.getAes128())) return false; + break; + case 4: + if (!getSampleAes().equals(other.getSampleAes())) return false; + break; + case 5: + if (!getMpegCenc().equals(other.getMpegCenc())) return false; + break; + case 0: + default: + } + if (!getSecretSourceCase().equals(other.getSecretSourceCase())) return false; + switch (secretSourceCase_) { + case 7: + if (!getSecretManagerKeySource().equals(other.getSecretManagerKeySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDrmSystems()) { + hash = (37 * hash) + DRM_SYSTEMS_FIELD_NUMBER; + hash = (53 * hash) + getDrmSystems().hashCode(); + } + switch (encryptionModeCase_) { + case 3: + hash = (37 * hash) + AES_128_FIELD_NUMBER; + hash = (53 * hash) + getAes128().hashCode(); + break; + case 4: + hash = (37 * hash) + SAMPLE_AES_FIELD_NUMBER; + hash = (53 * hash) + getSampleAes().hashCode(); + break; + case 5: + hash = (37 * hash) + MPEG_CENC_FIELD_NUMBER; + hash = (53 * hash) + getMpegCenc().hashCode(); + break; + case 0: + default: + } + switch (secretSourceCase_) { + case 7: + hash = (37 * hash) + SECRET_MANAGER_KEY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSecretManagerKeySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Encryption parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption 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.video.transcoder.v1.Encryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption 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.video.transcoder.v1.Encryption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Encryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Encryption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption 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.video.transcoder.v1.Encryption parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption 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.video.transcoder.v1.Encryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Encryption 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.video.transcoder.v1.Encryption 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; + } + /** + * + * + *
+   * Encryption settings.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Encryption} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Encryption) + com.google.cloud.video.transcoder.v1.EncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Encryption.class, + com.google.cloud.video.transcoder.v1.Encryption.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Encryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + if (aes128Builder_ != null) { + aes128Builder_.clear(); + } + if (sampleAesBuilder_ != null) { + sampleAesBuilder_.clear(); + } + if (mpegCencBuilder_ != null) { + mpegCencBuilder_.clear(); + } + if (secretManagerKeySourceBuilder_ != null) { + secretManagerKeySourceBuilder_.clear(); + } + drmSystems_ = null; + if (drmSystemsBuilder_ != null) { + drmSystemsBuilder_.dispose(); + drmSystemsBuilder_ = null; + } + encryptionModeCase_ = 0; + encryptionMode_ = null; + secretSourceCase_ = 0; + secretSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Encryption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption build() { + com.google.cloud.video.transcoder.v1.Encryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption buildPartial() { + com.google.cloud.video.transcoder.v1.Encryption result = + new com.google.cloud.video.transcoder.v1.Encryption(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.transcoder.v1.Encryption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.drmSystems_ = drmSystemsBuilder_ == null ? drmSystems_ : drmSystemsBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.video.transcoder.v1.Encryption result) { + result.encryptionModeCase_ = encryptionModeCase_; + result.encryptionMode_ = this.encryptionMode_; + if (encryptionModeCase_ == 3 && aes128Builder_ != null) { + result.encryptionMode_ = aes128Builder_.build(); + } + if (encryptionModeCase_ == 4 && sampleAesBuilder_ != null) { + result.encryptionMode_ = sampleAesBuilder_.build(); + } + if (encryptionModeCase_ == 5 && mpegCencBuilder_ != null) { + result.encryptionMode_ = mpegCencBuilder_.build(); + } + result.secretSourceCase_ = secretSourceCase_; + result.secretSource_ = this.secretSource_; + if (secretSourceCase_ == 7 && secretManagerKeySourceBuilder_ != null) { + result.secretSource_ = secretManagerKeySourceBuilder_.build(); + } + } + + @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.video.transcoder.v1.Encryption) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Encryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Encryption other) { + if (other == com.google.cloud.video.transcoder.v1.Encryption.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDrmSystems()) { + mergeDrmSystems(other.getDrmSystems()); + } + switch (other.getEncryptionModeCase()) { + case AES_128: + { + mergeAes128(other.getAes128()); + break; + } + case SAMPLE_AES: + { + mergeSampleAes(other.getSampleAes()); + break; + } + case MPEG_CENC: + { + mergeMpegCenc(other.getMpegCenc()); + break; + } + case ENCRYPTIONMODE_NOT_SET: + { + break; + } + } + switch (other.getSecretSourceCase()) { + case SECRET_MANAGER_KEY_SOURCE: + { + mergeSecretManagerKeySource(other.getSecretManagerKeySource()); + break; + } + case SECRETSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + input.readMessage(getAes128FieldBuilder().getBuilder(), extensionRegistry); + encryptionModeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getSampleAesFieldBuilder().getBuilder(), extensionRegistry); + encryptionModeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getMpegCencFieldBuilder().getBuilder(), extensionRegistry); + encryptionModeCase_ = 5; + break; + } // case 42 + case 50: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + case 58: + { + input.readMessage( + getSecretManagerKeySourceFieldBuilder().getBuilder(), extensionRegistry); + secretSourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getDrmSystemsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int encryptionModeCase_ = 0; + private java.lang.Object encryptionMode_; + + public EncryptionModeCase getEncryptionModeCase() { + return EncryptionModeCase.forNumber(encryptionModeCase_); + } + + public Builder clearEncryptionMode() { + encryptionModeCase_ = 0; + encryptionMode_ = null; + onChanged(); + return this; + } + + private int secretSourceCase_ = 0; + private java.lang.Object secretSource_; + + public SecretSourceCase getSecretSourceCase() { + return SecretSourceCase.forNumber(secretSourceCase_); + } + + public Builder clearSecretSource() { + secretSourceCase_ = 0; + secretSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Required. Identifier for this set of encryption options.
+     * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Identifier for this set of encryption options.
+     * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Identifier for this set of encryption options.
+     * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Identifier for this set of encryption options.
+     * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Identifier for this set of encryption options.
+     * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder> + aes128Builder_; + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return Whether the aes128 field is set. + */ + @java.lang.Override + public boolean hasAes128() { + return encryptionModeCase_ == 3; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return The aes128. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption getAes128() { + if (aes128Builder_ == null) { + if (encryptionModeCase_ == 3) { + return (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance(); + } else { + if (encryptionModeCase_ == 3) { + return aes128Builder_.getMessage(); + } + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + public Builder setAes128( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption value) { + if (aes128Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionMode_ = value; + onChanged(); + } else { + aes128Builder_.setMessage(value); + } + encryptionModeCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + public Builder setAes128( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder builderForValue) { + if (aes128Builder_ == null) { + encryptionMode_ = builderForValue.build(); + onChanged(); + } else { + aes128Builder_.setMessage(builderForValue.build()); + } + encryptionModeCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + public Builder mergeAes128( + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption value) { + if (aes128Builder_ == null) { + if (encryptionModeCase_ == 3 + && encryptionMode_ + != com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance()) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.newBuilder( + (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) + encryptionMode_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionMode_ = value; + } + onChanged(); + } else { + if (encryptionModeCase_ == 3) { + aes128Builder_.mergeFrom(value); + } else { + aes128Builder_.setMessage(value); + } + } + encryptionModeCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + public Builder clearAes128() { + if (aes128Builder_ == null) { + if (encryptionModeCase_ == 3) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + onChanged(); + } + } else { + if (encryptionModeCase_ == 3) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + } + aes128Builder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder + getAes128Builder() { + return getAes128FieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder + getAes128OrBuilder() { + if ((encryptionModeCase_ == 3) && (aes128Builder_ != null)) { + return aes128Builder_.getMessageOrBuilder(); + } else { + if (encryptionModeCase_ == 3) { + return (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for AES-128 encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder> + getAes128FieldBuilder() { + if (aes128Builder_ == null) { + if (!(encryptionModeCase_ == 3)) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.getDefaultInstance(); + } + aes128Builder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder>( + (com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption) encryptionMode_, + getParentForChildren(), + isClean()); + encryptionMode_ = null; + } + encryptionModeCase_ = 3; + onChanged(); + return aes128Builder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder> + sampleAesBuilder_; + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return Whether the sampleAes field is set. + */ + @java.lang.Override + public boolean hasSampleAes() { + return encryptionModeCase_ == 4; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return The sampleAes. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption getSampleAes() { + if (sampleAesBuilder_ == null) { + if (encryptionModeCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance(); + } else { + if (encryptionModeCase_ == 4) { + return sampleAesBuilder_.getMessage(); + } + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + public Builder setSampleAes( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption value) { + if (sampleAesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionMode_ = value; + onChanged(); + } else { + sampleAesBuilder_.setMessage(value); + } + encryptionModeCase_ = 4; + return this; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + public Builder setSampleAes( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder + builderForValue) { + if (sampleAesBuilder_ == null) { + encryptionMode_ = builderForValue.build(); + onChanged(); + } else { + sampleAesBuilder_.setMessage(builderForValue.build()); + } + encryptionModeCase_ = 4; + return this; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + public Builder mergeSampleAes( + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption value) { + if (sampleAesBuilder_ == null) { + if (encryptionModeCase_ == 4 + && encryptionMode_ + != com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance()) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.newBuilder( + (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + encryptionMode_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionMode_ = value; + } + onChanged(); + } else { + if (encryptionModeCase_ == 4) { + sampleAesBuilder_.mergeFrom(value); + } else { + sampleAesBuilder_.setMessage(value); + } + } + encryptionModeCase_ = 4; + return this; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + public Builder clearSampleAes() { + if (sampleAesBuilder_ == null) { + if (encryptionModeCase_ == 4) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + onChanged(); + } + } else { + if (encryptionModeCase_ == 4) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + } + sampleAesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder + getSampleAesBuilder() { + return getSampleAesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder + getSampleAesOrBuilder() { + if ((encryptionModeCase_ == 4) && (sampleAesBuilder_ != null)) { + return sampleAesBuilder_.getMessageOrBuilder(); + } else { + if (encryptionModeCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for SAMPLE-AES encryption.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder> + getSampleAesFieldBuilder() { + if (sampleAesBuilder_ == null) { + if (!(encryptionModeCase_ == 4)) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption + .getDefaultInstance(); + } + sampleAesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder>( + (com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption) + encryptionMode_, + getParentForChildren(), + isClean()); + encryptionMode_ = null; + } + encryptionModeCase_ = 4; + onChanged(); + return sampleAesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder> + mpegCencBuilder_; + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return Whether the mpegCenc field is set. + */ + @java.lang.Override + public boolean hasMpegCenc() { + return encryptionModeCase_ == 5; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return The mpegCenc. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption getMpegCenc() { + if (mpegCencBuilder_ == null) { + if (encryptionModeCase_ == 5) { + return (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } else { + if (encryptionModeCase_ == 5) { + return mpegCencBuilder_.getMessage(); + } + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + public Builder setMpegCenc( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption value) { + if (mpegCencBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionMode_ = value; + onChanged(); + } else { + mpegCencBuilder_.setMessage(value); + } + encryptionModeCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + public Builder setMpegCenc( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder + builderForValue) { + if (mpegCencBuilder_ == null) { + encryptionMode_ = builderForValue.build(); + onChanged(); + } else { + mpegCencBuilder_.setMessage(builderForValue.build()); + } + encryptionModeCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + public Builder mergeMpegCenc( + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption value) { + if (mpegCencBuilder_ == null) { + if (encryptionModeCase_ == 5 + && encryptionMode_ + != com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance()) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.newBuilder( + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + encryptionMode_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionMode_ = value; + } + onChanged(); + } else { + if (encryptionModeCase_ == 5) { + mpegCencBuilder_.mergeFrom(value); + } else { + mpegCencBuilder_.setMessage(value); + } + } + encryptionModeCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + public Builder clearMpegCenc() { + if (mpegCencBuilder_ == null) { + if (encryptionModeCase_ == 5) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + onChanged(); + } + } else { + if (encryptionModeCase_ == 5) { + encryptionModeCase_ = 0; + encryptionMode_ = null; + } + mpegCencBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder + getMpegCencBuilder() { + return getMpegCencFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder + getMpegCencOrBuilder() { + if ((encryptionModeCase_ == 5) && (mpegCencBuilder_ != null)) { + return mpegCencBuilder_.getMessageOrBuilder(); + } else { + if (encryptionModeCase_ == 5) { + return (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + encryptionMode_; + } + return com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for MPEG Common Encryption (MPEG-CENC).
+     * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder> + getMpegCencFieldBuilder() { + if (mpegCencBuilder_ == null) { + if (!(encryptionModeCase_ == 5)) { + encryptionMode_ = + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption + .getDefaultInstance(); + } + mpegCencBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption.Builder, + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder>( + (com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption) + encryptionMode_, + getParentForChildren(), + isClean()); + encryptionMode_ = null; + } + encryptionModeCase_ = 5; + onChanged(); + return mpegCencBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder> + secretManagerKeySourceBuilder_; + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return Whether the secretManagerKeySource field is set. + */ + @java.lang.Override + public boolean hasSecretManagerKeySource() { + return secretSourceCase_ == 7; + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return The secretManagerKeySource. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + getSecretManagerKeySource() { + if (secretManagerKeySourceBuilder_ == null) { + if (secretSourceCase_ == 7) { + return (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + secretSource_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance(); + } else { + if (secretSourceCase_ == 7) { + return secretManagerKeySourceBuilder_.getMessage(); + } + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + public Builder setSecretManagerKeySource( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource value) { + if (secretManagerKeySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secretSource_ = value; + onChanged(); + } else { + secretManagerKeySourceBuilder_.setMessage(value); + } + secretSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + public Builder setSecretManagerKeySource( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder + builderForValue) { + if (secretManagerKeySourceBuilder_ == null) { + secretSource_ = builderForValue.build(); + onChanged(); + } else { + secretManagerKeySourceBuilder_.setMessage(builderForValue.build()); + } + secretSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + public Builder mergeSecretManagerKeySource( + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource value) { + if (secretManagerKeySourceBuilder_ == null) { + if (secretSourceCase_ == 7 + && secretSource_ + != com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance()) { + secretSource_ = + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.newBuilder( + (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + secretSource_) + .mergeFrom(value) + .buildPartial(); + } else { + secretSource_ = value; + } + onChanged(); + } else { + if (secretSourceCase_ == 7) { + secretManagerKeySourceBuilder_.mergeFrom(value); + } else { + secretManagerKeySourceBuilder_.setMessage(value); + } + } + secretSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + public Builder clearSecretManagerKeySource() { + if (secretManagerKeySourceBuilder_ == null) { + if (secretSourceCase_ == 7) { + secretSourceCase_ = 0; + secretSource_ = null; + onChanged(); + } + } else { + if (secretSourceCase_ == 7) { + secretSourceCase_ = 0; + secretSource_ = null; + } + secretManagerKeySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder + getSecretManagerKeySourceBuilder() { + return getSecretManagerKeySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder + getSecretManagerKeySourceOrBuilder() { + if ((secretSourceCase_ == 7) && (secretManagerKeySourceBuilder_ != null)) { + return secretManagerKeySourceBuilder_.getMessageOrBuilder(); + } else { + if (secretSourceCase_ == 7) { + return (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) + secretSource_; + } + return com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Keys are stored in Google Secret Manager.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder> + getSecretManagerKeySourceFieldBuilder() { + if (secretManagerKeySourceBuilder_ == null) { + if (!(secretSourceCase_ == 7)) { + secretSource_ = + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource + .getDefaultInstance(); + } + secretManagerKeySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder, + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder>( + (com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource) secretSource_, + getParentForChildren(), + isClean()); + secretSource_ = null; + } + secretSourceCase_ = 7; + onChanged(); + return secretManagerKeySourceBuilder_; + } + + private com.google.cloud.video.transcoder.v1.Encryption.DrmSystems drmSystems_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder> + drmSystemsBuilder_; + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the drmSystems field is set. + */ + public boolean hasDrmSystems() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The drmSystems. + */ + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems getDrmSystems() { + if (drmSystemsBuilder_ == null) { + return drmSystems_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance() + : drmSystems_; + } else { + return drmSystemsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDrmSystems(com.google.cloud.video.transcoder.v1.Encryption.DrmSystems value) { + if (drmSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + drmSystems_ = value; + } else { + drmSystemsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDrmSystems( + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder builderForValue) { + if (drmSystemsBuilder_ == null) { + drmSystems_ = builderForValue.build(); + } else { + drmSystemsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDrmSystems( + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems value) { + if (drmSystemsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && drmSystems_ != null + && drmSystems_ + != com.google.cloud.video.transcoder.v1.Encryption.DrmSystems + .getDefaultInstance()) { + getDrmSystemsBuilder().mergeFrom(value); + } else { + drmSystems_ = value; + } + } else { + drmSystemsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDrmSystems() { + bitField0_ = (bitField0_ & ~0x00000020); + drmSystems_ = null; + if (drmSystemsBuilder_ != null) { + drmSystemsBuilder_.dispose(); + drmSystemsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder + getDrmSystemsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDrmSystemsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder + getDrmSystemsOrBuilder() { + if (drmSystemsBuilder_ != null) { + return drmSystemsBuilder_.getMessageOrBuilder(); + } else { + return drmSystems_ == null + ? com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.getDefaultInstance() + : drmSystems_; + } + } + /** + * + * + *
+     * Required. DRM system(s) to use; at least one must be specified. If a
+     * DRM system is omitted, it is considered disabled.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder> + getDrmSystemsFieldBuilder() { + if (drmSystemsBuilder_ == null) { + drmSystemsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems.Builder, + com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder>( + getDrmSystems(), getParentForChildren(), isClean()); + drmSystems_ = null; + } + return drmSystemsBuilder_; + } + + @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.video.transcoder.v1.Encryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Encryption) + private static final com.google.cloud.video.transcoder.v1.Encryption DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Encryption(); + } + + public static com.google.cloud.video.transcoder.v1.Encryption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Encryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Encryption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/EncryptionOrBuilder.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/EncryptionOrBuilder.java new file mode 100644 index 000000000000..0b45202153b7 --- /dev/null +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/EncryptionOrBuilder.java @@ -0,0 +1,247 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/transcoder/v1/resources.proto + +package com.google.cloud.video.transcoder.v1; + +public interface EncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Encryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Identifier for this set of encryption options.
+   * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Required. Identifier for this set of encryption options.
+   * 
+ * + * string id = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return Whether the aes128 field is set. + */ + boolean hasAes128(); + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + * + * @return The aes128. + */ + com.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption getAes128(); + /** + * + * + *
+   * Configuration for AES-128 encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3; + */ + com.google.cloud.video.transcoder.v1.Encryption.Aes128EncryptionOrBuilder getAes128OrBuilder(); + + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return Whether the sampleAes field is set. + */ + boolean hasSampleAes(); + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + * + * @return The sampleAes. + */ + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption getSampleAes(); + /** + * + * + *
+   * Configuration for SAMPLE-AES encryption.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4; + */ + com.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryptionOrBuilder + getSampleAesOrBuilder(); + + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return Whether the mpegCenc field is set. + */ + boolean hasMpegCenc(); + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + * + * @return The mpegCenc. + */ + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption getMpegCenc(); + /** + * + * + *
+   * Configuration for MPEG Common Encryption (MPEG-CENC).
+   * 
+ * + * .google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5; + */ + com.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryptionOrBuilder + getMpegCencOrBuilder(); + + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return Whether the secretManagerKeySource field is set. + */ + boolean hasSecretManagerKeySource(); + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + * + * @return The secretManagerKeySource. + */ + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource getSecretManagerKeySource(); + /** + * + * + *
+   * Keys are stored in Google Secret Manager.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7; + * + */ + com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSourceOrBuilder + getSecretManagerKeySourceOrBuilder(); + + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the drmSystems field is set. + */ + boolean hasDrmSystems(); + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The drmSystems. + */ + com.google.cloud.video.transcoder.v1.Encryption.DrmSystems getDrmSystems(); + /** + * + * + *
+   * Required. DRM system(s) to use; at least one must be specified. If a
+   * DRM system is omitted, it is considered disabled.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.transcoder.v1.Encryption.DrmSystemsOrBuilder getDrmSystemsOrBuilder(); + + com.google.cloud.video.transcoder.v1.Encryption.EncryptionModeCase getEncryptionModeCase(); + + com.google.cloud.video.transcoder.v1.Encryption.SecretSourceCase getSecretSourceCase(); +} diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Job.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Job.java index a27819899272..c853f4fbfdd8 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Job.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Job.java @@ -43,6 +43,7 @@ private Job() { outputUri_ = ""; state_ = 0; mode_ = 0; + optimization_ = 0; } @java.lang.Override @@ -445,6 +446,166 @@ private ProcessingMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.video.transcoder.v1.Job.ProcessingMode) } + /** + * + * + *
+   * The optimization strategy of the job. The default is `AUTODETECT`.
+   * 
+ * + * Protobuf enum {@code google.cloud.video.transcoder.v1.Job.OptimizationStrategy} + */ + public enum OptimizationStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The optimization strategy is not specified.
+     * 
+ * + * OPTIMIZATION_STRATEGY_UNSPECIFIED = 0; + */ + OPTIMIZATION_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
+     * Prioritize job processing speed.
+     * 
+ * + * AUTODETECT = 1; + */ + AUTODETECT(1), + /** + * + * + *
+     * Disable all optimizations.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The optimization strategy is not specified.
+     * 
+ * + * OPTIMIZATION_STRATEGY_UNSPECIFIED = 0; + */ + public static final int OPTIMIZATION_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Prioritize job processing speed.
+     * 
+ * + * AUTODETECT = 1; + */ + public static final int AUTODETECT_VALUE = 1; + /** + * + * + *
+     * Disable all optimizations.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptimizationStrategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OptimizationStrategy forNumber(int value) { + switch (value) { + case 0: + return OPTIMIZATION_STRATEGY_UNSPECIFIED; + case 1: + return AUTODETECT; + case 2: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OptimizationStrategy findValueByNumber(int number) { + return OptimizationStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.Job.getDescriptor().getEnumTypes().get(2); + } + + private static final OptimizationStrategy[] VALUES = values(); + + public static OptimizationStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OptimizationStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.video.transcoder.v1.Job.OptimizationStrategy) + } + private int jobConfigCase_ = 0; @SuppressWarnings("serial") @@ -1199,6 +1360,70 @@ public com.google.cloud.video.transcoder.v1.Job.ProcessingMode getMode() { : result; } + public static final int BATCH_MODE_PRIORITY_FIELD_NUMBER = 21; + private int batchModePriority_ = 0; + /** + * + * + *
+   * The processing priority of a batch job.
+   * This field can only be set for batch mode jobs. The default value is 0.
+   * This value cannot be negative. Higher values correspond to higher
+   * priorities for the job.
+   * 
+ * + * int32 batch_mode_priority = 21; + * + * @return The batchModePriority. + */ + @java.lang.Override + public int getBatchModePriority() { + return batchModePriority_; + } + + public static final int OPTIMIZATION_FIELD_NUMBER = 22; + private int optimization_ = 0; + /** + * + * + *
+   * Optional. The optimization strategy of the job. The default is
+   * `AUTODETECT`.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for optimization. + */ + @java.lang.Override + public int getOptimizationValue() { + return optimization_; + } + /** + * + * + *
+   * Optional. The optimization strategy of the job. The default is
+   * `AUTODETECT`.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The optimization. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy getOptimization() { + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy result = + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy.forNumber(optimization_); + return result == null + ? com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1255,6 +1480,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(20, mode_); } + if (batchModePriority_ != 0) { + output.writeInt32(21, batchModePriority_); + } + if (optimization_ + != com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy + .OPTIMIZATION_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(22, optimization_); + } getUnknownFields().writeTo(output); } @@ -1316,6 +1550,15 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, mode_); } + if (batchModePriority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, batchModePriority_); + } + if (optimization_ + != com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy + .OPTIMIZATION_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, optimization_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1354,6 +1597,8 @@ public boolean equals(final java.lang.Object obj) { if (!getError().equals(other.getError())) return false; } if (mode_ != other.mode_) return false; + if (getBatchModePriority() != other.getBatchModePriority()) return false; + if (optimization_ != other.optimization_) return false; if (!getJobConfigCase().equals(other.getJobConfigCase())) return false; switch (jobConfigCase_) { case 4: @@ -1408,6 +1653,10 @@ public int hashCode() { } hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; + hash = (37 * hash) + BATCH_MODE_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getBatchModePriority(); + hash = (37 * hash) + OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + optimization_; switch (jobConfigCase_) { case 4: hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; @@ -1609,6 +1858,8 @@ public Builder clear() { errorBuilder_ = null; } mode_ = 0; + batchModePriority_ = 0; + optimization_ = 0; jobConfigCase_ = 0; jobConfig_ = null; return this; @@ -1682,6 +1933,12 @@ private void buildPartial0(com.google.cloud.video.transcoder.v1.Job result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.mode_ = mode_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.batchModePriority_ = batchModePriority_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.optimization_ = optimization_; + } } private void buildPartialOneofs(com.google.cloud.video.transcoder.v1.Job result) { @@ -1775,6 +2032,12 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Job other) { if (other.mode_ != 0) { setModeValue(other.getModeValue()); } + if (other.getBatchModePriority() != 0) { + setBatchModePriority(other.getBatchModePriority()); + } + if (other.optimization_ != 0) { + setOptimizationValue(other.getOptimizationValue()); + } switch (other.getJobConfigCase()) { case TEMPLATE_ID: { @@ -1904,6 +2167,18 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 160 + case 168: + { + batchModePriority_ = input.readInt32(); + bitField0_ |= 0x00002000; + break; + } // case 168 + case 176: + { + optimization_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3863,6 +4138,176 @@ public Builder clearMode() { return this; } + private int batchModePriority_; + /** + * + * + *
+     * The processing priority of a batch job.
+     * This field can only be set for batch mode jobs. The default value is 0.
+     * This value cannot be negative. Higher values correspond to higher
+     * priorities for the job.
+     * 
+ * + * int32 batch_mode_priority = 21; + * + * @return The batchModePriority. + */ + @java.lang.Override + public int getBatchModePriority() { + return batchModePriority_; + } + /** + * + * + *
+     * The processing priority of a batch job.
+     * This field can only be set for batch mode jobs. The default value is 0.
+     * This value cannot be negative. Higher values correspond to higher
+     * priorities for the job.
+     * 
+ * + * int32 batch_mode_priority = 21; + * + * @param value The batchModePriority to set. + * @return This builder for chaining. + */ + public Builder setBatchModePriority(int value) { + + batchModePriority_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * The processing priority of a batch job.
+     * This field can only be set for batch mode jobs. The default value is 0.
+     * This value cannot be negative. Higher values correspond to higher
+     * priorities for the job.
+     * 
+ * + * int32 batch_mode_priority = 21; + * + * @return This builder for chaining. + */ + public Builder clearBatchModePriority() { + bitField0_ = (bitField0_ & ~0x00002000); + batchModePriority_ = 0; + onChanged(); + return this; + } + + private int optimization_ = 0; + /** + * + * + *
+     * Optional. The optimization strategy of the job. The default is
+     * `AUTODETECT`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for optimization. + */ + @java.lang.Override + public int getOptimizationValue() { + return optimization_; + } + /** + * + * + *
+     * Optional. The optimization strategy of the job. The default is
+     * `AUTODETECT`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for optimization to set. + * @return This builder for chaining. + */ + public Builder setOptimizationValue(int value) { + optimization_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The optimization strategy of the job. The default is
+     * `AUTODETECT`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The optimization. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy getOptimization() { + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy result = + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy.forNumber(optimization_); + return result == null + ? com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The optimization strategy of the job. The default is
+     * `AUTODETECT`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The optimization to set. + * @return This builder for chaining. + */ + public Builder setOptimization( + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + optimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The optimization strategy of the job. The default is
+     * `AUTODETECT`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOptimization() { + bitField0_ = (bitField0_ & ~0x00004000); + optimization_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfig.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfig.java index 8bafbd273514..b1866f672759 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfig.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfig.java @@ -46,6 +46,7 @@ private JobConfig() { adBreaks_ = java.util.Collections.emptyList(); spriteSheets_ = java.util.Collections.emptyList(); overlays_ = java.util.Collections.emptyList(); + encryptions_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -761,6 +762,93 @@ public com.google.cloud.video.transcoder.v1.OverlayOrBuilder getOverlaysOrBuilde return overlays_.get(index); } + public static final int ENCRYPTIONS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List encryptions_; + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + @java.lang.Override + public java.util.List getEncryptionsList() { + return encryptions_; + } + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + @java.lang.Override + public java.util.List + getEncryptionsOrBuilderList() { + return encryptions_; + } + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + @java.lang.Override + public int getEncryptionsCount() { + return encryptions_.size(); + } + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Encryption getEncryptions(int index) { + return encryptions_.get(index); + } + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.EncryptionOrBuilder getEncryptionsOrBuilder( + int index) { + return encryptions_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -805,6 +893,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < overlays_.size(); i++) { output.writeMessage(10, overlays_.get(i)); } + for (int i = 0; i < encryptions_.size(); i++) { + output.writeMessage(11, encryptions_.get(i)); + } getUnknownFields().writeTo(output); } @@ -845,6 +936,9 @@ public int getSerializedSize() { for (int i = 0; i < overlays_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, overlays_.get(i)); } + for (int i = 0; i < encryptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, encryptions_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -877,6 +971,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getSpriteSheetsList().equals(other.getSpriteSheetsList())) return false; if (!getOverlaysList().equals(other.getOverlaysList())) return false; + if (!getEncryptionsList().equals(other.getEncryptionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -928,6 +1023,10 @@ public int hashCode() { hash = (37 * hash) + OVERLAYS_FIELD_NUMBER; hash = (53 * hash) + getOverlaysList().hashCode(); } + if (getEncryptionsCount() > 0) { + hash = (37 * hash) + ENCRYPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1133,6 +1232,13 @@ public Builder clear() { overlaysBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + if (encryptionsBuilder_ == null) { + encryptions_ = java.util.Collections.emptyList(); + } else { + encryptions_ = null; + encryptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -1241,6 +1347,15 @@ private void buildPartialRepeatedFields(com.google.cloud.video.transcoder.v1.Job } else { result.overlays_ = overlaysBuilder_.build(); } + if (encryptionsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + encryptions_ = java.util.Collections.unmodifiableList(encryptions_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.encryptions_ = encryptions_; + } else { + result.encryptions_ = encryptionsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.video.transcoder.v1.JobConfig result) { @@ -1523,6 +1638,33 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.JobConfig other) { } } } + if (encryptionsBuilder_ == null) { + if (!other.encryptions_.isEmpty()) { + if (encryptions_.isEmpty()) { + encryptions_ = other.encryptions_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureEncryptionsIsMutable(); + encryptions_.addAll(other.encryptions_); + } + onChanged(); + } + } else { + if (!other.encryptions_.isEmpty()) { + if (encryptionsBuilder_.isEmpty()) { + encryptionsBuilder_.dispose(); + encryptionsBuilder_ = null; + encryptions_ = other.encryptions_; + bitField0_ = (bitField0_ & ~0x00000400); + encryptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEncryptionsFieldBuilder() + : null; + } else { + encryptionsBuilder_.addAllMessages(other.encryptions_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1668,6 +1810,20 @@ public Builder mergeFrom( } break; } // case 82 + case 90: + { + com.google.cloud.video.transcoder.v1.Encryption m = + input.readMessage( + com.google.cloud.video.transcoder.v1.Encryption.parser(), + extensionRegistry); + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + encryptions_.add(m); + } else { + encryptionsBuilder_.addMessage(m); + } + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4958,6 +5114,416 @@ public com.google.cloud.video.transcoder.v1.Overlay.Builder addOverlaysBuilder(i return overlaysBuilder_; } + private java.util.List encryptions_ = + java.util.Collections.emptyList(); + + private void ensureEncryptionsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + encryptions_ = + new java.util.ArrayList(encryptions_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Builder, + com.google.cloud.video.transcoder.v1.EncryptionOrBuilder> + encryptionsBuilder_; + + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public java.util.List getEncryptionsList() { + if (encryptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(encryptions_); + } else { + return encryptionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public int getEncryptionsCount() { + if (encryptionsBuilder_ == null) { + return encryptions_.size(); + } else { + return encryptionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public com.google.cloud.video.transcoder.v1.Encryption getEncryptions(int index) { + if (encryptionsBuilder_ == null) { + return encryptions_.get(index); + } else { + return encryptionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder setEncryptions( + int index, com.google.cloud.video.transcoder.v1.Encryption value) { + if (encryptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionsIsMutable(); + encryptions_.set(index, value); + onChanged(); + } else { + encryptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder setEncryptions( + int index, com.google.cloud.video.transcoder.v1.Encryption.Builder builderForValue) { + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + encryptions_.set(index, builderForValue.build()); + onChanged(); + } else { + encryptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder addEncryptions(com.google.cloud.video.transcoder.v1.Encryption value) { + if (encryptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionsIsMutable(); + encryptions_.add(value); + onChanged(); + } else { + encryptionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder addEncryptions( + int index, com.google.cloud.video.transcoder.v1.Encryption value) { + if (encryptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionsIsMutable(); + encryptions_.add(index, value); + onChanged(); + } else { + encryptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder addEncryptions( + com.google.cloud.video.transcoder.v1.Encryption.Builder builderForValue) { + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + encryptions_.add(builderForValue.build()); + onChanged(); + } else { + encryptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder addEncryptions( + int index, com.google.cloud.video.transcoder.v1.Encryption.Builder builderForValue) { + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + encryptions_.add(index, builderForValue.build()); + onChanged(); + } else { + encryptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder addAllEncryptions( + java.lang.Iterable values) { + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, encryptions_); + onChanged(); + } else { + encryptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder clearEncryptions() { + if (encryptionsBuilder_ == null) { + encryptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + encryptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public Builder removeEncryptions(int index) { + if (encryptionsBuilder_ == null) { + ensureEncryptionsIsMutable(); + encryptions_.remove(index); + onChanged(); + } else { + encryptionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Builder getEncryptionsBuilder( + int index) { + return getEncryptionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public com.google.cloud.video.transcoder.v1.EncryptionOrBuilder getEncryptionsOrBuilder( + int index) { + if (encryptionsBuilder_ == null) { + return encryptions_.get(index); + } else { + return encryptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public java.util.List + getEncryptionsOrBuilderList() { + if (encryptionsBuilder_ != null) { + return encryptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(encryptions_); + } + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Builder addEncryptionsBuilder() { + return getEncryptionsFieldBuilder() + .addBuilder(com.google.cloud.video.transcoder.v1.Encryption.getDefaultInstance()); + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public com.google.cloud.video.transcoder.v1.Encryption.Builder addEncryptionsBuilder( + int index) { + return getEncryptionsFieldBuilder() + .addBuilder(index, com.google.cloud.video.transcoder.v1.Encryption.getDefaultInstance()); + } + /** + * + * + *
+     * List of encryption configurations for the content.
+     * Each configuration has an ID. Specify this ID in the
+     * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+     * field to indicate the configuration to use for that `MuxStream` output.
+     * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + public java.util.List + getEncryptionsBuilderList() { + return getEncryptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Builder, + com.google.cloud.video.transcoder.v1.EncryptionOrBuilder> + getEncryptionsFieldBuilder() { + if (encryptionsBuilder_ == null) { + encryptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Encryption, + com.google.cloud.video.transcoder.v1.Encryption.Builder, + com.google.cloud.video.transcoder.v1.EncryptionOrBuilder>( + encryptions_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + encryptions_ = null; + } + return encryptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfigOrBuilder.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfigOrBuilder.java index aa2b794e5fdc..6de557780c94 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfigOrBuilder.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobConfigOrBuilder.java @@ -529,4 +529,71 @@ com.google.cloud.video.transcoder.v1.ElementaryStreamOrBuilder getElementaryStre * repeated .google.cloud.video.transcoder.v1.Overlay overlays = 10; */ com.google.cloud.video.transcoder.v1.OverlayOrBuilder getOverlaysOrBuilder(int index); + + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + java.util.List getEncryptionsList(); + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + com.google.cloud.video.transcoder.v1.Encryption getEncryptions(int index); + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + int getEncryptionsCount(); + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + java.util.List + getEncryptionsOrBuilderList(); + /** + * + * + *
+   * List of encryption configurations for the content.
+   * Each configuration has an ID. Specify this ID in the
+   * [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id]
+   * field to indicate the configuration to use for that `MuxStream` output.
+   * 
+ * + * repeated .google.cloud.video.transcoder.v1.Encryption encryptions = 11; + */ + com.google.cloud.video.transcoder.v1.EncryptionOrBuilder getEncryptionsOrBuilder(int index); } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobOrBuilder.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobOrBuilder.java index 077f92f98623..fd5a96ecfa25 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobOrBuilder.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobOrBuilder.java @@ -485,5 +485,52 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.video.transcoder.v1.Job.ProcessingMode getMode(); + /** + * + * + *
+   * The processing priority of a batch job.
+   * This field can only be set for batch mode jobs. The default value is 0.
+   * This value cannot be negative. Higher values correspond to higher
+   * priorities for the job.
+   * 
+ * + * int32 batch_mode_priority = 21; + * + * @return The batchModePriority. + */ + int getBatchModePriority(); + + /** + * + * + *
+   * Optional. The optimization strategy of the job. The default is
+   * `AUTODETECT`.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for optimization. + */ + int getOptimizationValue(); + /** + * + * + *
+   * Optional. The optimization strategy of the job. The default is
+   * `AUTODETECT`.
+   * 
+ * + * + * .google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The optimization. + */ + com.google.cloud.video.transcoder.v1.Job.OptimizationStrategy getOptimization(); + com.google.cloud.video.transcoder.v1.Job.JobConfigCase getJobConfigCase(); } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Manifest.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Manifest.java index 17588a8d8af3..06d19bd2c6e2 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Manifest.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/Manifest.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The manifest type can be either `HLS` or `DASH`.
+   * The manifest type, which corresponds to the adaptive streaming format used.
    * 
* * Protobuf enum {@code google.cloud.video.transcoder.v1.Manifest.ManifestType} @@ -88,7 +88,7 @@ public enum ManifestType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Create `HLS` manifest. The corresponding file extension is `.m3u8`.
+     * Create an HLS manifest. The corresponding file extension is `.m3u8`.
      * 
* * HLS = 1; @@ -98,7 +98,7 @@ public enum ManifestType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Create `DASH` manifest. The corresponding file extension is `.mpd`.
+     * Create an MPEG-DASH manifest. The corresponding file extension is `.mpd`.
      * 
* * DASH = 2; @@ -121,7 +121,7 @@ public enum ManifestType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Create `HLS` manifest. The corresponding file extension is `.m3u8`.
+     * Create an HLS manifest. The corresponding file extension is `.m3u8`.
      * 
* * HLS = 1; @@ -131,7 +131,7 @@ public enum ManifestType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Create `DASH` manifest. The corresponding file extension is `.mpd`.
+     * Create an MPEG-DASH manifest. The corresponding file extension is `.mpd`.
      * 
* * DASH = 2; @@ -221,6 +221,868 @@ private ManifestType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.video.transcoder.v1.Manifest.ManifestType) } + public interface DashConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.transcoder.v1.Manifest.DashConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The segment reference scheme for a `DASH` manifest. The default is
+     * `SEGMENT_LIST`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The enum numeric value on the wire for segmentReferenceScheme. + */ + int getSegmentReferenceSchemeValue(); + /** + * + * + *
+     * The segment reference scheme for a `DASH` manifest. The default is
+     * `SEGMENT_LIST`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The segmentReferenceScheme. + */ + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + getSegmentReferenceScheme(); + } + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Manifest.DashConfig} + */ + public static final class DashConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.transcoder.v1.Manifest.DashConfig) + DashConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DashConfig.newBuilder() to construct. + private DashConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DashConfig() { + segmentReferenceScheme_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DashConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.class, + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder.class); + } + + /** + * + * + *
+     * The segment reference scheme for a `DASH` manifest.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme} + */ + public enum SegmentReferenceScheme implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The segment reference scheme is not specified.
+       * 
+ * + * SEGMENT_REFERENCE_SCHEME_UNSPECIFIED = 0; + */ + SEGMENT_REFERENCE_SCHEME_UNSPECIFIED(0), + /** + * + * + *
+       * Lists the URLs of media files for each segment.
+       * 
+ * + * SEGMENT_LIST = 1; + */ + SEGMENT_LIST(1), + /** + * + * + *
+       * Lists each segment from a template with $Number$ variable.
+       * 
+ * + * SEGMENT_TEMPLATE_NUMBER = 2; + */ + SEGMENT_TEMPLATE_NUMBER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The segment reference scheme is not specified.
+       * 
+ * + * SEGMENT_REFERENCE_SCHEME_UNSPECIFIED = 0; + */ + public static final int SEGMENT_REFERENCE_SCHEME_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Lists the URLs of media files for each segment.
+       * 
+ * + * SEGMENT_LIST = 1; + */ + public static final int SEGMENT_LIST_VALUE = 1; + /** + * + * + *
+       * Lists each segment from a template with $Number$ variable.
+       * 
+ * + * SEGMENT_TEMPLATE_NUMBER = 2; + */ + public static final int SEGMENT_TEMPLATE_NUMBER_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SegmentReferenceScheme valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SegmentReferenceScheme forNumber(int value) { + switch (value) { + case 0: + return SEGMENT_REFERENCE_SCHEME_UNSPECIFIED; + case 1: + return SEGMENT_LIST; + case 2: + return SEGMENT_TEMPLATE_NUMBER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SegmentReferenceScheme findValueByNumber(int number) { + return SegmentReferenceScheme.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SegmentReferenceScheme[] VALUES = values(); + + public static SegmentReferenceScheme valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SegmentReferenceScheme(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme) + } + + public static final int SEGMENT_REFERENCE_SCHEME_FIELD_NUMBER = 1; + private int segmentReferenceScheme_ = 0; + /** + * + * + *
+     * The segment reference scheme for a `DASH` manifest. The default is
+     * `SEGMENT_LIST`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The enum numeric value on the wire for segmentReferenceScheme. + */ + @java.lang.Override + public int getSegmentReferenceSchemeValue() { + return segmentReferenceScheme_; + } + /** + * + * + *
+     * The segment reference scheme for a `DASH` manifest. The default is
+     * `SEGMENT_LIST`.
+     * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The segmentReferenceScheme. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + getSegmentReferenceScheme() { + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme result = + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme.forNumber( + segmentReferenceScheme_); + return result == null + ? com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + .UNRECOGNIZED + : result; + } + + 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 (segmentReferenceScheme_ + != com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + .SEGMENT_REFERENCE_SCHEME_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, segmentReferenceScheme_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segmentReferenceScheme_ + != com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + .SEGMENT_REFERENCE_SCHEME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, segmentReferenceScheme_); + } + size += getUnknownFields().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.video.transcoder.v1.Manifest.DashConfig)) { + return super.equals(obj); + } + com.google.cloud.video.transcoder.v1.Manifest.DashConfig other = + (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) obj; + + if (segmentReferenceScheme_ != other.segmentReferenceScheme_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SEGMENT_REFERENCE_SCHEME_FIELD_NUMBER; + hash = (53 * hash) + segmentReferenceScheme_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig 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.video.transcoder.v1.Manifest.DashConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig 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.video.transcoder.v1.Manifest.DashConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig 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.video.transcoder.v1.Manifest.DashConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig 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.video.transcoder.v1.Manifest.DashConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig 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.video.transcoder.v1.Manifest.DashConfig 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; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.video.transcoder.v1.Manifest.DashConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.transcoder.v1.Manifest.DashConfig) + com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.class, + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder.class); + } + + // Construct using com.google.cloud.video.transcoder.v1.Manifest.DashConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + segmentReferenceScheme_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.transcoder.v1.ResourcesProto + .internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig getDefaultInstanceForType() { + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig build() { + com.google.cloud.video.transcoder.v1.Manifest.DashConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig buildPartial() { + com.google.cloud.video.transcoder.v1.Manifest.DashConfig result = + new com.google.cloud.video.transcoder.v1.Manifest.DashConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.transcoder.v1.Manifest.DashConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.segmentReferenceScheme_ = segmentReferenceScheme_; + } + } + + @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.video.transcoder.v1.Manifest.DashConfig) { + return mergeFrom((com.google.cloud.video.transcoder.v1.Manifest.DashConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Manifest.DashConfig other) { + if (other == com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance()) + return this; + if (other.segmentReferenceScheme_ != 0) { + setSegmentReferenceSchemeValue(other.getSegmentReferenceSchemeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + segmentReferenceScheme_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int segmentReferenceScheme_ = 0; + /** + * + * + *
+       * The segment reference scheme for a `DASH` manifest. The default is
+       * `SEGMENT_LIST`.
+       * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The enum numeric value on the wire for segmentReferenceScheme. + */ + @java.lang.Override + public int getSegmentReferenceSchemeValue() { + return segmentReferenceScheme_; + } + /** + * + * + *
+       * The segment reference scheme for a `DASH` manifest. The default is
+       * `SEGMENT_LIST`.
+       * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @param value The enum numeric value on the wire for segmentReferenceScheme to set. + * @return This builder for chaining. + */ + public Builder setSegmentReferenceSchemeValue(int value) { + segmentReferenceScheme_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The segment reference scheme for a `DASH` manifest. The default is
+       * `SEGMENT_LIST`.
+       * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return The segmentReferenceScheme. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + getSegmentReferenceScheme() { + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme result = + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + .forNumber(segmentReferenceScheme_); + return result == null + ? com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The segment reference scheme for a `DASH` manifest. The default is
+       * `SEGMENT_LIST`.
+       * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @param value The segmentReferenceScheme to set. + * @return This builder for chaining. + */ + public Builder setSegmentReferenceScheme( + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + segmentReferenceScheme_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The segment reference scheme for a `DASH` manifest. The default is
+       * `SEGMENT_LIST`.
+       * 
+ * + * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme segment_reference_scheme = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearSegmentReferenceScheme() { + bitField0_ = (bitField0_ & ~0x00000001); + segmentReferenceScheme_ = 0; + onChanged(); + return this; + } + + @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.video.transcoder.v1.Manifest.DashConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.transcoder.v1.Manifest.DashConfig) + private static final com.google.cloud.video.transcoder.v1.Manifest.DashConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.transcoder.v1.Manifest.DashConfig(); + } + + public static com.google.cloud.video.transcoder.v1.Manifest.DashConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DashConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.video.transcoder.v1.Manifest.DashConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int manifestConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object manifestConfig_; + + public enum ManifestConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DASH(4), + MANIFESTCONFIG_NOT_SET(0); + private final int value; + + private ManifestConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ManifestConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ManifestConfigCase forNumber(int value) { + switch (value) { + case 4: + return DASH; + case 0: + return MANIFESTCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ManifestConfigCase getManifestConfigCase() { + return ManifestConfigCase.forNumber(manifestConfigCase_); + } + public static final int FILE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -280,7 +1142,7 @@ public com.google.protobuf.ByteString getFileNameBytes() { * * *
-   * Required. Type of the manifest, can be `HLS` or `DASH`.
+   * Required. Type of the manifest.
    * 
* * @@ -297,7 +1159,7 @@ public int getTypeValue() { * * *
-   * Required. Type of the manifest, can be `HLS` or `DASH`.
+   * Required. Type of the manifest.
    * 
* * @@ -399,6 +1261,57 @@ public com.google.protobuf.ByteString getMuxStreamsBytes(int index) { return muxStreams_.getByteString(index); } + public static final int DASH_FIELD_NUMBER = 4; + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return Whether the dash field is set. + */ + @java.lang.Override + public boolean hasDash() { + return manifestConfigCase_ == 4; + } + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return The dash. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig getDash() { + if (manifestConfigCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_; + } + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder getDashOrBuilder() { + if (manifestConfigCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_; + } + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -424,6 +1337,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < muxStreams_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, muxStreams_.getRaw(i)); } + if (manifestConfigCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_); + } getUnknownFields().writeTo(output); } @@ -449,6 +1366,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMuxStreamsList().size(); } + if (manifestConfigCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -468,6 +1390,14 @@ public boolean equals(final java.lang.Object obj) { if (!getFileName().equals(other.getFileName())) return false; if (type_ != other.type_) return false; if (!getMuxStreamsList().equals(other.getMuxStreamsList())) return false; + if (!getManifestConfigCase().equals(other.getManifestConfigCase())) return false; + switch (manifestConfigCase_) { + case 4: + if (!getDash().equals(other.getDash())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -487,6 +1417,14 @@ public int hashCode() { hash = (37 * hash) + MUX_STREAMS_FIELD_NUMBER; hash = (53 * hash) + getMuxStreamsList().hashCode(); } + switch (manifestConfigCase_) { + case 4: + hash = (37 * hash) + DASH_FIELD_NUMBER; + hash = (53 * hash) + getDash().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -629,6 +1567,11 @@ public Builder clear() { fileName_ = ""; type_ = 0; muxStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (dashBuilder_ != null) { + dashBuilder_.clear(); + } + manifestConfigCase_ = 0; + manifestConfig_ = null; return this; } @@ -659,6 +1602,7 @@ public com.google.cloud.video.transcoder.v1.Manifest buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -677,6 +1621,14 @@ private void buildPartial0(com.google.cloud.video.transcoder.v1.Manifest result) } } + private void buildPartialOneofs(com.google.cloud.video.transcoder.v1.Manifest result) { + result.manifestConfigCase_ = manifestConfigCase_; + result.manifestConfig_ = this.manifestConfig_; + if (manifestConfigCase_ == 4 && dashBuilder_ != null) { + result.manifestConfig_ = dashBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -740,6 +1692,17 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.Manifest other) { } onChanged(); } + switch (other.getManifestConfigCase()) { + case DASH: + { + mergeDash(other.getDash()); + break; + } + case MANIFESTCONFIG_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -785,6 +1748,12 @@ public Builder mergeFrom( muxStreams_.add(s); break; } // case 26 + case 34: + { + input.readMessage(getDashFieldBuilder().getBuilder(), extensionRegistry); + manifestConfigCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -802,6 +1771,20 @@ public Builder mergeFrom( return this; } + private int manifestConfigCase_ = 0; + private java.lang.Object manifestConfig_; + + public ManifestConfigCase getManifestConfigCase() { + return ManifestConfigCase.forNumber(manifestConfigCase_); + } + + public Builder clearManifestConfig() { + manifestConfigCase_ = 0; + manifestConfig_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object fileName_ = ""; @@ -920,7 +1903,7 @@ public Builder setFileNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Type of the manifest, can be `HLS` or `DASH`.
+     * Required. Type of the manifest.
      * 
* * @@ -937,7 +1920,7 @@ public int getTypeValue() { * * *
-     * Required. Type of the manifest, can be `HLS` or `DASH`.
+     * Required. Type of the manifest.
      * 
* * @@ -957,7 +1940,7 @@ public Builder setTypeValue(int value) { * * *
-     * Required. Type of the manifest, can be `HLS` or `DASH`.
+     * Required. Type of the manifest.
      * 
* * @@ -978,7 +1961,7 @@ public com.google.cloud.video.transcoder.v1.Manifest.ManifestType getType() { * * *
-     * Required. Type of the manifest, can be `HLS` or `DASH`.
+     * Required. Type of the manifest.
      * 
* * @@ -1001,7 +1984,7 @@ public Builder setType(com.google.cloud.video.transcoder.v1.Manifest.ManifestTyp * * *
-     * Required. Type of the manifest, can be `HLS` or `DASH`.
+     * Required. Type of the manifest.
      * 
* * @@ -1236,6 +2219,217 @@ public Builder addMuxStreamsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Manifest.DashConfig, + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder, + com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder> + dashBuilder_; + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return Whether the dash field is set. + */ + @java.lang.Override + public boolean hasDash() { + return manifestConfigCase_ == 4; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return The dash. + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig getDash() { + if (dashBuilder_ == null) { + if (manifestConfigCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_; + } + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } else { + if (manifestConfigCase_ == 4) { + return dashBuilder_.getMessage(); + } + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + public Builder setDash(com.google.cloud.video.transcoder.v1.Manifest.DashConfig value) { + if (dashBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + manifestConfig_ = value; + onChanged(); + } else { + dashBuilder_.setMessage(value); + } + manifestConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + public Builder setDash( + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder builderForValue) { + if (dashBuilder_ == null) { + manifestConfig_ = builderForValue.build(); + onChanged(); + } else { + dashBuilder_.setMessage(builderForValue.build()); + } + manifestConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + public Builder mergeDash(com.google.cloud.video.transcoder.v1.Manifest.DashConfig value) { + if (dashBuilder_ == null) { + if (manifestConfigCase_ == 4 + && manifestConfig_ + != com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance()) { + manifestConfig_ = + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.newBuilder( + (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + manifestConfig_ = value; + } + onChanged(); + } else { + if (manifestConfigCase_ == 4) { + dashBuilder_.mergeFrom(value); + } else { + dashBuilder_.setMessage(value); + } + } + manifestConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + public Builder clearDash() { + if (dashBuilder_ == null) { + if (manifestConfigCase_ == 4) { + manifestConfigCase_ = 0; + manifestConfig_ = null; + onChanged(); + } + } else { + if (manifestConfigCase_ == 4) { + manifestConfigCase_ = 0; + manifestConfig_ = null; + } + dashBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + public com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder getDashBuilder() { + return getDashFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + @java.lang.Override + public com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder getDashOrBuilder() { + if ((manifestConfigCase_ == 4) && (dashBuilder_ != null)) { + return dashBuilder_.getMessageOrBuilder(); + } else { + if (manifestConfigCase_ == 4) { + return (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_; + } + return com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * `DASH` manifest configuration.
+     * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Manifest.DashConfig, + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder, + com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder> + getDashFieldBuilder() { + if (dashBuilder_ == null) { + if (!(manifestConfigCase_ == 4)) { + manifestConfig_ = + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.getDefaultInstance(); + } + dashBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.transcoder.v1.Manifest.DashConfig, + com.google.cloud.video.transcoder.v1.Manifest.DashConfig.Builder, + com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder>( + (com.google.cloud.video.transcoder.v1.Manifest.DashConfig) manifestConfig_, + getParentForChildren(), + isClean()); + manifestConfig_ = null; + } + manifestConfigCase_ = 4; + onChanged(); + return dashBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ManifestOrBuilder.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ManifestOrBuilder.java index 6532e38dcd23..a713b711c53a 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ManifestOrBuilder.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ManifestOrBuilder.java @@ -54,7 +54,7 @@ public interface ManifestOrBuilder * * *
-   * Required. Type of the manifest, can be `HLS` or `DASH`.
+   * Required. Type of the manifest.
    * 
* * @@ -68,7 +68,7 @@ public interface ManifestOrBuilder * * *
-   * Required. Type of the manifest, can be `HLS` or `DASH`.
+   * Required. Type of the manifest.
    * 
* * @@ -149,4 +149,41 @@ public interface ManifestOrBuilder * @return The bytes of the muxStreams at the given index. */ com.google.protobuf.ByteString getMuxStreamsBytes(int index); + + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return Whether the dash field is set. + */ + boolean hasDash(); + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + * + * @return The dash. + */ + com.google.cloud.video.transcoder.v1.Manifest.DashConfig getDash(); + /** + * + * + *
+   * `DASH` manifest configuration.
+   * 
+ * + * .google.cloud.video.transcoder.v1.Manifest.DashConfig dash = 4; + */ + com.google.cloud.video.transcoder.v1.Manifest.DashConfigOrBuilder getDashOrBuilder(); + + com.google.cloud.video.transcoder.v1.Manifest.ManifestConfigCase getManifestConfigCase(); } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStream.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStream.java index 0510d511dfbf..9a76e3bc3e2a 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStream.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStream.java @@ -42,6 +42,7 @@ private MuxStream() { fileName_ = ""; container_ = ""; elementaryStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + encryptionId_ = ""; } @java.lang.Override @@ -365,6 +366,59 @@ public com.google.cloud.video.transcoder.v1.SegmentSettings getSegmentSettings() : segmentSettings_; } + public static final int ENCRYPTION_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object encryptionId_ = ""; + /** + * + * + *
+   * Identifier of the encryption configuration to use. If omitted, output will
+   * be unencrypted.
+   * 
+ * + * string encryption_id = 7; + * + * @return The encryptionId. + */ + @java.lang.Override + public java.lang.String getEncryptionId() { + java.lang.Object ref = encryptionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encryptionId_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier of the encryption configuration to use. If omitted, output will
+   * be unencrypted.
+   * 
+ * + * string encryption_id = 7; + * + * @return The bytes for encryptionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptionIdBytes() { + java.lang.Object ref = encryptionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + encryptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -394,6 +448,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (segmentSettings_ != null) { output.writeMessage(5, getSegmentSettings()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, encryptionId_); + } getUnknownFields().writeTo(output); } @@ -423,6 +480,9 @@ public int getSerializedSize() { if (segmentSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSegmentSettings()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, encryptionId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -447,6 +507,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSegmentSettings()) { if (!getSegmentSettings().equals(other.getSegmentSettings())) return false; } + if (!getEncryptionId().equals(other.getEncryptionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -472,6 +533,8 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSegmentSettings().hashCode(); } + hash = (37 * hash) + ENCRYPTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +683,7 @@ public Builder clear() { segmentSettingsBuilder_.dispose(); segmentSettingsBuilder_ = null; } + encryptionId_ = ""; return this; } @@ -673,6 +737,9 @@ private void buildPartial0(com.google.cloud.video.transcoder.v1.MuxStream result result.segmentSettings_ = segmentSettingsBuilder_ == null ? segmentSettings_ : segmentSettingsBuilder_.build(); } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.encryptionId_ = encryptionId_; + } } @java.lang.Override @@ -748,6 +815,11 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.MuxStream other) { if (other.hasSegmentSettings()) { mergeSegmentSettings(other.getSegmentSettings()); } + if (!other.getEncryptionId().isEmpty()) { + encryptionId_ = other.encryptionId_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -805,6 +877,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 58: + { + encryptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1584,6 +1662,117 @@ public Builder clearSegmentSettings() { return segmentSettingsBuilder_; } + private java.lang.Object encryptionId_ = ""; + /** + * + * + *
+     * Identifier of the encryption configuration to use. If omitted, output will
+     * be unencrypted.
+     * 
+ * + * string encryption_id = 7; + * + * @return The encryptionId. + */ + public java.lang.String getEncryptionId() { + java.lang.Object ref = encryptionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encryptionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier of the encryption configuration to use. If omitted, output will
+     * be unencrypted.
+     * 
+ * + * string encryption_id = 7; + * + * @return The bytes for encryptionId. + */ + public com.google.protobuf.ByteString getEncryptionIdBytes() { + java.lang.Object ref = encryptionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + encryptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier of the encryption configuration to use. If omitted, output will
+     * be unencrypted.
+     * 
+ * + * string encryption_id = 7; + * + * @param value The encryptionId to set. + * @return This builder for chaining. + */ + public Builder setEncryptionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + encryptionId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier of the encryption configuration to use. If omitted, output will
+     * be unencrypted.
+     * 
+ * + * string encryption_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearEncryptionId() { + encryptionId_ = getDefaultInstance().getEncryptionId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier of the encryption configuration to use. If omitted, output will
+     * be unencrypted.
+     * 
+ * + * string encryption_id = 7; + * + * @param value The bytes for encryptionId to set. + * @return This builder for chaining. + */ + public Builder setEncryptionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStreamOrBuilder.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStreamOrBuilder.java index 7d03614423f5..0f16b94ac8db 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStreamOrBuilder.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/MuxStreamOrBuilder.java @@ -215,4 +215,31 @@ public interface MuxStreamOrBuilder * .google.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5; */ com.google.cloud.video.transcoder.v1.SegmentSettingsOrBuilder getSegmentSettingsOrBuilder(); + + /** + * + * + *
+   * Identifier of the encryption configuration to use. If omitted, output will
+   * be unencrypted.
+   * 
+ * + * string encryption_id = 7; + * + * @return The encryptionId. + */ + java.lang.String getEncryptionId(); + /** + * + * + *
+   * Identifier of the encryption configuration to use. If omitted, output will
+   * be unencrypted.
+   * 
+ * + * string encryption_id = 7; + * + * @return The bytes for encryptionId. + */ + com.google.protobuf.ByteString getEncryptionIdBytes(); } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ResourcesProto.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ResourcesProto.java index ede722aad842..9f07a952e2e5 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ResourcesProto.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ResourcesProto.java @@ -75,6 +75,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_transcoder_v1_Manifest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_transcoder_v1_Manifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_transcoder_v1_PubsubDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -187,6 +191,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_transcoder_v1_SegmentSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_transcoder_v1_SegmentSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -201,7 +245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.v1\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032\036google/protobu" + "f/duration.proto\032\037google/protobuf/timest" - + "amp.proto\032\027google/rpc/status.proto\"\320\007\n\003J" + + "amp.proto\032\027google/rpc/status.proto\"\242\t\n\003J" + "ob\022\014\n\004name\030\001 \001(\t\022\027\n\tinput_uri\030\002 \001(\tB\004\342A\001" + "\004\022\030\n\noutput_uri\030\003 \001(\tB\004\342A\001\004\022\033\n\013template_" + "id\030\004 \001(\tB\004\342A\001\004H\000\022=\n\006config\030\005 \001(\0132+.googl" @@ -217,202 +261,243 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1.Job.LabelsEntry\022\'\n\005error\030\021 \001(\0132\022.goog" + "le.rpc.StatusB\004\342A\001\003\022B\n\004mode\030\024 \001(\01624.goog" + "le.cloud.video.transcoder.v1.Job.Process" - + "ingMode\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"h\n\017ProcessingState\022 \n\034PRO" - + "CESSING_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001" - + "\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004" - + "\"m\n\016ProcessingMode\022\037\n\033PROCESSING_MODE_UN" - + "SPECIFIED\020\000\022\037\n\033PROCESSING_MODE_INTERACTI" - + "VE\020\001\022\031\n\025PROCESSING_MODE_BATCH\020\002:V\352AS\n\035tr" - + "anscoder.googleapis.com/Job\0222projects/{p" - + "roject}/locations/{location}/jobs/{job}B" - + "\014\n\njob_config\"\303\002\n\013JobTemplate\022\014\n\004name\030\001 " - + "\001(\t\022;\n\006config\030\002 \001(\0132+.google.cloud.video" - + ".transcoder.v1.JobConfig\022I\n\006labels\030\003 \003(\013" - + "29.google.cloud.video.transcoder.v1.JobT" - + "emplate.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%transco" - + "der.googleapis.com/JobTemplate\022Cprojects" - + "/{project}/locations/{location}/jobTempl" - + "ates/{job_template}\"\240\005\n\tJobConfig\0227\n\006inp" - + "uts\030\001 \003(\0132\'.google.cloud.video.transcode" - + "r.v1.Input\022=\n\tedit_list\030\002 \003(\0132*.google.c" - + "loud.video.transcoder.v1.EditAtom\022N\n\022ele" - + "mentary_streams\030\003 \003(\01322.google.cloud.vid" - + "eo.transcoder.v1.ElementaryStream\022@\n\013mux" - + "_streams\030\004 \003(\0132+.google.cloud.video.tran" - + "scoder.v1.MuxStream\022=\n\tmanifests\030\005 \003(\0132*" - + ".google.cloud.video.transcoder.v1.Manife" - + "st\0228\n\006output\030\006 \001(\0132(.google.cloud.video." - + "transcoder.v1.Output\022<\n\tad_breaks\030\007 \003(\0132" - + ").google.cloud.video.transcoder.v1.AdBre" - + "ak\022O\n\022pubsub_destination\030\010 \001(\01323.google." - + "cloud.video.transcoder.v1.PubsubDestinat" - + "ion\022D\n\rsprite_sheets\030\t \003(\0132-.google.clou" - + "d.video.transcoder.v1.SpriteSheet\022;\n\010ove" - + "rlays\030\n \003(\0132).google.cloud.video.transco" - + "der.v1.Overlay\"v\n\005Input\022\013\n\003key\030\001 \001(\t\022\013\n\003" - + "uri\030\002 \001(\t\022S\n\024preprocessing_config\030\003 \001(\0132" - + "5.google.cloud.video.transcoder.v1.Prepr" - + "ocessingConfig\"\025\n\006Output\022\013\n\003uri\030\001 \001(\t\"\221\001" - + "\n\010EditAtom\022\013\n\003key\030\001 \001(\t\022\016\n\006inputs\030\002 \003(\t\022" - + "2\n\017end_time_offset\030\003 \001(\0132\031.google.protob" - + "uf.Duration\0224\n\021start_time_offset\030\004 \001(\0132\031" - + ".google.protobuf.Duration\"?\n\007AdBreak\0224\n\021" - + "start_time_offset\030\001 \001(\0132\031.google.protobu" - + "f.Duration\"\207\002\n\020ElementaryStream\022\013\n\003key\030\004" - + " \001(\t\022E\n\014video_stream\030\001 \001(\0132-.google.clou" - + "d.video.transcoder.v1.VideoStreamH\000\022E\n\014a" - + "udio_stream\030\002 \001(\0132-.google.cloud.video.t" - + "ranscoder.v1.AudioStreamH\000\022C\n\013text_strea" - + "m\030\003 \001(\0132,.google.cloud.video.transcoder." - + "v1.TextStreamH\000B\023\n\021elementary_stream\"\247\001\n" - + "\tMuxStream\022\013\n\003key\030\001 \001(\t\022\021\n\tfile_name\030\002 \001" - + "(\t\022\021\n\tcontainer\030\003 \001(\t\022\032\n\022elementary_stre" - + "ams\030\004 \003(\t\022K\n\020segment_settings\030\005 \001(\01321.go" - + "ogle.cloud.video.transcoder.v1.SegmentSe" - + "ttings\"\307\001\n\010Manifest\022\021\n\tfile_name\030\001 \001(\t\022K" - + "\n\004type\030\002 \001(\01627.google.cloud.video.transc" - + "oder.v1.Manifest.ManifestTypeB\004\342A\001\002\022\031\n\013m" - + "ux_streams\030\003 \003(\tB\004\342A\001\002\"@\n\014ManifestType\022\035" - + "\n\031MANIFEST_TYPE_UNSPECIFIED\020\000\022\007\n\003HLS\020\001\022\010" - + "\n\004DASH\020\002\"\"\n\021PubsubDestination\022\r\n\005topic\030\001" - + " \001(\t\"\200\003\n\013SpriteSheet\022\016\n\006format\030\001 \001(\t\022\031\n\013" - + "file_prefix\030\002 \001(\tB\004\342A\001\002\022!\n\023sprite_width_" - + "pixels\030\003 \001(\005B\004\342A\001\002\022\"\n\024sprite_height_pixe" - + "ls\030\004 \001(\005B\004\342A\001\002\022\024\n\014column_count\030\005 \001(\005\022\021\n\t" - + "row_count\030\006 \001(\005\0224\n\021start_time_offset\030\007 \001" - + "(\0132\031.google.protobuf.Duration\0222\n\017end_tim" - + "e_offset\030\010 \001(\0132\031.google.protobuf.Duratio" - + "n\022\025\n\013total_count\030\t \001(\005H\000\022-\n\010interval\030\n \001" - + "(\0132\031.google.protobuf.DurationH\000\022\017\n\007quali" - + "ty\030\013 \001(\005B\025\n\023extraction_strategy\"\215\t\n\007Over" - + "lay\022>\n\005image\030\001 \001(\0132/.google.cloud.video." - + "transcoder.v1.Overlay.Image\022G\n\nanimation" - + "s\030\002 \003(\01323.google.cloud.video.transcoder." - + "v1.Overlay.Animation\032,\n\024NormalizedCoordi" - + "nate\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\032}\n\005Image\022\021\n\003u" - + "ri\030\001 \001(\tB\004\342A\001\002\022R\n\nresolution\030\002 \001(\0132>.goo" - + "gle.cloud.video.transcoder.v1.Overlay.No" - + "rmalizedCoordinate\022\r\n\005alpha\030\003 \001(\001\032\223\001\n\017An" - + "imationStatic\022J\n\002xy\030\001 \001(\0132>.google.cloud" - + ".video.transcoder.v1.Overlay.NormalizedC" - + "oordinate\0224\n\021start_time_offset\030\002 \001(\0132\031.g" - + "oogle.protobuf.Duration\032\222\002\n\rAnimationFad" - + "e\022K\n\tfade_type\030\001 \001(\01622.google.cloud.vide" - + "o.transcoder.v1.Overlay.FadeTypeB\004\342A\001\002\022J" - + "\n\002xy\030\002 \001(\0132>.google.cloud.video.transcod" - + "er.v1.Overlay.NormalizedCoordinate\0224\n\021st" - + "art_time_offset\030\003 \001(\0132\031.google.protobuf." - + "Duration\0222\n\017end_time_offset\030\004 \001(\0132\031.goog" - + "le.protobuf.Duration\032D\n\014AnimationEnd\0224\n\021" - + "start_time_offset\030\001 \001(\0132\031.google.protobu" - + "f.Duration\032\230\002\n\tAnimation\022U\n\020animation_st" - + "atic\030\001 \001(\01329.google.cloud.video.transcod" - + "er.v1.Overlay.AnimationStaticH\000\022Q\n\016anima" - + "tion_fade\030\002 \001(\01327.google.cloud.video.tra" - + "nscoder.v1.Overlay.AnimationFadeH\000\022O\n\ran" - + "imation_end\030\003 \001(\01326.google.cloud.video.t" - + "ranscoder.v1.Overlay.AnimationEndH\000B\020\n\016a" - + "nimation_type\"@\n\010FadeType\022\031\n\025FADE_TYPE_U" - + "NSPECIFIED\020\000\022\013\n\007FADE_IN\020\001\022\014\n\010FADE_OUT\020\002\"" - + "\363\n\n\023PreprocessingConfig\022J\n\005color\030\001 \001(\0132;" - + ".google.cloud.video.transcoder.v1.Prepro" - + "cessingConfig.Color\022N\n\007denoise\030\002 \001(\0132=.g" + + "ingMode\022\033\n\023batch_mode_priority\030\025 \001(\005\022V\n\014" + + "optimization\030\026 \001(\0162:.google.cloud.video." + + "transcoder.v1.Job.OptimizationStrategyB\004" + + "\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"h\n\017ProcessingState\022 \n\034PROCES" + + "SING_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n" + + "\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\"m\n" + + "\016ProcessingMode\022\037\n\033PROCESSING_MODE_UNSPE" + + "CIFIED\020\000\022\037\n\033PROCESSING_MODE_INTERACTIVE\020" + + "\001\022\031\n\025PROCESSING_MODE_BATCH\020\002\"[\n\024Optimiza" + + "tionStrategy\022%\n!OPTIMIZATION_STRATEGY_UN" + + "SPECIFIED\020\000\022\016\n\nAUTODETECT\020\001\022\014\n\010DISABLED\020" + + "\002:V\352AS\n\035transcoder.googleapis.com/Job\0222p" + + "rojects/{project}/locations/{location}/j" + + "obs/{job}B\014\n\njob_config\"\303\002\n\013JobTemplate\022" + + "\014\n\004name\030\001 \001(\t\022;\n\006config\030\002 \001(\0132+.google.c" + + "loud.video.transcoder.v1.JobConfig\022I\n\006la" + + "bels\030\003 \003(\01329.google.cloud.video.transcod" + + "er.v1.JobTemplate.LabelsEntry\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352A" + + "l\n%transcoder.googleapis.com/JobTemplate" + + "\022Cprojects/{project}/locations/{location" + + "}/jobTemplates/{job_template}\"\343\005\n\tJobCon" + + "fig\0227\n\006inputs\030\001 \003(\0132\'.google.cloud.video" + + ".transcoder.v1.Input\022=\n\tedit_list\030\002 \003(\0132" + + "*.google.cloud.video.transcoder.v1.EditA" + + "tom\022N\n\022elementary_streams\030\003 \003(\01322.google" + + ".cloud.video.transcoder.v1.ElementaryStr" + + "eam\022@\n\013mux_streams\030\004 \003(\0132+.google.cloud." + + "video.transcoder.v1.MuxStream\022=\n\tmanifes" + + "ts\030\005 \003(\0132*.google.cloud.video.transcoder" + + ".v1.Manifest\0228\n\006output\030\006 \001(\0132(.google.cl" + + "oud.video.transcoder.v1.Output\022<\n\tad_bre" + + "aks\030\007 \003(\0132).google.cloud.video.transcode" + + "r.v1.AdBreak\022O\n\022pubsub_destination\030\010 \001(\013" + + "23.google.cloud.video.transcoder.v1.Pubs" + + "ubDestination\022D\n\rsprite_sheets\030\t \003(\0132-.g" + + "oogle.cloud.video.transcoder.v1.SpriteSh" + + "eet\022;\n\010overlays\030\n \003(\0132).google.cloud.vid" + + "eo.transcoder.v1.Overlay\022A\n\013encryptions\030" + + "\013 \003(\0132,.google.cloud.video.transcoder.v1" + + ".Encryption\"v\n\005Input\022\013\n\003key\030\001 \001(\t\022\013\n\003uri" + + "\030\002 \001(\t\022S\n\024preprocessing_config\030\003 \001(\01325.g" + "oogle.cloud.video.transcoder.v1.Preproce" - + "ssingConfig.Denoise\022N\n\007deblock\030\003 \001(\0132=.g" - + "oogle.cloud.video.transcoder.v1.Preproce" - + "ssingConfig.Deblock\022J\n\005audio\030\004 \001(\0132;.goo" - + "gle.cloud.video.transcoder.v1.Preprocess" - + "ingConfig.Audio\022H\n\004crop\030\005 \001(\0132:.google.c" - + "loud.video.transcoder.v1.PreprocessingCo" - + "nfig.Crop\022F\n\003pad\030\006 \001(\01329.google.cloud.vi" - + "deo.transcoder.v1.PreprocessingConfig.Pa" - + "d\022V\n\013deinterlace\030\007 \001(\0132A.google.cloud.vi" - + "deo.transcoder.v1.PreprocessingConfig.De" - + "interlace\032A\n\005Color\022\022\n\nsaturation\030\001 \001(\001\022\020" - + "\n\010contrast\030\002 \001(\001\022\022\n\nbrightness\030\003 \001(\001\032)\n\007" - + "Denoise\022\020\n\010strength\030\001 \001(\001\022\014\n\004tune\030\002 \001(\t\032" - + ",\n\007Deblock\022\020\n\010strength\030\001 \001(\001\022\017\n\007enabled\030" - + "\002 \001(\010\032<\n\005Audio\022\014\n\004lufs\030\001 \001(\001\022\022\n\nhigh_boo" - + "st\030\002 \001(\010\022\021\n\tlow_boost\030\003 \001(\010\032\\\n\004Crop\022\022\n\nt" - + "op_pixels\030\001 \001(\005\022\025\n\rbottom_pixels\030\002 \001(\005\022\023" - + "\n\013left_pixels\030\003 \001(\005\022\024\n\014right_pixels\030\004 \001(" - + "\005\032[\n\003Pad\022\022\n\ntop_pixels\030\001 \001(\005\022\025\n\rbottom_p" - + "ixels\030\002 \001(\005\022\023\n\013left_pixels\030\003 \001(\005\022\024\n\014righ" - + "t_pixels\030\004 \001(\005\032\244\003\n\013Deinterlace\022^\n\005yadif\030" - + "\001 \001(\0132M.google.cloud.video.transcoder.v1" - + ".PreprocessingConfig.Deinterlace.YadifCo" - + "nfigH\000\022^\n\005bwdif\030\002 \001(\0132M.google.cloud.vid" - + "eo.transcoder.v1.PreprocessingConfig.Dei" - + "nterlace.BwdifConfigH\000\032p\n\013YadifConfig\022\014\n" - + "\004mode\030\001 \001(\t\022#\n\033disable_spatial_interlaci" - + "ng\030\002 \001(\010\022\016\n\006parity\030\003 \001(\t\022\036\n\026deinterlace_" - + "all_frames\030\004 \001(\010\032K\n\013BwdifConfig\022\014\n\004mode\030" - + "\001 \001(\t\022\016\n\006parity\030\002 \001(\t\022\036\n\026deinterlace_all" - + "_frames\030\003 \001(\010B\026\n\024deinterlacing_filter\"\233\014" - + "\n\013VideoStream\022O\n\004h264\030\001 \001(\0132?.google.clo" - + "ud.video.transcoder.v1.VideoStream.H264C" - + "odecSettingsH\000\022O\n\004h265\030\002 \001(\0132?.google.cl" - + "oud.video.transcoder.v1.VideoStream.H265" - + "CodecSettingsH\000\022M\n\003vp9\030\003 \001(\0132>.google.cl" - + "oud.video.transcoder.v1.VideoStream.Vp9C" - + "odecSettingsH\000\032\373\003\n\021H264CodecSettings\022\024\n\014" - + "width_pixels\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001(" - + "\005\022\030\n\nframe_rate\030\003 \001(\001B\004\342A\001\002\022\031\n\013bitrate_b" - + "ps\030\004 \001(\005B\004\342A\001\002\022\024\n\014pixel_format\030\005 \001(\t\022\031\n\021" - + "rate_control_mode\030\006 \001(\t\022\021\n\tcrf_level\030\007 \001" - + "(\005\022\026\n\016allow_open_gop\030\010 \001(\010\022\031\n\017gop_frame_" - + "count\030\t \001(\005H\000\0221\n\014gop_duration\030\n \001(\0132\031.go" - + "ogle.protobuf.DurationH\000\022\027\n\017enable_two_p" - + "ass\030\013 \001(\010\022\025\n\rvbv_size_bits\030\014 \001(\005\022\031\n\021vbv_" - + "fullness_bits\030\r \001(\005\022\025\n\rentropy_coder\030\016 \001" - + "(\t\022\021\n\tb_pyramid\030\017 \001(\010\022\025\n\rb_frame_count\030\020" - + " \001(\005\022\023\n\013aq_strength\030\021 \001(\001\022\017\n\007profile\030\022 \001" - + "(\t\022\014\n\004tune\030\023 \001(\t\022\016\n\006preset\030\024 \001(\tB\n\n\010gop_" - + "mode\032\344\003\n\021H265CodecSettings\022\024\n\014width_pixe" - + "ls\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001(\005\022\030\n\nframe" - + "_rate\030\003 \001(\001B\004\342A\001\002\022\031\n\013bitrate_bps\030\004 \001(\005B\004" - + "\342A\001\002\022\024\n\014pixel_format\030\005 \001(\t\022\031\n\021rate_contr" - + "ol_mode\030\006 \001(\t\022\021\n\tcrf_level\030\007 \001(\005\022\026\n\016allo" - + "w_open_gop\030\010 \001(\010\022\031\n\017gop_frame_count\030\t \001(" - + "\005H\000\0221\n\014gop_duration\030\n \001(\0132\031.google.proto" - + "buf.DurationH\000\022\027\n\017enable_two_pass\030\013 \001(\010\022" - + "\025\n\rvbv_size_bits\030\014 \001(\005\022\031\n\021vbv_fullness_b" - + "its\030\r \001(\005\022\021\n\tb_pyramid\030\016 \001(\010\022\025\n\rb_frame_" - + "count\030\017 \001(\005\022\023\n\013aq_strength\030\020 \001(\001\022\017\n\007prof" - + "ile\030\021 \001(\t\022\014\n\004tune\030\022 \001(\t\022\016\n\006preset\030\023 \001(\tB" - + "\n\n\010gop_mode\032\243\002\n\020Vp9CodecSettings\022\024\n\014widt" - + "h_pixels\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001(\005\022\030\n" - + "\nframe_rate\030\003 \001(\001B\004\342A\001\002\022\031\n\013bitrate_bps\030\004" - + " \001(\005B\004\342A\001\002\022\024\n\014pixel_format\030\005 \001(\t\022\031\n\021rate" - + "_control_mode\030\006 \001(\t\022\021\n\tcrf_level\030\007 \001(\005\022\031" - + "\n\017gop_frame_count\030\010 \001(\005H\000\0221\n\014gop_duratio" - + "n\030\t \001(\0132\031.google.protobuf.DurationH\000\022\017\n\007" - + "profile\030\n \001(\tB\n\n\010gop_modeB\020\n\016codec_setti" - + "ngs\"\244\003\n\013AudioStream\022\r\n\005codec\030\001 \001(\t\022\031\n\013bi" - + "trate_bps\030\002 \001(\005B\004\342A\001\002\022\025\n\rchannel_count\030\003" - + " \001(\005\022\026\n\016channel_layout\030\004 \003(\t\022K\n\007mapping\030" - + "\005 \003(\0132:.google.cloud.video.transcoder.v1" - + ".AudioStream.AudioMapping\022\031\n\021sample_rate" - + "_hertz\030\006 \001(\005\022\025\n\rlanguage_code\030\007 \001(\t\022\024\n\014d" - + "isplay_name\030\010 \001(\t\032\246\001\n\014AudioMapping\022\026\n\010at" - + "om_key\030\001 \001(\tB\004\342A\001\002\022\027\n\tinput_key\030\002 \001(\tB\004\342" - + "A\001\002\022\031\n\013input_track\030\003 \001(\005B\004\342A\001\002\022\033\n\rinput_" - + "channel\030\004 \001(\005B\004\342A\001\002\022\034\n\016output_channel\030\005 " - + "\001(\005B\004\342A\001\002\022\017\n\007gain_db\030\006 \001(\001\"\356\001\n\nTextStrea" - + "m\022\r\n\005codec\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022" - + "I\n\007mapping\030\003 \003(\01328.google.cloud.video.tr" - + "anscoder.v1.TextStream.TextMapping\022\024\n\014di" - + "splay_name\030\004 \001(\t\032Y\n\013TextMapping\022\026\n\010atom_" - + "key\030\001 \001(\tB\004\342A\001\002\022\027\n\tinput_key\030\002 \001(\tB\004\342A\001\002" - + "\022\031\n\013input_track\030\003 \001(\005B\004\342A\001\002\"i\n\017SegmentSe" - + "ttings\0223\n\020segment_duration\030\001 \001(\0132\031.googl" - + "e.protobuf.Duration\022!\n\023individual_segmen" - + "ts\030\003 \001(\010B\004\342A\001\002B~\n$com.google.cloud.video" - + ".transcoder.v1B\016ResourcesProtoP\001ZDcloud." - + "google.com/go/video/transcoder/apiv1/tra" - + "nscoderpb;transcoderpbb\006proto3" + + "ssingConfig\"\025\n\006Output\022\013\n\003uri\030\001 \001(\t\"\221\001\n\010E" + + "ditAtom\022\013\n\003key\030\001 \001(\t\022\016\n\006inputs\030\002 \003(\t\0222\n\017" + + "end_time_offset\030\003 \001(\0132\031.google.protobuf." + + "Duration\0224\n\021start_time_offset\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\"?\n\007AdBreak\0224\n\021sta" + + "rt_time_offset\030\001 \001(\0132\031.google.protobuf.D" + + "uration\"\207\002\n\020ElementaryStream\022\013\n\003key\030\004 \001(" + + "\t\022E\n\014video_stream\030\001 \001(\0132-.google.cloud.v" + + "ideo.transcoder.v1.VideoStreamH\000\022E\n\014audi" + + "o_stream\030\002 \001(\0132-.google.cloud.video.tran" + + "scoder.v1.AudioStreamH\000\022C\n\013text_stream\030\003" + + " \001(\0132,.google.cloud.video.transcoder.v1." + + "TextStreamH\000B\023\n\021elementary_stream\"\276\001\n\tMu" + + "xStream\022\013\n\003key\030\001 \001(\t\022\021\n\tfile_name\030\002 \001(\t\022" + + "\021\n\tcontainer\030\003 \001(\t\022\032\n\022elementary_streams" + + "\030\004 \003(\t\022K\n\020segment_settings\030\005 \001(\01321.googl" + + "e.cloud.video.transcoder.v1.SegmentSetti" + + "ngs\022\025\n\rencryption_id\030\007 \001(\t\"\223\004\n\010Manifest\022" + + "\021\n\tfile_name\030\001 \001(\t\022K\n\004type\030\002 \001(\01627.googl" + + "e.cloud.video.transcoder.v1.Manifest.Man" + + "ifestTypeB\004\342A\001\002\022\031\n\013mux_streams\030\003 \003(\tB\004\342A" + + "\001\002\022E\n\004dash\030\004 \001(\01325.google.cloud.video.tr" + + "anscoder.v1.Manifest.DashConfigH\000\032\357\001\n\nDa" + + "shConfig\022n\n\030segment_reference_scheme\030\001 \001" + + "(\0162L.google.cloud.video.transcoder.v1.Ma" + + "nifest.DashConfig.SegmentReferenceScheme" + + "\"q\n\026SegmentReferenceScheme\022(\n$SEGMENT_RE" + + "FERENCE_SCHEME_UNSPECIFIED\020\000\022\020\n\014SEGMENT_" + + "LIST\020\001\022\033\n\027SEGMENT_TEMPLATE_NUMBER\020\002\"@\n\014M" + + "anifestType\022\035\n\031MANIFEST_TYPE_UNSPECIFIED" + + "\020\000\022\007\n\003HLS\020\001\022\010\n\004DASH\020\002B\021\n\017manifest_config" + + "\"\"\n\021PubsubDestination\022\r\n\005topic\030\001 \001(\t\"\200\003\n" + + "\013SpriteSheet\022\016\n\006format\030\001 \001(\t\022\031\n\013file_pre" + + "fix\030\002 \001(\tB\004\342A\001\002\022!\n\023sprite_width_pixels\030\003" + + " \001(\005B\004\342A\001\002\022\"\n\024sprite_height_pixels\030\004 \001(\005" + + "B\004\342A\001\002\022\024\n\014column_count\030\005 \001(\005\022\021\n\trow_coun" + + "t\030\006 \001(\005\0224\n\021start_time_offset\030\007 \001(\0132\031.goo" + + "gle.protobuf.Duration\0222\n\017end_time_offset" + + "\030\010 \001(\0132\031.google.protobuf.Duration\022\025\n\013tot" + + "al_count\030\t \001(\005H\000\022-\n\010interval\030\n \001(\0132\031.goo" + + "gle.protobuf.DurationH\000\022\017\n\007quality\030\013 \001(\005" + + "B\025\n\023extraction_strategy\"\215\t\n\007Overlay\022>\n\005i" + + "mage\030\001 \001(\0132/.google.cloud.video.transcod" + + "er.v1.Overlay.Image\022G\n\nanimations\030\002 \003(\0132" + + "3.google.cloud.video.transcoder.v1.Overl" + + "ay.Animation\032,\n\024NormalizedCoordinate\022\t\n\001" + + "x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\032}\n\005Image\022\021\n\003uri\030\001 \001(\t" + + "B\004\342A\001\002\022R\n\nresolution\030\002 \001(\0132>.google.clou" + + "d.video.transcoder.v1.Overlay.Normalized" + + "Coordinate\022\r\n\005alpha\030\003 \001(\001\032\223\001\n\017AnimationS" + + "tatic\022J\n\002xy\030\001 \001(\0132>.google.cloud.video.t" + + "ranscoder.v1.Overlay.NormalizedCoordinat" + + "e\0224\n\021start_time_offset\030\002 \001(\0132\031.google.pr" + + "otobuf.Duration\032\222\002\n\rAnimationFade\022K\n\tfad" + + "e_type\030\001 \001(\01622.google.cloud.video.transc" + + "oder.v1.Overlay.FadeTypeB\004\342A\001\002\022J\n\002xy\030\002 \001" + + "(\0132>.google.cloud.video.transcoder.v1.Ov" + + "erlay.NormalizedCoordinate\0224\n\021start_time" + + "_offset\030\003 \001(\0132\031.google.protobuf.Duration" + + "\0222\n\017end_time_offset\030\004 \001(\0132\031.google.proto" + + "buf.Duration\032D\n\014AnimationEnd\0224\n\021start_ti" + + "me_offset\030\001 \001(\0132\031.google.protobuf.Durati" + + "on\032\230\002\n\tAnimation\022U\n\020animation_static\030\001 \001" + + "(\01329.google.cloud.video.transcoder.v1.Ov" + + "erlay.AnimationStaticH\000\022Q\n\016animation_fad" + + "e\030\002 \001(\01327.google.cloud.video.transcoder." + + "v1.Overlay.AnimationFadeH\000\022O\n\ranimation_" + + "end\030\003 \001(\01326.google.cloud.video.transcode" + + "r.v1.Overlay.AnimationEndH\000B\020\n\016animation" + + "_type\"@\n\010FadeType\022\031\n\025FADE_TYPE_UNSPECIFI" + + "ED\020\000\022\013\n\007FADE_IN\020\001\022\014\n\010FADE_OUT\020\002\"\363\n\n\023Prep" + + "rocessingConfig\022J\n\005color\030\001 \001(\0132;.google." + + "cloud.video.transcoder.v1.PreprocessingC" + + "onfig.Color\022N\n\007denoise\030\002 \001(\0132=.google.cl" + + "oud.video.transcoder.v1.PreprocessingCon" + + "fig.Denoise\022N\n\007deblock\030\003 \001(\0132=.google.cl" + + "oud.video.transcoder.v1.PreprocessingCon" + + "fig.Deblock\022J\n\005audio\030\004 \001(\0132;.google.clou" + + "d.video.transcoder.v1.PreprocessingConfi" + + "g.Audio\022H\n\004crop\030\005 \001(\0132:.google.cloud.vid" + + "eo.transcoder.v1.PreprocessingConfig.Cro" + + "p\022F\n\003pad\030\006 \001(\01329.google.cloud.video.tran" + + "scoder.v1.PreprocessingConfig.Pad\022V\n\013dei" + + "nterlace\030\007 \001(\0132A.google.cloud.video.tran" + + "scoder.v1.PreprocessingConfig.Deinterlac" + + "e\032A\n\005Color\022\022\n\nsaturation\030\001 \001(\001\022\020\n\010contra" + + "st\030\002 \001(\001\022\022\n\nbrightness\030\003 \001(\001\032)\n\007Denoise\022" + + "\020\n\010strength\030\001 \001(\001\022\014\n\004tune\030\002 \001(\t\032,\n\007Deblo" + + "ck\022\020\n\010strength\030\001 \001(\001\022\017\n\007enabled\030\002 \001(\010\032<\n" + + "\005Audio\022\014\n\004lufs\030\001 \001(\001\022\022\n\nhigh_boost\030\002 \001(\010" + + "\022\021\n\tlow_boost\030\003 \001(\010\032\\\n\004Crop\022\022\n\ntop_pixel" + + "s\030\001 \001(\005\022\025\n\rbottom_pixels\030\002 \001(\005\022\023\n\013left_p" + + "ixels\030\003 \001(\005\022\024\n\014right_pixels\030\004 \001(\005\032[\n\003Pad" + + "\022\022\n\ntop_pixels\030\001 \001(\005\022\025\n\rbottom_pixels\030\002 " + + "\001(\005\022\023\n\013left_pixels\030\003 \001(\005\022\024\n\014right_pixels" + + "\030\004 \001(\005\032\244\003\n\013Deinterlace\022^\n\005yadif\030\001 \001(\0132M." + + "google.cloud.video.transcoder.v1.Preproc" + + "essingConfig.Deinterlace.YadifConfigH\000\022^" + + "\n\005bwdif\030\002 \001(\0132M.google.cloud.video.trans" + + "coder.v1.PreprocessingConfig.Deinterlace" + + ".BwdifConfigH\000\032p\n\013YadifConfig\022\014\n\004mode\030\001 " + + "\001(\t\022#\n\033disable_spatial_interlacing\030\002 \001(\010" + + "\022\016\n\006parity\030\003 \001(\t\022\036\n\026deinterlace_all_fram" + + "es\030\004 \001(\010\032K\n\013BwdifConfig\022\014\n\004mode\030\001 \001(\t\022\016\n" + + "\006parity\030\002 \001(\t\022\036\n\026deinterlace_all_frames\030" + + "\003 \001(\010B\026\n\024deinterlacing_filter\"\233\014\n\013VideoS" + + "tream\022O\n\004h264\030\001 \001(\0132?.google.cloud.video" + + ".transcoder.v1.VideoStream.H264CodecSett" + + "ingsH\000\022O\n\004h265\030\002 \001(\0132?.google.cloud.vide" + + "o.transcoder.v1.VideoStream.H265CodecSet" + + "tingsH\000\022M\n\003vp9\030\003 \001(\0132>.google.cloud.vide" + + "o.transcoder.v1.VideoStream.Vp9CodecSett" + + "ingsH\000\032\373\003\n\021H264CodecSettings\022\024\n\014width_pi" + + "xels\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001(\005\022\030\n\nfra" + + "me_rate\030\003 \001(\001B\004\342A\001\002\022\031\n\013bitrate_bps\030\004 \001(\005" + + "B\004\342A\001\002\022\024\n\014pixel_format\030\005 \001(\t\022\031\n\021rate_con" + + "trol_mode\030\006 \001(\t\022\021\n\tcrf_level\030\007 \001(\005\022\026\n\016al" + + "low_open_gop\030\010 \001(\010\022\031\n\017gop_frame_count\030\t " + + "\001(\005H\000\0221\n\014gop_duration\030\n \001(\0132\031.google.pro" + + "tobuf.DurationH\000\022\027\n\017enable_two_pass\030\013 \001(" + + "\010\022\025\n\rvbv_size_bits\030\014 \001(\005\022\031\n\021vbv_fullness" + + "_bits\030\r \001(\005\022\025\n\rentropy_coder\030\016 \001(\t\022\021\n\tb_" + + "pyramid\030\017 \001(\010\022\025\n\rb_frame_count\030\020 \001(\005\022\023\n\013" + + "aq_strength\030\021 \001(\001\022\017\n\007profile\030\022 \001(\t\022\014\n\004tu" + + "ne\030\023 \001(\t\022\016\n\006preset\030\024 \001(\tB\n\n\010gop_mode\032\344\003\n" + + "\021H265CodecSettings\022\024\n\014width_pixels\030\001 \001(\005" + + "\022\025\n\rheight_pixels\030\002 \001(\005\022\030\n\nframe_rate\030\003 " + + "\001(\001B\004\342A\001\002\022\031\n\013bitrate_bps\030\004 \001(\005B\004\342A\001\002\022\024\n\014" + + "pixel_format\030\005 \001(\t\022\031\n\021rate_control_mode\030" + + "\006 \001(\t\022\021\n\tcrf_level\030\007 \001(\005\022\026\n\016allow_open_g" + + "op\030\010 \001(\010\022\031\n\017gop_frame_count\030\t \001(\005H\000\0221\n\014g" + + "op_duration\030\n \001(\0132\031.google.protobuf.Dura" + + "tionH\000\022\027\n\017enable_two_pass\030\013 \001(\010\022\025\n\rvbv_s" + + "ize_bits\030\014 \001(\005\022\031\n\021vbv_fullness_bits\030\r \001(" + + "\005\022\021\n\tb_pyramid\030\016 \001(\010\022\025\n\rb_frame_count\030\017 " + + "\001(\005\022\023\n\013aq_strength\030\020 \001(\001\022\017\n\007profile\030\021 \001(" + + "\t\022\014\n\004tune\030\022 \001(\t\022\016\n\006preset\030\023 \001(\tB\n\n\010gop_m" + + "ode\032\243\002\n\020Vp9CodecSettings\022\024\n\014width_pixels" + + "\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001(\005\022\030\n\nframe_r" + + "ate\030\003 \001(\001B\004\342A\001\002\022\031\n\013bitrate_bps\030\004 \001(\005B\004\342A" + + "\001\002\022\024\n\014pixel_format\030\005 \001(\t\022\031\n\021rate_control" + + "_mode\030\006 \001(\t\022\021\n\tcrf_level\030\007 \001(\005\022\031\n\017gop_fr" + + "ame_count\030\010 \001(\005H\000\0221\n\014gop_duration\030\t \001(\0132" + + "\031.google.protobuf.DurationH\000\022\017\n\007profile\030" + + "\n \001(\tB\n\n\010gop_modeB\020\n\016codec_settings\"\244\003\n\013" + + "AudioStream\022\r\n\005codec\030\001 \001(\t\022\031\n\013bitrate_bp" + + "s\030\002 \001(\005B\004\342A\001\002\022\025\n\rchannel_count\030\003 \001(\005\022\026\n\016" + + "channel_layout\030\004 \003(\t\022K\n\007mapping\030\005 \003(\0132:." + + "google.cloud.video.transcoder.v1.AudioSt" + + "ream.AudioMapping\022\031\n\021sample_rate_hertz\030\006" + + " \001(\005\022\025\n\rlanguage_code\030\007 \001(\t\022\024\n\014display_n" + + "ame\030\010 \001(\t\032\246\001\n\014AudioMapping\022\026\n\010atom_key\030\001" + + " \001(\tB\004\342A\001\002\022\027\n\tinput_key\030\002 \001(\tB\004\342A\001\002\022\031\n\013i" + + "nput_track\030\003 \001(\005B\004\342A\001\002\022\033\n\rinput_channel\030" + + "\004 \001(\005B\004\342A\001\002\022\034\n\016output_channel\030\005 \001(\005B\004\342A\001" + + "\002\022\017\n\007gain_db\030\006 \001(\001\"\356\001\n\nTextStream\022\r\n\005cod" + + "ec\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022I\n\007mappi" + + "ng\030\003 \003(\01328.google.cloud.video.transcoder" + + ".v1.TextStream.TextMapping\022\024\n\014display_na" + + "me\030\004 \001(\t\032Y\n\013TextMapping\022\026\n\010atom_key\030\001 \001(" + + "\tB\004\342A\001\002\022\027\n\tinput_key\030\002 \001(\tB\004\342A\001\002\022\031\n\013inpu" + + "t_track\030\003 \001(\005B\004\342A\001\002\"i\n\017SegmentSettings\0223" + + "\n\020segment_duration\030\001 \001(\0132\031.google.protob" + + "uf.Duration\022!\n\023individual_segments\030\003 \001(\010" + + "B\004\342A\001\002\"\363\007\n\nEncryption\022\020\n\002id\030\006 \001(\tB\004\342A\001\002\022" + + "P\n\007aes_128\030\003 \001(\0132=.google.cloud.video.tr" + + "anscoder.v1.Encryption.Aes128EncryptionH" + + "\000\022V\n\nsample_aes\030\004 \001(\0132@.google.cloud.vid" + + "eo.transcoder.v1.Encryption.SampleAesEnc" + + "ryptionH\000\022V\n\tmpeg_cenc\030\005 \001(\0132A.google.cl" + + "oud.video.transcoder.v1.Encryption.MpegC" + + "ommonEncryptionH\000\022e\n\031secret_manager_key_" + + "source\030\007 \001(\0132@.google.cloud.video.transc" + + "oder.v1.Encryption.SecretManagerSourceH\001" + + "\022R\n\013drm_systems\030\010 \001(\01327.google.cloud.vid" + + "eo.transcoder.v1.Encryption.DrmSystemsB\004" + + "\342A\001\002\032\022\n\020Aes128Encryption\032\025\n\023SampleAesEnc" + + "ryption\032,\n\024MpegCommonEncryption\022\024\n\006schem" + + "e\030\002 \001(\tB\004\342A\001\002\0323\n\023SecretManagerSource\022\034\n\016" + + "secret_version\030\001 \001(\tB\004\342A\001\002\032\n\n\010Widevine\032\n" + + "\n\010Fairplay\032\013\n\tPlayready\032\n\n\010Clearkey\032\262\002\n\n" + + "DrmSystems\022G\n\010widevine\030\001 \001(\01325.google.cl" + + "oud.video.transcoder.v1.Encryption.Widev" + + "ine\022G\n\010fairplay\030\002 \001(\01325.google.cloud.vid" + + "eo.transcoder.v1.Encryption.Fairplay\022I\n\t" + + "playready\030\003 \001(\01326.google.cloud.video.tra" + + "nscoder.v1.Encryption.Playready\022G\n\010clear" + + "key\030\004 \001(\01325.google.cloud.video.transcode" + + "r.v1.Encryption.ClearkeyB\021\n\017encryption_m" + + "odeB\017\n\rsecret_sourceB~\n$com.google.cloud" + + ".video.transcoder.v1B\016ResourcesProtoP\001ZD" + + "cloud.google.com/go/video/transcoder/api" + + "v1/transcoderpb;transcoderpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -443,6 +528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "Error", "Mode", + "BatchModePriority", + "Optimization", "JobConfig", }); internal_static_google_cloud_video_transcoder_v1_Job_LabelsEntry_descriptor = @@ -487,6 +574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PubsubDestination", "SpriteSheets", "Overlays", + "Encryptions", }); internal_static_google_cloud_video_transcoder_v1_Input_descriptor = getDescriptor().getMessageTypes().get(3); @@ -534,7 +622,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_transcoder_v1_MuxStream_descriptor, new java.lang.String[] { - "Key", "FileName", "Container", "ElementaryStreams", "SegmentSettings", + "Key", + "FileName", + "Container", + "ElementaryStreams", + "SegmentSettings", + "EncryptionId", }); internal_static_google_cloud_video_transcoder_v1_Manifest_descriptor = getDescriptor().getMessageTypes().get(9); @@ -542,7 +635,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_transcoder_v1_Manifest_descriptor, new java.lang.String[] { - "FileName", "Type", "MuxStreams", + "FileName", "Type", "MuxStreams", "Dash", "ManifestConfig", + }); + internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor = + internal_static_google_cloud_video_transcoder_v1_Manifest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Manifest_DashConfig_descriptor, + new java.lang.String[] { + "SegmentReferenceScheme", }); internal_static_google_cloud_video_transcoder_v1_PubsubDestination_descriptor = getDescriptor().getMessageTypes().get(10); @@ -863,6 +966,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SegmentDuration", "IndividualSegments", }); + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_video_transcoder_v1_Encryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor, + new java.lang.String[] { + "Id", + "Aes128", + "SampleAes", + "MpegCenc", + "SecretManagerKeySource", + "DrmSystems", + "EncryptionMode", + "SecretSource", + }); + internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_Aes128Encryption_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_SampleAesEncryption_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_MpegCommonEncryption_descriptor, + new java.lang.String[] { + "Scheme", + }); + internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_SecretManagerSource_descriptor, + new java.lang.String[] { + "SecretVersion", + }); + internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_Widevine_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_Fairplay_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_Playready_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_Clearkey_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor = + internal_static_google_cloud_video_transcoder_v1_Encryption_descriptor + .getNestedTypes() + .get(8); + internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_transcoder_v1_Encryption_DrmSystems_descriptor, + new java.lang.String[] { + "Widevine", "Fairplay", "Playready", "Clearkey", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/proto/google/cloud/video/transcoder/v1/resources.proto b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/proto/google/cloud/video/transcoder/v1/resources.proto index 71735313674e..23e091475e97 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/proto/google/cloud/video/transcoder/v1/resources.proto +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/proto/google/cloud/video/transcoder/v1/resources.proto @@ -68,6 +68,18 @@ message Job { PROCESSING_MODE_BATCH = 2; } + // The optimization strategy of the job. The default is `AUTODETECT`. + enum OptimizationStrategy { + // The optimization strategy is not specified. + OPTIMIZATION_STRATEGY_UNSPECIFIED = 0; + + // Prioritize job processing speed. + AUTODETECT = 1; + + // Disable all optimizations. + DISABLED = 2; + } + // The resource name of the job. // Format: `projects/{project_number}/locations/{location}/jobs/{job}` string name = 1; @@ -133,6 +145,17 @@ message Job { // The processing mode of the job. // The default is `PROCESSING_MODE_INTERACTIVE`. ProcessingMode mode = 20; + + // The processing priority of a batch job. + // This field can only be set for batch mode jobs. The default value is 0. + // This value cannot be negative. Higher values correspond to higher + // priorities for the job. + int32 batch_mode_priority = 21; + + // Optional. The optimization strategy of the job. The default is + // `AUTODETECT`. + OptimizationStrategy optimization = 22 + [(google.api.field_behavior) = OPTIONAL]; } // Transcoding job template resource. @@ -189,6 +212,12 @@ message JobConfig { // List of overlays on the output video, in descending Z-order. repeated Overlay overlays = 10; + + // List of encryption configurations for the content. + // Each configuration has an ID. Specify this ID in the + // [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id] + // field to indicate the configuration to use for that `MuxStream` output. + repeated Encryption encryptions = 11; } // Input asset. @@ -296,27 +325,50 @@ message MuxStream { // Segment settings for `ts`, `fmp4` and `vtt`. SegmentSettings segment_settings = 5; + + // Identifier of the encryption configuration to use. If omitted, output will + // be unencrypted. + string encryption_id = 7; } // Manifest configuration. message Manifest { - // The manifest type can be either `HLS` or `DASH`. + // The manifest type, which corresponds to the adaptive streaming format used. enum ManifestType { // The manifest type is not specified. MANIFEST_TYPE_UNSPECIFIED = 0; - // Create `HLS` manifest. The corresponding file extension is `.m3u8`. + // Create an HLS manifest. The corresponding file extension is `.m3u8`. HLS = 1; - // Create `DASH` manifest. The corresponding file extension is `.mpd`. + // Create an MPEG-DASH manifest. The corresponding file extension is `.mpd`. DASH = 2; } + // `DASH` manifest configuration. + message DashConfig { + // The segment reference scheme for a `DASH` manifest. + enum SegmentReferenceScheme { + // The segment reference scheme is not specified. + SEGMENT_REFERENCE_SCHEME_UNSPECIFIED = 0; + + // Lists the URLs of media files for each segment. + SEGMENT_LIST = 1; + + // Lists each segment from a template with $Number$ variable. + SEGMENT_TEMPLATE_NUMBER = 2; + } + + // The segment reference scheme for a `DASH` manifest. The default is + // `SEGMENT_LIST`. + SegmentReferenceScheme segment_reference_scheme = 1; + } + // The name of the generated file. The default is `manifest` with the // extension suffix corresponding to the `Manifest.type`. string file_name = 1; - // Required. Type of the manifest, can be `HLS` or `DASH`. + // Required. Type of the manifest. ManifestType type = 2 [(google.api.field_behavior) = REQUIRED]; // Required. List of user given `MuxStream.key`s that should appear in this @@ -326,6 +378,12 @@ message Manifest { // and `.m3u8` extension is generated for each element of the // `Manifest.mux_streams`. repeated string mux_streams = 3 [(google.api.field_behavior) = REQUIRED]; + + // Specifies the manifest configuration. + oneof manifest_config { + // `DASH` manifest configuration. + DashConfig dash = 4; + } } // A Pub/Sub destination. @@ -1246,3 +1304,86 @@ message SegmentSettings { // Required. Create an individual segment file. The default is `false`. bool individual_segments = 3 [(google.api.field_behavior) = REQUIRED]; } + +// Encryption settings. +message Encryption { + // Configuration for AES-128 encryption. + message Aes128Encryption {} + + // Configuration for SAMPLE-AES encryption. + message SampleAesEncryption {} + + // Configuration for MPEG Common Encryption (MPEG-CENC). + message MpegCommonEncryption { + // Required. Specify the encryption scheme. + // + // Supported encryption schemes: + // + // - `cenc` + // - `cbcs` + string scheme = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration for secrets stored in Google Secret Manager. + message SecretManagerSource { + // Required. The name of the Secret Version containing the encryption key in + // the following format: + // `projects/{project}/secrets/{secret_id}/versions/{version_number}` + // + // Note that only numbered versions are supported. Aliases like "latest" are + // not supported. + string secret_version = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Widevine configuration. + message Widevine {} + + // Fairplay configuration. + message Fairplay {} + + // Playready configuration. + message Playready {} + + // Clearkey configuration. + message Clearkey {} + + // Defines configuration for DRM systems in use. + message DrmSystems { + // Widevine configuration. + Widevine widevine = 1; + + // Fairplay configuration. + Fairplay fairplay = 2; + + // Playready configuration. + Playready playready = 3; + + // Clearkey configuration. + Clearkey clearkey = 4; + } + + // Required. Identifier for this set of encryption options. + string id = 6 [(google.api.field_behavior) = REQUIRED]; + + // Encryption mode can be either `aes` or `cenc`. + oneof encryption_mode { + // Configuration for AES-128 encryption. + Aes128Encryption aes_128 = 3; + + // Configuration for SAMPLE-AES encryption. + SampleAesEncryption sample_aes = 4; + + // Configuration for MPEG Common Encryption (MPEG-CENC). + MpegCommonEncryption mpeg_cenc = 5; + } + + // Defines where content keys are stored. + oneof secret_source { + // Keys are stored in Google Secret Manager. + SecretManagerSource secret_manager_key_source = 7; + } + + // Required. DRM system(s) to use; at least one must be specified. If a + // DRM system is omitted, it is considered disabled. + DrmSystems drm_systems = 8 [(google.api.field_behavior) = REQUIRED]; +}