From 54f750dc86bdd13bf258cfdcd8b4c32f1a333dea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 15:37:02 -0400 Subject: [PATCH] feat: [videostitcher] Add support for Media CDN (#8690) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add support for Media CDN PiperOrigin-RevId: 483999352 Source-Link: https://github.com/googleapis/googleapis/commit/d0a9cd5a72e92d580543d0531fa13f318e68fa26 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b40f231195019a20fba164e6b9fdb344e6283a13 Copy-Tag: eyJwIjoiamF2YS12aWRlby1zdGl0Y2hlci8uT3dsQm90LnlhbWwiLCJoIjoiYjQwZjIzMTE5NTAxOWEyMGZiYTE2NGU2YjlmZGIzNDRlNjI4M2ExMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-video-stitcher/.gitignore | 17 + java-video-stitcher/README.md | 6 +- java-video-stitcher/pom.xml | 3 +- .../cloud/video/stitcher/v1/CdnKey.java | 301 ++++++++ .../video/stitcher/v1/CdnKeyOrBuilder.java | 35 + .../cloud/video/stitcher/v1/CdnKeysProto.java | 40 +- .../cloud/video/stitcher/v1/MediaCdnKey.java | 709 ++++++++++++++++++ .../stitcher/v1/MediaCdnKeyOrBuilder.java | 63 ++ .../cloud/video/stitcher/v1/cdn_keys.proto | 12 + 9 files changed, 1170 insertions(+), 16 deletions(-) create mode 100644 java-video-stitcher/.gitignore create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java diff --git a/java-video-stitcher/.gitignore b/java-video-stitcher/.gitignore new file mode 100644 index 000000000000..069d08fc73e8 --- /dev/null +++ b/java-video-stitcher/.gitignore @@ -0,0 +1,17 @@ +# Maven +target/ + +# Eclipse +.classpath +.project +.settings + +# Intellij +*.iml +.idea/ + +# python utilities +*.pyc +__pycache__ + +.flattened-pom.xml diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index ee3ff61836b2..dcf7b0523a43 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-video-stitcher - 0.3.6 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.3.6' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.3.6" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.5.0" ``` ## Authentication diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index a54552043af5..59c0038f7a37 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -50,4 +50,5 @@ proto-google-cloud-video-stitcher-v1 google-cloud-video-stitcher-bom - + + diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKey.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKey.java index 3f6ec7d46ff8..8145736060fe 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKey.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKey.java @@ -79,6 +79,7 @@ public enum CdnKeyConfigCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_CDN_KEY(5), AKAMAI_CDN_KEY(6), + MEDIA_CDN_KEY(8), CDNKEYCONFIG_NOT_SET(0); private final int value; @@ -101,6 +102,8 @@ public static CdnKeyConfigCase forNumber(int value) { return GOOGLE_CDN_KEY; case 6: return AKAMAI_CDN_KEY; + case 8: + return MEDIA_CDN_KEY; case 0: return CDNKEYCONFIG_NOT_SET; default: @@ -219,6 +222,57 @@ public com.google.cloud.video.stitcher.v1.AkamaiCdnKeyOrBuilder getAkamaiCdnKeyO return com.google.cloud.video.stitcher.v1.AkamaiCdnKey.getDefaultInstance(); } + public static final int MEDIA_CDN_KEY_FIELD_NUMBER = 8; + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return Whether the mediaCdnKey field is set. + */ + @java.lang.Override + public boolean hasMediaCdnKey() { + return cdnKeyConfigCase_ == 8; + } + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return The mediaCdnKey. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey getMediaCdnKey() { + if (cdnKeyConfigCase_ == 8) { + return (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_; + } + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder getMediaCdnKeyOrBuilder() { + if (cdnKeyConfigCase_ == 8) { + return (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_; + } + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -347,6 +401,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cdnKeyConfigCase_ == 6) { output.writeMessage(6, (com.google.cloud.video.stitcher.v1.AkamaiCdnKey) cdnKeyConfig_); } + if (cdnKeyConfigCase_ == 8) { + output.writeMessage(8, (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_); + } getUnknownFields().writeTo(output); } @@ -372,6 +429,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.video.stitcher.v1.AkamaiCdnKey) cdnKeyConfig_); } + if (cdnKeyConfigCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -398,6 +460,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getAkamaiCdnKey().equals(other.getAkamaiCdnKey())) return false; break; + case 8: + if (!getMediaCdnKey().equals(other.getMediaCdnKey())) return false; + break; case 0: default: } @@ -425,6 +490,10 @@ public int hashCode() { hash = (37 * hash) + AKAMAI_CDN_KEY_FIELD_NUMBER; hash = (53 * hash) + getAkamaiCdnKey().hashCode(); break; + case 8: + hash = (37 * hash) + MEDIA_CDN_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMediaCdnKey().hashCode(); + break; case 0: default: } @@ -574,6 +643,9 @@ public Builder clear() { if (akamaiCdnKeyBuilder_ != null) { akamaiCdnKeyBuilder_.clear(); } + if (mediaCdnKeyBuilder_ != null) { + mediaCdnKeyBuilder_.clear(); + } name_ = ""; hostname_ = ""; @@ -621,6 +693,13 @@ public com.google.cloud.video.stitcher.v1.CdnKey buildPartial() { result.cdnKeyConfig_ = akamaiCdnKeyBuilder_.build(); } } + if (cdnKeyConfigCase_ == 8) { + if (mediaCdnKeyBuilder_ == null) { + result.cdnKeyConfig_ = cdnKeyConfig_; + } else { + result.cdnKeyConfig_ = mediaCdnKeyBuilder_.build(); + } + } result.name_ = name_; result.hostname_ = hostname_; result.cdnKeyConfigCase_ = cdnKeyConfigCase_; @@ -692,6 +771,11 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.CdnKey other) { mergeAkamaiCdnKey(other.getAkamaiCdnKey()); break; } + case MEDIA_CDN_KEY: + { + mergeMediaCdnKey(other.getMediaCdnKey()); + break; + } case CDNKEYCONFIG_NOT_SET: { break; @@ -747,6 +831,12 @@ public Builder mergeFrom( cdnKeyConfigCase_ = 6; break; } // case 50 + case 66: + { + input.readMessage(getMediaCdnKeyFieldBuilder().getBuilder(), extensionRegistry); + cdnKeyConfigCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1200,6 +1290,217 @@ public com.google.cloud.video.stitcher.v1.AkamaiCdnKeyOrBuilder getAkamaiCdnKeyO return akamaiCdnKeyBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey, + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder> + mediaCdnKeyBuilder_; + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return Whether the mediaCdnKey field is set. + */ + @java.lang.Override + public boolean hasMediaCdnKey() { + return cdnKeyConfigCase_ == 8; + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return The mediaCdnKey. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey getMediaCdnKey() { + if (mediaCdnKeyBuilder_ == null) { + if (cdnKeyConfigCase_ == 8) { + return (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_; + } + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } else { + if (cdnKeyConfigCase_ == 8) { + return mediaCdnKeyBuilder_.getMessage(); + } + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + public Builder setMediaCdnKey(com.google.cloud.video.stitcher.v1.MediaCdnKey value) { + if (mediaCdnKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdnKeyConfig_ = value; + onChanged(); + } else { + mediaCdnKeyBuilder_.setMessage(value); + } + cdnKeyConfigCase_ = 8; + return this; + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + public Builder setMediaCdnKey( + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder builderForValue) { + if (mediaCdnKeyBuilder_ == null) { + cdnKeyConfig_ = builderForValue.build(); + onChanged(); + } else { + mediaCdnKeyBuilder_.setMessage(builderForValue.build()); + } + cdnKeyConfigCase_ = 8; + return this; + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + public Builder mergeMediaCdnKey(com.google.cloud.video.stitcher.v1.MediaCdnKey value) { + if (mediaCdnKeyBuilder_ == null) { + if (cdnKeyConfigCase_ == 8 + && cdnKeyConfig_ + != com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance()) { + cdnKeyConfig_ = + com.google.cloud.video.stitcher.v1.MediaCdnKey.newBuilder( + (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + cdnKeyConfig_ = value; + } + onChanged(); + } else { + if (cdnKeyConfigCase_ == 8) { + mediaCdnKeyBuilder_.mergeFrom(value); + } else { + mediaCdnKeyBuilder_.setMessage(value); + } + } + cdnKeyConfigCase_ = 8; + return this; + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + public Builder clearMediaCdnKey() { + if (mediaCdnKeyBuilder_ == null) { + if (cdnKeyConfigCase_ == 8) { + cdnKeyConfigCase_ = 0; + cdnKeyConfig_ = null; + onChanged(); + } + } else { + if (cdnKeyConfigCase_ == 8) { + cdnKeyConfigCase_ = 0; + cdnKeyConfig_ = null; + } + mediaCdnKeyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + public com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder getMediaCdnKeyBuilder() { + return getMediaCdnKeyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder getMediaCdnKeyOrBuilder() { + if ((cdnKeyConfigCase_ == 8) && (mediaCdnKeyBuilder_ != null)) { + return mediaCdnKeyBuilder_.getMessageOrBuilder(); + } else { + if (cdnKeyConfigCase_ == 8) { + return (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_; + } + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + } + /** + * + * + *
+     * The configuration for a Media CDN key.
+     * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey, + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder> + getMediaCdnKeyFieldBuilder() { + if (mediaCdnKeyBuilder_ == null) { + if (!(cdnKeyConfigCase_ == 8)) { + cdnKeyConfig_ = com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + mediaCdnKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey, + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder>( + (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_, + getParentForChildren(), + isClean()); + cdnKeyConfig_ = null; + } + cdnKeyConfigCase_ = 8; + onChanged(); + ; + return mediaCdnKeyBuilder_; + } + private java.lang.Object name_ = ""; /** * diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyOrBuilder.java index 553818173a23..cde34b7a4693 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyOrBuilder.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyOrBuilder.java @@ -93,6 +93,41 @@ public interface CdnKeyOrBuilder */ com.google.cloud.video.stitcher.v1.AkamaiCdnKeyOrBuilder getAkamaiCdnKeyOrBuilder(); + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return Whether the mediaCdnKey field is set. + */ + boolean hasMediaCdnKey(); + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + * + * @return The mediaCdnKey. + */ + com.google.cloud.video.stitcher.v1.MediaCdnKey getMediaCdnKey(); + /** + * + * + *
+   * The configuration for a Media CDN key.
+   * 
+ * + * .google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8; + */ + com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder getMediaCdnKeyOrBuilder(); + /** * * diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java index abf9234b3468..3dfd98bf9418 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_stitcher_v1_AkamaiCdnKey_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_stitcher_v1_AkamaiCdnKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -51,20 +55,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n-google/cloud/video/stitcher/v1/cdn_key" + "s.proto\022\036google.cloud.video.stitcher.v1\032" + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\"\257\002\n\006CdnKey\022F\n\016google" + + "/api/resource.proto\"\365\002\n\006CdnKey\022F\n\016google" + "_cdn_key\030\005 \001(\0132,.google.cloud.video.stit" + "cher.v1.GoogleCdnKeyH\000\022F\n\016akamai_cdn_key" + "\030\006 \001(\0132,.google.cloud.video.stitcher.v1." - + "AkamaiCdnKeyH\000\022\014\n\004name\030\001 \001(\t\022\020\n\010hostname" - + "\030\004 \001(\t:c\352A`\n#videostitcher.googleapis.co" - + "m/CdnKey\0229projects/{project}/locations/{" - + "location}/cdnKeys/{cdn_key}B\020\n\016cdn_key_c" - + "onfig\":\n\014GoogleCdnKey\022\030\n\013private_key\030\001 \001" - + "(\014B\003\340A\004\022\020\n\010key_name\030\002 \001(\t\"&\n\014AkamaiCdnKe" - + "y\022\026\n\ttoken_key\030\001 \001(\014B\003\340A\004B|\n\"com.google." - + "cloud.video.stitcher.v1B\014CdnKeysProtoP\001Z" - + "Fgoogle.golang.org/genproto/googleapis/c" - + "loud/video/stitcher/v1;stitcherb\006proto3" + + "AkamaiCdnKeyH\000\022D\n\rmedia_cdn_key\030\010 \001(\0132+." + + "google.cloud.video.stitcher.v1.MediaCdnK" + + "eyH\000\022\014\n\004name\030\001 \001(\t\022\020\n\010hostname\030\004 \001(\t:c\352A" + + "`\n#videostitcher.googleapis.com/CdnKey\0229" + + "projects/{project}/locations/{location}/" + + "cdnKeys/{cdn_key}B\020\n\016cdn_key_config\":\n\014G" + + "oogleCdnKey\022\030\n\013private_key\030\001 \001(\014B\003\340A\004\022\020\n" + + "\010key_name\030\002 \001(\t\"&\n\014AkamaiCdnKey\022\026\n\ttoken" + + "_key\030\001 \001(\014B\003\340A\004\"9\n\013MediaCdnKey\022\030\n\013privat" + + "e_key\030\001 \001(\014B\003\340A\004\022\020\n\010key_name\030\002 \001(\tB|\n\"co" + + "m.google.cloud.video.stitcher.v1B\014CdnKey" + + "sProtoP\001ZFgoogle.golang.org/genproto/goo" + + "gleapis/cloud/video/stitcher/v1;stitcher" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -79,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_stitcher_v1_CdnKey_descriptor, new java.lang.String[] { - "GoogleCdnKey", "AkamaiCdnKey", "Name", "Hostname", "CdnKeyConfig", + "GoogleCdnKey", "AkamaiCdnKey", "MediaCdnKey", "Name", "Hostname", "CdnKeyConfig", }); internal_static_google_cloud_video_stitcher_v1_GoogleCdnKey_descriptor = getDescriptor().getMessageTypes().get(1); @@ -97,6 +105,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TokenKey", }); + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor, + new java.lang.String[] { + "PrivateKey", "KeyName", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java new file mode 100644 index 000000000000..14701611a6a8 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java @@ -0,0 +1,709 @@ +/* + * Copyright 2020 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/stitcher/v1/cdn_keys.proto + +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Configuration for a Media CDN key.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.MediaCdnKey} + */ +public final class MediaCdnKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.MediaCdnKey) + MediaCdnKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use MediaCdnKey.newBuilder() to construct. + private MediaCdnKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MediaCdnKey() { + privateKey_ = com.google.protobuf.ByteString.EMPTY; + keyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MediaCdnKey(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.MediaCdnKey.class, + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder.class); + } + + public static final int PRIVATE_KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString privateKey_; + /** + * + * + *
+   * Input only. 64-byte ed25519 private key for this Media CDN key.
+   * 
+ * + * bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKey() { + return privateKey_; + } + + public static final int KEY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object keyName_; + /** + * + * + *
+   * The keyset name of the Media CDN key.
+   * 
+ * + * string key_name = 2; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + 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(); + keyName_ = s; + return s; + } + } + /** + * + * + *
+   * The keyset name of the Media CDN key.
+   * 
+ * + * string key_name = 2; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!privateKey_.isEmpty()) { + output.writeBytes(1, privateKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!privateKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, privateKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyName_); + } + 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.stitcher.v1.MediaCdnKey)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.MediaCdnKey other = + (com.google.cloud.video.stitcher.v1.MediaCdnKey) obj; + + if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getKeyName().equals(other.getKeyName())) 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) + PRIVATE_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey 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.stitcher.v1.MediaCdnKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey 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.stitcher.v1.MediaCdnKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey 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.stitcher.v1.MediaCdnKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey 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.stitcher.v1.MediaCdnKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey 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.stitcher.v1.MediaCdnKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for a Media CDN key.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.MediaCdnKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.MediaCdnKey) + com.google.cloud.video.stitcher.v1.MediaCdnKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.MediaCdnKey.class, + com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.MediaCdnKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privateKey_ = com.google.protobuf.ByteString.EMPTY; + + keyName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey build() { + com.google.cloud.video.stitcher.v1.MediaCdnKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey buildPartial() { + com.google.cloud.video.stitcher.v1.MediaCdnKey result = + new com.google.cloud.video.stitcher.v1.MediaCdnKey(this); + result.privateKey_ = privateKey_; + result.keyName_ = keyName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.MediaCdnKey) { + return mergeFrom((com.google.cloud.video.stitcher.v1.MediaCdnKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.MediaCdnKey other) { + if (other == com.google.cloud.video.stitcher.v1.MediaCdnKey.getDefaultInstance()) return this; + if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) { + setPrivateKey(other.getPrivateKey()); + } + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateKey_ = input.readBytes(); + + break; + } // case 10 + case 18: + { + keyName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Input only. 64-byte ed25519 private key for this Media CDN key.
+     * 
+ * + * bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKey() { + return privateKey_; + } + /** + * + * + *
+     * Input only. 64-byte ed25519 private key for this Media CDN key.
+     * 
+ * + * bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + privateKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. 64-byte ed25519 private key for this Media CDN key.
+     * 
+ * + * bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateKey() { + + privateKey_ = getDefaultInstance().getPrivateKey(); + onChanged(); + return this; + } + + private java.lang.Object keyName_ = ""; + /** + * + * + *
+     * The keyset name of the Media CDN key.
+     * 
+ * + * string key_name = 2; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The keyset name of the Media CDN key.
+     * 
+ * + * string key_name = 2; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The keyset name of the Media CDN key.
+     * 
+ * + * string key_name = 2; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The keyset name of the Media CDN key.
+     * 
+ * + * string key_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + + keyName_ = getDefaultInstance().getKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The keyset name of the Media CDN key.
+     * 
+ * + * string key_name = 2; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keyName_ = value; + 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.stitcher.v1.MediaCdnKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.MediaCdnKey) + private static final com.google.cloud.video.stitcher.v1.MediaCdnKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.MediaCdnKey(); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaCdnKey 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.stitcher.v1.MediaCdnKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java new file mode 100644 index 000000000000..081fa13db73f --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 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/stitcher/v1/cdn_keys.proto + +package com.google.cloud.video.stitcher.v1; + +public interface MediaCdnKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.MediaCdnKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. 64-byte ed25519 private key for this Media CDN key.
+   * 
+ * + * bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + com.google.protobuf.ByteString getPrivateKey(); + + /** + * + * + *
+   * The keyset name of the Media CDN key.
+   * 
+ * + * string key_name = 2; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + /** + * + * + *
+   * The keyset name of the Media CDN key.
+   * 
+ * + * string key_name = 2; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto index 254f415f8176..c4835c5a6676 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto @@ -40,6 +40,9 @@ message CdnKey { // The configuration for an Akamai CDN key. AkamaiCdnKey akamai_cdn_key = 6; + + // The configuration for a Media CDN key. + MediaCdnKey media_cdn_key = 8; } // The resource name of the CDN key, in the form of @@ -65,3 +68,12 @@ message AkamaiCdnKey { // Input only. Token key for the Akamai CDN edge configuration. bytes token_key = 1 [(google.api.field_behavior) = INPUT_ONLY]; } + +// Configuration for a Media CDN key. +message MediaCdnKey { + // Input only. 64-byte ed25519 private key for this Media CDN key. + bytes private_key = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // The keyset name of the Media CDN key. + string key_name = 2; +}