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 informationProtobuf type
ai.pipestream.parsed.data.creative_commons.v1.DrmInformation-
Method Summary
Modifier and TypeMethodDescriptionaddAllRestrictions(Iterable<String> values) DRM restrictionsaddRestrictions(String value) DRM restrictionsaddRestrictionsBytes(com.google.protobuf.ByteString value) DRM restrictionsbuild()clear()Whether DRM is presentDRM system usedDRM expiration dateDRM protection levelDRM restrictionsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether DRM is presentDRM system usedcom.google.protobuf.ByteStringDRM system usedcom.google.protobuf.TimestampDRM expiration datecom.google.protobuf.Timestamp.BuilderDRM expiration datecom.google.protobuf.TimestampOrBuilderDRM expiration dateDRM protection levelcom.google.protobuf.ByteStringDRM protection levelgetRestrictions(int index) DRM restrictionscom.google.protobuf.ByteStringgetRestrictionsBytes(int index) DRM restrictionsintDRM restrictionscom.google.protobuf.ProtocolStringListDRM restrictionsbooleanDRM system usedbooleanDRM expiration datebooleanDRM protection levelprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpirationDate(com.google.protobuf.Timestamp value) DRM expiration datemergeFrom(DrmInformation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDrmPresent(boolean value) Whether DRM is presentsetDrmSystem(String value) DRM system usedsetDrmSystemBytes(com.google.protobuf.ByteString value) DRM system usedsetExpirationDate(com.google.protobuf.Timestamp value) DRM expiration datesetExpirationDate(com.google.protobuf.Timestamp.Builder builderForValue) DRM expiration datesetProtectionLevel(String value) DRM protection levelsetProtectionLevelBytes(com.google.protobuf.ByteString value) DRM protection levelsetRestrictions(int index, String value) DRM restrictionsMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DrmInformation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DrmInformation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getDrmPresentin interfaceDrmInformationOrBuilder- Returns:
- The drmPresent.
-
setDrmPresent
Whether DRM is present
bool drm_present = 1 [json_name = "drmPresent"];- Parameters:
value- The drmPresent to set.- Returns:
- This builder for chaining.
-
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:
hasDrmSystemin interfaceDrmInformationOrBuilder- Returns:
- Whether the drmSystem field is set.
-
getDrmSystem
DRM system used
optional string drm_system = 2 [json_name = "drmSystem"];- Specified by:
getDrmSystemin interfaceDrmInformationOrBuilder- Returns:
- The drmSystem.
-
getDrmSystemBytes
public com.google.protobuf.ByteString getDrmSystemBytes()DRM system used
optional string drm_system = 2 [json_name = "drmSystem"];- Specified by:
getDrmSystemBytesin interfaceDrmInformationOrBuilder- Returns:
- The bytes for drmSystem.
-
setDrmSystem
DRM system used
optional string drm_system = 2 [json_name = "drmSystem"];- Parameters:
value- The drmSystem to set.- Returns:
- This builder for chaining.
-
clearDrmSystem
DRM system used
optional string drm_system = 2 [json_name = "drmSystem"];- Returns:
- This builder for chaining.
-
setDrmSystemBytes
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:
hasProtectionLevelin interfaceDrmInformationOrBuilder- Returns:
- Whether the protectionLevel field is set.
-
getProtectionLevel
DRM protection level
optional string protection_level = 3 [json_name = "protectionLevel"];- Specified by:
getProtectionLevelin interfaceDrmInformationOrBuilder- Returns:
- The protectionLevel.
-
getProtectionLevelBytes
public com.google.protobuf.ByteString getProtectionLevelBytes()DRM protection level
optional string protection_level = 3 [json_name = "protectionLevel"];- Specified by:
getProtectionLevelBytesin interfaceDrmInformationOrBuilder- Returns:
- The bytes for protectionLevel.
-
setProtectionLevel
DRM protection level
optional string protection_level = 3 [json_name = "protectionLevel"];- Parameters:
value- The protectionLevel to set.- Returns:
- This builder for chaining.
-
clearProtectionLevel
DRM protection level
optional string protection_level = 3 [json_name = "protectionLevel"];- Returns:
- This builder for chaining.
-
setProtectionLevelBytes
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:
getRestrictionsListin interfaceDrmInformationOrBuilder- Returns:
- A list containing the restrictions.
-
getRestrictionsCount
public int getRestrictionsCount()DRM restrictions
repeated string restrictions = 4 [json_name = "restrictions"];- Specified by:
getRestrictionsCountin interfaceDrmInformationOrBuilder- Returns:
- The count of restrictions.
-
getRestrictions
DRM restrictions
repeated string restrictions = 4 [json_name = "restrictions"];- Specified by:
getRestrictionsin interfaceDrmInformationOrBuilder- 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:
getRestrictionsBytesin interfaceDrmInformationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the restrictions at the given index.
-
setRestrictions
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
DRM restrictions
repeated string restrictions = 4 [json_name = "restrictions"];- Parameters:
value- The restrictions to add.- Returns:
- This builder for chaining.
-
addAllRestrictions
DRM restrictions
repeated string restrictions = 4 [json_name = "restrictions"];- Parameters:
values- The restrictions to add.- Returns:
- This builder for chaining.
-
clearRestrictions
DRM restrictions
repeated string restrictions = 4 [json_name = "restrictions"];- Returns:
- This builder for chaining.
-
addRestrictionsBytes
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:
hasExpirationDatein interfaceDrmInformationOrBuilder- 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:
getExpirationDatein interfaceDrmInformationOrBuilder- Returns:
- The expirationDate.
-
setExpirationDate
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
DRM expiration date
optional .google.protobuf.Timestamp expiration_date = 5 [json_name = "expirationDate"]; -
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:
getExpirationDateOrBuilderin interfaceDrmInformationOrBuilder
-