Class CreateDvrSessionRequest.Builder (0.66.0)

public static final class CreateDvrSessionRequest.Builder extends GeneratedMessageV3.Builder<CreateDvrSessionRequest.Builder> implements CreateDvrSessionRequestOrBuilder

Request message for "LivestreamService.CreateDvrSession".

Protobuf type google.cloud.video.livestream.v1.CreateDvrSessionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDvrSessionRequest build()
Returns
Type Description
CreateDvrSessionRequest

buildPartial()

public CreateDvrSessionRequest buildPartial()
Returns
Type Description
CreateDvrSessionRequest

clear()

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

clearDvrSession()

public CreateDvrSessionRequest.Builder clearDvrSession()

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDvrSessionRequest.Builder

clearDvrSessionId()

public CreateDvrSessionRequest.Builder clearDvrSessionId()

Required. Id of the requesting object in the following form:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string dvr_session_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDvrSessionRequest.Builder clearParent()

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/channels/{channelId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

clearRequestId()

public CreateDvrSessionRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDvrSessionRequest getDefaultInstanceForType()
Returns
Type Description
CreateDvrSessionRequest

getDescriptorForType()

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

getDvrSession()

public DvrSession getDvrSession()

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DvrSession

The dvrSession.

getDvrSessionBuilder()

public DvrSession.Builder getDvrSessionBuilder()

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DvrSession.Builder

getDvrSessionId()

public String getDvrSessionId()

Required. Id of the requesting object in the following form:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string dvr_session_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dvrSessionId.

getDvrSessionIdBytes()

public ByteString getDvrSessionIdBytes()

Required. Id of the requesting object in the following form:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string dvr_session_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dvrSessionId.

getDvrSessionOrBuilder()

public DvrSessionOrBuilder getDvrSessionOrBuilder()

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DvrSessionOrBuilder

getParent()

public String getParent()

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/channels/{channelId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/channels/{channelId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasDvrSession()

public boolean hasDvrSession()

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dvrSession field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDvrSession(DvrSession value)

public CreateDvrSessionRequest.Builder mergeDvrSession(DvrSession value)

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DvrSession
Returns
Type Description
CreateDvrSessionRequest.Builder

mergeFrom(CreateDvrSessionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDvrSession(DvrSession value)

public CreateDvrSessionRequest.Builder setDvrSession(DvrSession value)

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DvrSession
Returns
Type Description
CreateDvrSessionRequest.Builder

setDvrSession(DvrSession.Builder builderForValue)

public CreateDvrSessionRequest.Builder setDvrSession(DvrSession.Builder builderForValue)

Required. The resource being created

.google.cloud.video.livestream.v1.DvrSession dvr_session = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DvrSession.Builder
Returns
Type Description
CreateDvrSessionRequest.Builder

setDvrSessionId(String value)

public CreateDvrSessionRequest.Builder setDvrSessionId(String value)

Required. Id of the requesting object in the following form:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string dvr_session_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dvrSessionId to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

setDvrSessionIdBytes(ByteString value)

public CreateDvrSessionRequest.Builder setDvrSessionIdBytes(ByteString value)

Required. Id of the requesting object in the following form:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens

string dvr_session_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dvrSessionId to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDvrSessionRequest.Builder setParent(String value)

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/channels/{channelId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDvrSessionRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/channels/{channelId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateDvrSessionRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateDvrSessionRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateDvrSessionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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