Interface AssetOrBuilder (0.34.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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

getImage()

public abstract Asset.ImageAsset getImage()

ImageAsset represents an image.

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

Returns
TypeDescription
Asset.ImageAsset

The image.

getImageOrBuilder()

public abstract Asset.ImageAssetOrBuilder getImageOrBuilder()

ImageAsset represents an image.

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

Returns
TypeDescription
Asset.ImageAssetOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getResourceCase()

public abstract Asset.ResourceCase getResourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getVideo()

public abstract Asset.VideoAsset getVideo()

VideoAsset represents a video.

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

Returns
TypeDescription
Asset.VideoAsset

The video.

getVideoOrBuilder()

public abstract Asset.VideoAssetOrBuilder getVideoOrBuilder()

VideoAsset represents a video.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the video field is set.