Class DrmInformation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DrmInformation.Builder>
com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
ai.pipestream.parsed.data.creative_commons.v1.DrmInformation.Builder
All Implemented Interfaces:
DrmInformationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DrmInformation

public static final class DrmInformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder> implements DrmInformationOrBuilder
 Represents Digital Rights Management information
 
Protobuf type ai.pipestream.parsed.data.creative_commons.v1.DrmInformation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
    • clear

      public DrmInformation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
    • getDefaultInstanceForType

      public DrmInformation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DrmInformation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DrmInformation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DrmInformation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DrmInformation.Builder>
    • mergeFrom

      public DrmInformation.Builder mergeFrom(DrmInformation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
    • mergeFrom

      public DrmInformation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DrmInformation.Builder>
      Throws:
      IOException
    • getDrmPresent

      public boolean getDrmPresent()
       Whether DRM is present
       
      bool drm_present = 1 [json_name = "drmPresent"];
      Specified by:
      getDrmPresent in interface DrmInformationOrBuilder
      Returns:
      The drmPresent.
    • setDrmPresent

      public DrmInformation.Builder setDrmPresent(boolean value)
       Whether DRM is present
       
      bool drm_present = 1 [json_name = "drmPresent"];
      Parameters:
      value - The drmPresent to set.
      Returns:
      This builder for chaining.
    • clearDrmPresent

      public DrmInformation.Builder clearDrmPresent()
       Whether DRM is present
       
      bool drm_present = 1 [json_name = "drmPresent"];
      Returns:
      This builder for chaining.
    • hasDrmSystem

      public boolean hasDrmSystem()
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Specified by:
      hasDrmSystem in interface DrmInformationOrBuilder
      Returns:
      Whether the drmSystem field is set.
    • getDrmSystem

      public String getDrmSystem()
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Specified by:
      getDrmSystem in interface DrmInformationOrBuilder
      Returns:
      The drmSystem.
    • getDrmSystemBytes

      public com.google.protobuf.ByteString getDrmSystemBytes()
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Specified by:
      getDrmSystemBytes in interface DrmInformationOrBuilder
      Returns:
      The bytes for drmSystem.
    • setDrmSystem

      public DrmInformation.Builder setDrmSystem(String value)
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Parameters:
      value - The drmSystem to set.
      Returns:
      This builder for chaining.
    • clearDrmSystem

      public DrmInformation.Builder clearDrmSystem()
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Returns:
      This builder for chaining.
    • setDrmSystemBytes

      public DrmInformation.Builder setDrmSystemBytes(com.google.protobuf.ByteString value)
       DRM system used
       
      optional string drm_system = 2 [json_name = "drmSystem"];
      Parameters:
      value - The bytes for drmSystem to set.
      Returns:
      This builder for chaining.
    • hasProtectionLevel

      public boolean hasProtectionLevel()
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Specified by:
      hasProtectionLevel in interface DrmInformationOrBuilder
      Returns:
      Whether the protectionLevel field is set.
    • getProtectionLevel

      public String getProtectionLevel()
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Specified by:
      getProtectionLevel in interface DrmInformationOrBuilder
      Returns:
      The protectionLevel.
    • getProtectionLevelBytes

      public com.google.protobuf.ByteString getProtectionLevelBytes()
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Specified by:
      getProtectionLevelBytes in interface DrmInformationOrBuilder
      Returns:
      The bytes for protectionLevel.
    • setProtectionLevel

      public DrmInformation.Builder setProtectionLevel(String value)
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Parameters:
      value - The protectionLevel to set.
      Returns:
      This builder for chaining.
    • clearProtectionLevel

      public DrmInformation.Builder clearProtectionLevel()
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Returns:
      This builder for chaining.
    • setProtectionLevelBytes

      public DrmInformation.Builder setProtectionLevelBytes(com.google.protobuf.ByteString value)
       DRM protection level
       
      optional string protection_level = 3 [json_name = "protectionLevel"];
      Parameters:
      value - The bytes for protectionLevel to set.
      Returns:
      This builder for chaining.
    • getRestrictionsList

      public com.google.protobuf.ProtocolStringList getRestrictionsList()
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Specified by:
      getRestrictionsList in interface DrmInformationOrBuilder
      Returns:
      A list containing the restrictions.
    • getRestrictionsCount

      public int getRestrictionsCount()
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Specified by:
      getRestrictionsCount in interface DrmInformationOrBuilder
      Returns:
      The count of restrictions.
    • getRestrictions

      public String getRestrictions(int index)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Specified by:
      getRestrictions in interface DrmInformationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The restrictions at the given index.
    • getRestrictionsBytes

      public com.google.protobuf.ByteString getRestrictionsBytes(int index)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Specified by:
      getRestrictionsBytes in interface DrmInformationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the restrictions at the given index.
    • setRestrictions

      public DrmInformation.Builder setRestrictions(int index, String value)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Parameters:
      index - The index to set the value at.
      value - The restrictions to set.
      Returns:
      This builder for chaining.
    • addRestrictions

      public DrmInformation.Builder addRestrictions(String value)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Parameters:
      value - The restrictions to add.
      Returns:
      This builder for chaining.
    • addAllRestrictions

      public DrmInformation.Builder addAllRestrictions(Iterable<String> values)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Parameters:
      values - The restrictions to add.
      Returns:
      This builder for chaining.
    • clearRestrictions

      public DrmInformation.Builder clearRestrictions()
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Returns:
      This builder for chaining.
    • addRestrictionsBytes

      public DrmInformation.Builder addRestrictionsBytes(com.google.protobuf.ByteString value)
       DRM restrictions
       
      repeated string restrictions = 4 [json_name = "restrictions"];
      Parameters:
      value - The bytes of the restrictions to add.
      Returns:
      This builder for chaining.
    • hasExpirationDate

      public boolean hasExpirationDate()
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
      Specified by:
      hasExpirationDate in interface DrmInformationOrBuilder
      Returns:
      Whether the expirationDate field is set.
    • getExpirationDate

      public com.google.protobuf.Timestamp getExpirationDate()
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
      Specified by:
      getExpirationDate in interface DrmInformationOrBuilder
      Returns:
      The expirationDate.
    • setExpirationDate

      public DrmInformation.Builder setExpirationDate(com.google.protobuf.Timestamp value)
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
    • setExpirationDate

      public DrmInformation.Builder setExpirationDate(com.google.protobuf.Timestamp.Builder builderForValue)
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
    • mergeExpirationDate

      public DrmInformation.Builder mergeExpirationDate(com.google.protobuf.Timestamp value)
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
    • clearExpirationDate

      public DrmInformation.Builder clearExpirationDate()
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
    • getExpirationDateBuilder

      public com.google.protobuf.Timestamp.Builder getExpirationDateBuilder()
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
    • getExpirationDateOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpirationDateOrBuilder()
       DRM expiration date
       
      optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"];
      Specified by:
      getExpirationDateOrBuilder in interface DrmInformationOrBuilder