public final class DvrSession extends GeneratedMessageV3 implements DvrSessionOrBuilder
DvrSession is a sub-resource under channel. Each DvrSession represents a DVR
recording of the live stream for a specific time range.
Protobuf type google.cloud.video.livestream.v1.DvrSession
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DVR_MANIFESTS_FIELD_NUMBER
public static final int DVR_MANIFESTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DVR_WINDOWS_FIELD_NUMBER
public static final int DVR_WINDOWS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DvrSession getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DvrSession.Builder newBuilder()
newBuilder(DvrSession prototype)
public static DvrSession.Builder newBuilder(DvrSession prototype)
public static DvrSession parseDelimitedFrom(InputStream input)
public static DvrSession parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DvrSession parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DvrSession parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DvrSession parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DvrSession parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DvrSession parseFrom(CodedInputStream input)
public static DvrSession parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DvrSession parseFrom(InputStream input)
public static DvrSession parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DvrSession parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DvrSession parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DvrSession> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. User-defined key/value metadata.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
public 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 TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public DvrSession getDefaultInstanceForType()
getDvrManifests(int index)
public DvrSession.DvrManifest getDvrManifests(int index)
Required. A list of DVR manifests. Currently only one DVR manifest is
allowed.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getDvrManifestsCount()
public int getDvrManifestsCount()
Required. A list of DVR manifests. Currently only one DVR manifest is
allowed.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
getDvrManifestsList()
public List<DvrSession.DvrManifest> getDvrManifestsList()
Required. A list of DVR manifests. Currently only one DVR manifest is
allowed.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
getDvrManifestsOrBuilder(int index)
public DvrSession.DvrManifestOrBuilder getDvrManifestsOrBuilder(int index)
Required. A list of DVR manifests. Currently only one DVR manifest is
allowed.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getDvrManifestsOrBuilderList()
public List<? extends DvrSession.DvrManifestOrBuilder> getDvrManifestsOrBuilderList()
Required. A list of DVR manifests. Currently only one DVR manifest is
allowed.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.video.livestream.v1.DvrSession.DvrManifestOrBuilder> |
|
getDvrWindows(int index)
public DvrSession.DvrWindow getDvrWindows(int index)
Required. The specified ranges of segments to generate a DVR recording.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getDvrWindowsCount()
public int getDvrWindowsCount()
Required. The specified ranges of segments to generate a DVR recording.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
getDvrWindowsList()
public List<DvrSession.DvrWindow> getDvrWindowsList()
Required. The specified ranges of segments to generate a DVR recording.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
getDvrWindowsOrBuilder(int index)
public DvrSession.DvrWindowOrBuilder getDvrWindowsOrBuilder(int index)
Required. The specified ranges of segments to generate a DVR recording.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getDvrWindowsOrBuilderList()
public List<? extends DvrSession.DvrWindowOrBuilder> getDvrWindowsOrBuilderList()
Required. The specified ranges of segments to generate a DVR recording.
repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.video.livestream.v1.DvrSession.DvrWindowOrBuilder> |
|
getError()
Output only. An error object that describes the reason for the failure.
This property only presents when state
is FAILED
.
.google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
com.google.rpc.Status |
The error.
|
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()
Output only. An error object that describes the reason for the failure.
This property only presents when state
is FAILED
.
.google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
com.google.rpc.StatusOrBuilder |
|
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. User-defined key/value metadata.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. User-defined key/value metadata.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. User-defined key/value metadata.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. User-defined key/value metadata.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getName()
Identifier. The resource name of the DVR session, in the following format:
projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}
.
{dvrSessionId}
is a user-specified resource id that conforms to the
following criteria:
- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the DVR session, in the following format:
projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}
.
{dvrSessionId}
is a user-specified resource id that conforms to the
following criteria:
- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<DvrSession> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getState()
public DvrSession.State getState()
Output only. The state of the clip.
.google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
public int getStateValue()
Output only. The state of the clip.
.google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for state.
|
getUpdateTime()
public 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 TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime()
public 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 boolean hasError()
Output only. An error object that describes the reason for the failure.
This property only presents when state
is FAILED
.
.google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the error field is set.
|
hasUpdateTime()
public 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DvrSession.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DvrSession.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DvrSession.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides