Class DvrSession.Builder (0.66.0)

public static final class DvrSession.Builder extends GeneratedMessageV3.Builder<DvrSession.Builder> 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

Implements

DvrSessionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDvrManifests(Iterable<? extends DvrSession.DvrManifest> values)

public DvrSession.Builder addAllDvrManifests(Iterable<? extends DvrSession.DvrManifest> values)

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
values Iterable<? extends com.google.cloud.video.livestream.v1.DvrSession.DvrManifest>
Returns
Type Description
DvrSession.Builder

addAllDvrWindows(Iterable<? extends DvrSession.DvrWindow> values)

public DvrSession.Builder addAllDvrWindows(Iterable<? extends DvrSession.DvrWindow> values)

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
values Iterable<? extends com.google.cloud.video.livestream.v1.DvrSession.DvrWindow>
Returns
Type Description
DvrSession.Builder

addDvrManifests(DvrSession.DvrManifest value)

public DvrSession.Builder addDvrManifests(DvrSession.DvrManifest value)

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
value DvrSession.DvrManifest
Returns
Type Description
DvrSession.Builder

addDvrManifests(DvrSession.DvrManifest.Builder builderForValue)

public DvrSession.Builder addDvrManifests(DvrSession.DvrManifest.Builder builderForValue)

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
builderForValue DvrSession.DvrManifest.Builder
Returns
Type Description
DvrSession.Builder

addDvrManifests(int index, DvrSession.DvrManifest value)

public DvrSession.Builder addDvrManifests(int index, DvrSession.DvrManifest value)

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

Parameters
Name Description
index int
value DvrSession.DvrManifest
Returns
Type Description
DvrSession.Builder

addDvrManifests(int index, DvrSession.DvrManifest.Builder builderForValue)

