Interface AssetOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Asset,Asset.Builder
@Generated
public interface AssetOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) User-defined key/value metadata.Based64-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.getError()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}`.getState()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.booleanhasImage()ImageAsset represents an image.booleanOutput only.booleanhasVideo()VideoAsset represents a video.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.string name = 1;- Returns:
- The bytes for name.
-
hasCreateTime
boolean hasCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLabelsCount
int getLabelsCount()User-defined key/value metadata.
map<string, string> labels = 4; -
containsLabels
User-defined key/value metadata.
map<string, string> labels = 4; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
User-defined key/value metadata.
map<string, string> labels = 4; -
getLabelsOrDefault
User-defined key/value metadata.
map<string, string> labels = 4; -
getLabelsOrThrow
User-defined key/value metadata.
map<string, string> labels = 4; -
hasVideo
boolean hasVideo()VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;- Returns:
- Whether the video field is set.
-
getVideo
Asset.VideoAsset getVideo()VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;- Returns:
- The video.
-
getVideoOrBuilder
Asset.VideoAssetOrBuilder getVideoOrBuilder()VideoAsset represents a video.
.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5; -
hasImage
boolean hasImage()ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;- Returns:
- Whether the image field is set.
-
getImage
Asset.ImageAsset getImage()ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;- Returns:
- The image.
-
getImageOrBuilder
Asset.ImageAssetOrBuilder getImageOrBuilder()ImageAsset represents an image.
.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6; -
getCrc32C
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;- Returns:
- The crc32c.
-
getCrc32CBytes
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;- Returns:
- The bytes for crc32c.
-
getStateValue
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];- Returns:
- The enum numeric value on the wire for state.
-
getState
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];- Returns:
- The state.
-
hasError
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];- Returns:
- Whether the error field is set.
-
getError
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];- Returns:
- The error.
-
getErrorOrBuilder
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]; -
getResourceCase
Asset.ResourceCase getResourceCase()
-