Class Stream.Builder (0.14.1)

public static final class Stream.Builder extends GeneratedMessageV3.Builder<Stream.Builder> implements StreamOrBuilder

Message describing the Stream object. The Stream and the Event resources are many to many; i.e., each Stream resource can associate to many Event resources and each Event resource can associate to many Stream resources.

Protobuf type google.events.cloud.visionai.v1.Stream

Implements

StreamOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Stream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Stream.Builder
Overrides

build()

public Stream build()
Returns
TypeDescription
Stream

buildPartial()

public Stream buildPartial()
Returns
TypeDescription
Stream

clear()

public Stream.Builder clear()
Returns
TypeDescription
Stream.Builder
Overrides

clearAnnotations()

public Stream.Builder clearAnnotations()
Returns
TypeDescription
Stream.Builder

clearCreateTime()

public Stream.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Stream.Builder

clearDisplayName()

public Stream.Builder clearDisplayName()

The display name for the stream resource.

string display_name = 6;

Returns
TypeDescription
Stream.Builder

This builder for chaining.

clearEnableHlsPlayback()

public Stream.Builder clearEnableHlsPlayback()

Whether to enable the HLS playback service on this stream.

bool enable_hls_playback = 7;

Returns
TypeDescription
Stream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Stream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Stream.Builder
Overrides

clearLabels()

public Stream.Builder clearLabels()
Returns
TypeDescription
Stream.Builder

clearMediaWarehouseAsset()

public Stream.Builder clearMediaWarehouseAsset()

The name of the media warehouse asset for long term storage of stream data. Format: projects/${p_id}/locations/${l_id}/corpora/${c_id}/assets/${a_id} Remain empty if the media warehouse storage is not needed for the stream.

string media_warehouse_asset = 8;

Returns
TypeDescription
Stream.Builder

This builder for chaining.

clearName()

public Stream.Builder clearName()

Name of the resource.

string name = 1;

Returns
TypeDescription
Stream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Stream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Stream.Builder
Overrides

clearUpdateTime()

public Stream.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Stream.Builder

clone()

public Stream.Builder clone()
Returns
TypeDescription
Stream.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Stream getDefaultInstanceForType()
Returns
TypeDescription
Stream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name for the stream resource.

string display_name = 6;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name for the stream resource.

string display_name = 6;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEnableHlsPlayback()

public boolean getEnableHlsPlayback()

Whether to enable the HLS playback service on this stream.

bool enable_hls_playback = 7;

Returns
TypeDescription
boolean

The enableHlsPlayback.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMediaWarehouseAsset()

public String getMediaWarehouseAsset()

The name of the media warehouse asset for long term storage of stream data. Format: projects/${p_id}/locations/${l_id}/corpora/${c_id}/assets/${a_id} Remain empty if the media warehouse storage is not needed for the stream.

string media_warehouse_asset = 8;

Returns
TypeDescription
String

The mediaWarehouseAsset.

getMediaWarehouseAssetBytes()

public ByteString getMediaWarehouseAssetBytes()

The name of the media warehouse asset for long term storage of stream data. Format: projects/${p_id}/locations/${l_id}/corpora/${c_id}/assets/${a_id} Remain empty if the media warehouse storage is not needed for the stream.

string media_warehouse_asset = 8;

Returns
TypeDescription
ByteString

The bytes for mediaWarehouseAsset.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Name of the resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Stream.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Stream.Builder

mergeFrom(Stream other)

public Stream.Builder mergeFrom(Stream other)
Parameter
NameDescription
otherStream
Returns
TypeDescription
Stream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Stream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Stream.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Stream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Stream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Stream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Stream.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Stream.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Stream.Builder

putAllAnnotations(Map<String,String> values)

public Stream.Builder putAllAnnotations(Map<String,String> values)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Stream.Builder

putAllLabels(Map<String,String> values)

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

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Stream.Builder

putAnnotations(String key, String value)

public Stream.Builder putAnnotations(String key, String value)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Stream.Builder

putLabels(String key, String value)

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

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Stream.Builder

removeAnnotations(String key)

public Stream.Builder removeAnnotations(String key)

Annotations to allow clients to store small amounts of arbitrary data.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
Stream.Builder

removeLabels(String key)

public Stream.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Stream.Builder

setCreateTime(Timestamp value)

public Stream.Builder setCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Stream.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Stream.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Stream.Builder

setDisplayName(String value)

public Stream.Builder setDisplayName(String value)

The display name for the stream resource.

string display_name = 6;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Stream.Builder setDisplayNameBytes(ByteString value)

The display name for the stream resource.

string display_name = 6;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setEnableHlsPlayback(boolean value)

public Stream.Builder setEnableHlsPlayback(boolean value)

Whether to enable the HLS playback service on this stream.

bool enable_hls_playback = 7;

Parameter
NameDescription
valueboolean

The enableHlsPlayback to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Stream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Stream.Builder
Overrides

setMediaWarehouseAsset(String value)

public Stream.Builder setMediaWarehouseAsset(String value)

The name of the media warehouse asset for long term storage of stream data. Format: projects/${p_id}/locations/${l_id}/corpora/${c_id}/assets/${a_id} Remain empty if the media warehouse storage is not needed for the stream.

string media_warehouse_asset = 8;

Parameter
NameDescription
valueString

The mediaWarehouseAsset to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setMediaWarehouseAssetBytes(ByteString value)

public Stream.Builder setMediaWarehouseAssetBytes(ByteString value)

The name of the media warehouse asset for long term storage of stream data. Format: projects/${p_id}/locations/${l_id}/corpora/${c_id}/assets/${a_id} Remain empty if the media warehouse storage is not needed for the stream.

string media_warehouse_asset = 8;

Parameter
NameDescription
valueByteString

The bytes for mediaWarehouseAsset to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setName(String value)

public Stream.Builder setName(String value)

Name of the resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Stream.Builder setNameBytes(ByteString value)

Name of the resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Stream.Builder

This builder for chaining.

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

public Stream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Stream.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Stream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Stream.Builder
Overrides

setUpdateTime(Timestamp value)

public Stream.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Stream.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Stream.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Stream.Builder