public DvrSession.Builder addDvrManifests(int index, DvrSession.DvrManifest.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue DvrSession.DvrManifest.Builder
Returns
Type Description
DvrSession.Builder

addDvrManifestsBuilder()

public DvrSession.DvrManifest.Builder addDvrManifestsBuilder()

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
DvrSession.DvrManifest.Builder

addDvrManifestsBuilder(int index)

public DvrSession.DvrManifest.Builder addDvrManifestsBuilder(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
Returns
Type Description
DvrSession.DvrManifest.Builder

addDvrWindows(DvrSession.DvrWindow value)

public DvrSession.Builder addDvrWindows(DvrSession.DvrWindow value)

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
value DvrSession.DvrWindow
Returns
Type Description
DvrSession.Builder

addDvrWindows(DvrSession.DvrWindow.Builder builderForValue)

public DvrSession.Builder addDvrWindows(DvrSession.DvrWindow.Builder builderForValue)

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
builderForValue DvrSession.DvrWindow.Builder
Returns
Type Description
DvrSession.Builder

addDvrWindows(int index, DvrSession.DvrWindow value)

public DvrSession.Builder addDvrWindows(int index, DvrSession.DvrWindow value)

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

Parameters
Name Description
index int
value DvrSession.DvrWindow
Returns
Type Description
DvrSession.Builder

addDvrWindows(int index, DvrSession.DvrWindow.Builder builderForValue)

public DvrSession.Builder addDvrWindows(int index, DvrSession.DvrWindow.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue DvrSession.DvrWindow.Builder
Returns
Type Description
DvrSession.Builder

addDvrWindowsBuilder()

public DvrSession.DvrWindow.Builder addDvrWindowsBuilder()

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
DvrSession.DvrWindow.Builder

addDvrWindowsBuilder(int index)

public DvrSession.DvrWindow.Builder addDvrWindowsBuilder(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
Returns
Type Description
DvrSession.DvrWindow.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DvrSession.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DvrSession.Builder
Overrides

build()

public DvrSession build()
Returns
Type Description
DvrSession

buildPartial()

public DvrSession buildPartial()
Returns
Type Description
DvrSession

clear()

public DvrSession.Builder clear()
Returns
Type Description
DvrSession.Builder
Overrides

clearCreateTime()

public DvrSession.Builder clearCreateTime()

Output only. The creation time.

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

Returns
Type Description
DvrSession.Builder

clearDvrManifests()

public DvrSession.Builder clearDvrManifests()

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
DvrSession.Builder

clearDvrWindows()

public DvrSession.Builder clearDvrWindows()

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
DvrSession.Builder

clearError()

public DvrSession.Builder clearError()

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
DvrSession.Builder

clearField(Descriptors.FieldDescriptor field)

public DvrSession.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DvrSession.Builder
Overrides

clearLabels()

public DvrSession.Builder clearLabels()
Returns
Type Description
DvrSession.Builder

clearName()

public DvrSession.Builder clearName()

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. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
DvrSession.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DvrSession.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DvrSession.Builder
Overrides

clearState()

public DvrSession.Builder clearState()

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
DvrSession.Builder

This builder for chaining.

clearUpdateTime()

public DvrSession.Builder clearUpdateTime()

Output only. The update time.

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

Returns
Type Description
DvrSession.Builder

clone()

public DvrSession.Builder clone()
Returns
Type Description
DvrSession.Builder
Overrides

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
Returns
Type Description
boolean

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DvrSession getDefaultInstanceForType()
Returns
Type Description
DvrSession

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Returns
Type Description
DvrSession.DvrManifest

getDvrManifestsBuilder(int index)

public DvrSession.DvrManifest.Builder getDvrManifestsBuilder(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
Returns
Type Description
DvrSession.DvrManifest.Builder

getDvrManifestsBuilderList()

public List<DvrSession.DvrManifest.Builder> getDvrManifestsBuilderList()

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<Builder>

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

Returns
Type Description
List<DvrManifest>

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
Returns
Type Description
DvrSession.DvrManifestOrBuilder

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
Returns
Type Description
DvrSession.DvrWindow

getDvrWindowsBuilder(int index)

public DvrSession.DvrWindow.Builder getDvrWindowsBuilder(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
Returns
Type Description
DvrSession.DvrWindow.Builder

getDvrWindowsBuilderList()

public List<DvrSession.DvrWindow.Builder> getDvrWindowsBuilderList()

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<Builder>

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

Returns
Type Description
List<DvrWindow>

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
Returns
Type Description
DvrSession.DvrWindowOrBuilder

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()

public Status 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.

getErrorBuilder()

public Status.Builder getErrorBuilder()

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.Builder

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()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

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

Returns
Type Description
Map<String,String>

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

Parameters
Name Description
key String
defaultValue String
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

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public 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. 1 character minimum, 63 characters maximum
  2. 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. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

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

Returns
Type Description
DvrSession.State

The state.

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update time.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time.

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

Returns
Type Description
TimestampOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public DvrSession.Builder mergeCreateTime(Timestamp value)

Output only. The creation time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DvrSession.Builder

mergeError(Status value)

public DvrSession.Builder mergeError(Status value)

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

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DvrSession.Builder

mergeFrom(DvrSession other)

public DvrSession.Builder mergeFrom(DvrSession other)
Parameter
Name Description
other DvrSession
Returns
Type Description
DvrSession.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DvrSession.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DvrSession.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DvrSession.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DvrSession.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DvrSession.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DvrSession.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DvrSession.Builder mergeUpdateTime(Timestamp value)

Output only. The update time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DvrSession.Builder

putAllLabels(Map<String,String> values)

public DvrSession.Builder putAllLabels(Map<String,String> values)

Optional. User-defined key/value metadata.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
DvrSession.Builder

putLabels(String key, String value)

public DvrSession.Builder putLabels(String key, String value)

Optional. User-defined key/value metadata.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
DvrSession.Builder

removeDvrManifests(int index)

public DvrSession.Builder removeDvrManifests(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
Returns
Type Description
DvrSession.Builder

removeDvrWindows(int index)

public DvrSession.Builder removeDvrWindows(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
Returns
Type Description
DvrSession.Builder

removeLabels(String key)

public DvrSession.Builder removeLabels(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
DvrSession.Builder

setCreateTime(Timestamp value)

public DvrSession.Builder setCreateTime(Timestamp value)

Output only. The creation time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DvrSession.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DvrSession.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DvrSession.Builder

setDvrManifests(int index, DvrSession.DvrManifest value)

public DvrSession.Builder setDvrManifests(int index, DvrSession.DvrManifest value)

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

Parameters
Name Description
index int
value DvrSession.DvrManifest
Returns
Type Description
DvrSession.Builder

setDvrManifests(int index, DvrSession.DvrManifest.Builder builderForValue)

public DvrSession.Builder setDvrManifests(int index, DvrSession.DvrManifest.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue DvrSession.DvrManifest.Builder
Returns
Type Description
DvrSession.Builder

setDvrWindows(int index, DvrSession.DvrWindow value)

public DvrSession.Builder setDvrWindows(int index, DvrSession.DvrWindow value)

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

Parameters
Name Description
index int
value DvrSession.DvrWindow
Returns
Type Description
DvrSession.Builder

setDvrWindows(int index, DvrSession.DvrWindow.Builder builderForValue)

public DvrSession.Builder setDvrWindows(int index, DvrSession.DvrWindow.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue DvrSession.DvrWindow.Builder
Returns
Type Description
DvrSession.Builder

setError(Status value)

public DvrSession.Builder setError(Status value)

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

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DvrSession.Builder

setError(Status.Builder builderForValue)

public DvrSession.Builder setError(Status.Builder builderForValue)

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

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DvrSession.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DvrSession.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DvrSession.Builder
Overrides

setName(String value)

public DvrSession.Builder setName(String value)

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. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DvrSession.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DvrSession.Builder setNameBytes(ByteString value)

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. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DvrSession.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DvrSession.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DvrSession.Builder
Overrides

setState(DvrSession.State value)

public DvrSession.Builder setState(DvrSession.State value)

Output only. The state of the clip.

.google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DvrSession.State

The state to set.

Returns
Type Description
DvrSession.Builder

This builder for chaining.

setStateValue(int value)

public DvrSession.Builder setStateValue(int value)

Output only. The state of the clip.

.google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
DvrSession.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DvrSession.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DvrSession.Builder
Overrides

setUpdateTime(Timestamp value)

public DvrSession.Builder setUpdateTime(Timestamp value)

Output only. The update time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DvrSession.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DvrSession.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DvrSession.Builder