Interface AssetOrBuilder (0.49.0)

public interface AssetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCrc32C()

public abstract String getCrc32C()

Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the Cloud Storage Objects resource. 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 or 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 or ImageAsset.uri.

string crc32c = 7;

Returns
Type Description
String

The crc32c.

getCrc32CBytes()

public abstract ByteString getCrc32CBytes()

Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the Cloud Storage Objects resource. 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 or 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 or ImageAsset.uri.

string crc32c = 7;

Returns
Type Description
ByteString

The bytes for crc32c.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getError()

public abstract 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
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public abstract 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];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getImage()

public abstract Asset.ImageAsset getImage()

ImageAsset represents an image.

.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;

Returns
Type Description
Asset.ImageAsset

The image.

getImageOrBuilder()

public abstract Asset.ImageAssetOrBuilder getImageOrBuilder()

ImageAsset represents an image.

.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;

Returns
Type Description
Asset.ImageAssetOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public abstract String getName()

The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResourceCase()

public abstract Asset.ResourceCase getResourceCase()
Returns
Type Description
Asset.ResourceCase

getState()

public abstract 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
Type Description
Asset.State

The state.

getStateValue()

public abstract 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
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVideo()

public abstract Asset.VideoAsset getVideo()

VideoAsset represents a video.

.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;

Returns
Type Description
Asset.VideoAsset

The video.

getVideoOrBuilder()

public abstract Asset.VideoAssetOrBuilder getVideoOrBuilder()

VideoAsset represents a video.

.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;

Returns
Type Description
Asset.VideoAssetOrBuilder

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasError()

public abstract 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
Type Description
boolean

Whether the error field is set.

hasImage()

public abstract boolean hasImage()

ImageAsset represents an image.

.google.cloud.video.livestream.v1.Asset.ImageAsset image = 6;

Returns
Type Description
boolean

Whether the image field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasVideo()

public abstract boolean hasVideo()

VideoAsset represents a video.

.google.cloud.video.livestream.v1.Asset.VideoAsset video = 5;

Returns
Type Description
boolean

Whether the video field is set.