Class Asset
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 ClassesModifier and TypeClassDescriptionstatic final classAn asset represents a video or an image.static final classImage represents an image.static interfacestatic enumstatic enumState of the asset resource.static final classVideoAsset represents a video.static interfaceNested 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) User-defined key/value metadata.booleanBased64-encoded CRC32c checksum of the asset file.com.google.protobuf.ByteStringBased64-encoded CRC32c checksum of the asset file.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static Assetstatic final com.google.protobuf.Descriptors.DescriptorgetError()Output only.Output only.getImage()ImageAsset represents an image.ImageAsset represents an image.Deprecated.intUser-defined key/value metadata.User-defined key/value metadata.getLabelsOrDefault(String key, String defaultValue) User-defined key/value metadata.getLabelsOrThrow(String key) User-defined key/value metadata.getName()The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.com.google.protobuf.ByteStringThe resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.com.google.protobuf.Parser<Asset>intgetState()Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getVideo()VideoAsset represents a video.VideoAsset represents a video.booleanOutput only.booleanhasError()Output only.inthashCode()booleanhasImage()ImageAsset represents an image.booleanOutput only.booleanhasVideo()VideoAsset represents a video.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Asset.Builderstatic Asset.BuildernewBuilder(Asset prototype) protected Asset.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AssetparseDelimitedFrom(InputStream input) static AssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(byte[] data) static AssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.ByteString data) static AssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.CodedInputStream input) static AssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(InputStream input) static AssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(ByteBuffer data) static AssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Asset>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
VIDEO_FIELD_NUMBER
public static final int VIDEO_FIELD_NUMBER- See Also:
-
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER- See Also:
-
CRC32C_FIELD_NUMBER
public static final int CRC32C_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getResourceCase
- Specified by:
getResourceCasein interfaceAssetOrBuilder
-
getName
The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.string name = 1;- Specified by:
getNamein interfaceAssetOrBuilder- 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:
getNameBytesin interfaceAssetOrBuilder- 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:
hasCreateTimein interfaceAssetOrBuilder- 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:
getCreateTimein interfaceAssetOrBuilder- 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:
getCreateTimeOrBuilderin interfaceAssetOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceAssetOrBuilder- 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:
getUpdateTimein interfaceAssetOrBuilder- 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:
getUpdateTimeOrBuilderin interfaceAssetOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AssetOrBuilderUser-defined key/value metadata.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceAssetOrBuilder
-
containsLabels
User-defined key/value metadata.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceAssetOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAssetOrBuilder
-
getLabelsMap
User-defined key/value metadata.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceAssetOrBuilder
-
getLabelsOrDefault
User-defined key/value metadata.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceAssetOrBuilder
-
getLabelsOrThrow
User-defined key/value metadata.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceAssetOrBuilder
-
hasVideo
public boolean hasVideo()VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;- Specified by:
hasVideoin interfaceAssetOrBuilder- Returns:
- Whether the video field is set.
-
getVideo
VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;- Specified by:
getVideoin interfaceAssetOrBuilder- Returns:
- The video.
-
getVideoOrBuilder
VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;- Specified by:
getVideoOrBuilderin interfaceAssetOrBuilder
-
hasImage
public boolean hasImage()ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;- Specified by:
hasImagein interfaceAssetOrBuilder- Returns:
- Whether the image field is set.
-
getImage
ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;- Specified by:
getImagein interfaceAssetOrBuilder- Returns:
- The image.
-
getImageOrBuilder
ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;- Specified by:
getImageOrBuilderin interfaceAssetOrBuilder
-
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:
getCrc32Cin interfaceAssetOrBuilder- 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:
getCrc32CBytesin interfaceAssetOrBuilder- 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:
getStateValuein interfaceAssetOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getStatein interfaceAssetOrBuilder- 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:
hasErrorin interfaceAssetOrBuilder- Returns:
- Whether the error field is set.
-
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:
getErrorin interfaceAssetOrBuilder- Returns:
- The error.
-
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:
getErrorOrBuilderin interfaceAssetOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-