java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.video.livestream.v1.Asset
All Implemented Interfaces:
AssetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Asset extends com.google.protobuf.GeneratedMessage implements AssetOrBuilder
 An asset represents a video or an image.
 
Protobuf type google.cloud.video.livestream.v1.Asset
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An asset represents a video or an image.
    static final class 
    Image represents an image.
    static interface 
     
    static enum 
     
    static enum 
    State of the asset resource.
    static final class 
    VideoAsset represents a video.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    User-defined key/value metadata.
    boolean
     
    Based64-encoded CRC32c checksum of the asset file.
    com.google.protobuf.ByteString
    Based64-encoded CRC32c checksum of the asset file.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    static Asset
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Output only.
    Output only.
    ImageAsset represents an image.
    ImageAsset represents an image.
    Deprecated.
    int
    User-defined key/value metadata.
    User-defined key/value metadata.
    getLabelsOrDefault(String key, String defaultValue)
    User-defined key/value metadata.
    User-defined key/value metadata.
    The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.
    com.google.protobuf.ByteString
    The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.
    com.google.protobuf.Parser<Asset>
     
     
    int
     
    Output only.
    int
    Output only.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    VideoAsset represents a video.
    VideoAsset represents a video.
    boolean
    Output only.
    boolean
    Output only.
    int
     
    boolean
    ImageAsset represents an image.
    boolean
    Output only.
    boolean
    VideoAsset represents a video.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(Asset prototype)
     
     
    protected Asset.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Asset
     
    static Asset
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
    parseFrom(byte[] data)
     
    static Asset
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
    parseFrom(com.google.protobuf.ByteString data)
     
    static Asset
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Asset
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
     
    static Asset
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Asset
     
    static Asset
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Asset>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getResourceCase

      public Asset.ResourceCase getResourceCase()
      Specified by:
      getResourceCase in interface AssetOrBuilder
    • getName

      public String getName()
       The resource name of the asset, in the form of:
       `projects/{project}/locations/{location}/assets/{assetId}`.
       
      string name = 1;
      Specified by:
      getName in interface AssetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the asset, in the form of:
       `projects/{project}/locations/{location}/assets/{assetId}`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface AssetOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AssetOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AssetOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AssetOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AssetOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AssetOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AssetOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AssetOrBuilder
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface AssetOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface AssetOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AssetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface AssetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface AssetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface AssetOrBuilder
    • hasVideo

      public boolean hasVideo()
       VideoAsset represents a video.
       
      .google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;
      Specified by:
      hasVideo in interface AssetOrBuilder
      Returns:
      Whether the video field is set.
    • getVideo

      public Asset.VideoAsset getVideo()
       VideoAsset represents a video.
       
      .google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;
      Specified by:
      getVideo in interface AssetOrBuilder
      Returns:
      The video.
    • getVideoOrBuilder

      public Asset.VideoAssetOrBuilder getVideoOrBuilder()
       VideoAsset represents a video.
       
      .google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;
      Specified by:
      getVideoOrBuilder in interface AssetOrBuilder
    • hasImage

      public boolean hasImage()
       ImageAsset represents an image.
       
      .google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;
      Specified by:
      hasImage in interface AssetOrBuilder
      Returns:
      Whether the image field is set.
    • getImage

      public Asset.ImageAsset getImage()
       ImageAsset represents an image.
       
      .google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;
      Specified by:
      getImage in interface AssetOrBuilder
      Returns:
      The image.
    • getImageOrBuilder

      public Asset.ImageAssetOrBuilder getImageOrBuilder()
       ImageAsset represents an image.
       
      .google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;
      Specified by:
      getImageOrBuilder in interface AssetOrBuilder
    • getCrc32C

      public String getCrc32C()
       Based64-encoded CRC32c checksum of the asset file. For more information,
       see the crc32c checksum of the [Cloud Storage Objects
       resource](https://cloud.google.com/storage/docs/json_api/v1/objects).
       If crc32c is omitted or left empty when the asset is created, this field is
       filled by the crc32c checksum of the Cloud Storage object indicated by
       [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or
       [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If
       crc32c is set, the asset can't be created if the crc32c value does not
       match with the crc32c checksum of the Cloud Storage object indicated by
       [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or
       [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri].
       
      string crc32c = 7;
      Specified by:
      getCrc32C in interface AssetOrBuilder
      Returns:
      The crc32c.
    • getCrc32CBytes

      public com.google.protobuf.ByteString getCrc32CBytes()
       Based64-encoded CRC32c checksum of the asset file. For more information,
       see the crc32c checksum of the [Cloud Storage Objects
       resource](https://cloud.google.com/storage/docs/json_api/v1/objects).
       If crc32c is omitted or left empty when the asset is created, this field is
       filled by the crc32c checksum of the Cloud Storage object indicated by
       [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or
       [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If
       crc32c is set, the asset can't be created if the crc32c value does not
       match with the crc32c checksum of the Cloud Storage object indicated by
       [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or
       [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri].
       
      string crc32c = 7;
      Specified by:
      getCrc32CBytes in interface AssetOrBuilder
      Returns:
      The bytes for crc32c.
    • getStateValue

      public int getStateValue()
       Output only. The state of the asset resource.
       
      .google.cloud.video.livestream.v1.Asset.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface AssetOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public Asset.State getState()
       Output only. The state of the asset resource.
       
      .google.cloud.video.livestream.v1.Asset.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface AssetOrBuilder
      Returns:
      The state.
    • hasError

      public boolean hasError()
       Output only. Only present when `state` is `ERROR`. The reason for the error
       state of the asset.
       
      .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface AssetOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. Only present when `state` is `ERROR`. The reason for the error
       state of the asset.
       
      .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface AssetOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. Only present when `state` is `ERROR`. The reason for the error
       state of the asset.
       
      .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface AssetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Asset parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Asset parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Asset.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Asset.Builder newBuilder()
    • newBuilder

      public static Asset.Builder newBuilder(Asset prototype)
    • toBuilder

      public Asset.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Asset.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Asset getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Asset> parser()
    • getParserForType

      public com.google.protobuf.Parser<Asset> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Asset getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder