+ 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 extends com.google.cloud.video.transcoder.v1.EncryptionOrBuilder>
+ 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 extends com.google.cloud.video.transcoder.v1.Encryption> 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 extends com.google.cloud.video.transcoder.v1.EncryptionOrBuilder>
+ 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 extends com.google.cloud.video.transcoder.v1.EncryptionOrBuilder>
+ 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];
+}