Package com.google.cloud.visionai.v1
Class Stream.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
com.google.cloud.visionai.v1.Stream.Builder
- All Implemented Interfaces:
StreamOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Stream
public static final class Stream.Builder
extends com.google.protobuf.GeneratedMessage.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.cloud.visionai.v1.Stream-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.The display name for the stream resource.Whether to enable the HLS playback service on this stream.The name of the media warehouse asset for long term storage of stream data.Name of the resource.Output only.booleanAnnotations to allow clients to store small amounts of arbitrary data.booleancontainsLabels(String key) Labels as key value pairs.Deprecated.intAnnotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.getAnnotationsOrDefault(String key, String defaultValue) Annotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name for the stream resource.com.google.protobuf.ByteStringThe display name for the stream resource.booleanWhether to enable the HLS playback service on this stream.Deprecated.intLabels as key value pairs.Labels as key value pairs.getLabelsOrDefault(String key, String defaultValue) Labels as key value pairs.getLabelsOrThrow(String key) Labels as key value pairs.The name of the media warehouse asset for long term storage of stream data.com.google.protobuf.ByteStringThe name of the media warehouse asset for long term storage of stream data.Deprecated.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Annotations to allow clients to store small amounts of arbitrary data.putAllLabels(Map<String, String> values) Labels as key value pairs.putAnnotations(String key, String value) Annotations to allow clients to store small amounts of arbitrary data.Labels as key value pairs.removeAnnotations(String key) Annotations to allow clients to store small amounts of arbitrary data.removeLabels(String key) Labels as key value pairs.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) The display name for the stream resource.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name for the stream resource.setEnableHlsPlayback(boolean value) Whether to enable the HLS playback service on this stream.setMediaWarehouseAsset(String value) The name of the media warehouse asset for long term storage of stream data.setMediaWarehouseAssetBytes(com.google.protobuf.ByteString value) The name of the media warehouse asset for long term storage of stream data.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Stream.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Stream.Builder>
-
mergeFrom
public Stream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Stream.Builder>- Throws:
IOException
-
getName
Name of the resource.
string name = 1;- Specified by:
getNamein interfaceStreamOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource.
string name = 1;- Specified by:
getNameBytesin interfaceStreamOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceStreamOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceStreamOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceStreamOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceStreamOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceStreamOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceStreamOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:StreamOrBuilderLabels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceStreamOrBuilder
-
containsLabels
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceStreamOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceStreamOrBuilder
-
getLabelsMap
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceStreamOrBuilder
-
getLabelsOrDefault
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceStreamOrBuilder
-
getLabelsOrThrow
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceStreamOrBuilder
-
clearLabels
-
removeLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels as key value pairs.
map<string, string> labels = 4; -
putAllLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:StreamOrBuilderAnnotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsCountin interfaceStreamOrBuilder
-
containsAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
containsAnnotationsin interfaceStreamOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceStreamOrBuilder
-
getAnnotationsMap
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsMapin interfaceStreamOrBuilder
-
getAnnotationsOrDefault
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrDefaultin interfaceStreamOrBuilder
-
getAnnotationsOrThrow
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrThrowin interfaceStreamOrBuilder
-
clearAnnotations
-
removeAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
putAllAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getDisplayName
The display name for the stream resource.
string display_name = 6;- Specified by:
getDisplayNamein interfaceStreamOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name for the stream resource.
string display_name = 6;- Specified by:
getDisplayNameBytesin interfaceStreamOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The display name for the stream resource.
string display_name = 6;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The display name for the stream resource.
string display_name = 6;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
The display name for the stream resource.
string display_name = 6;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getEnableHlsPlayback
public boolean getEnableHlsPlayback()Whether to enable the HLS playback service on this stream.
bool enable_hls_playback = 7;- Specified by:
getEnableHlsPlaybackin interfaceStreamOrBuilder- Returns:
- The enableHlsPlayback.
-
setEnableHlsPlayback
Whether to enable the HLS playback service on this stream.
bool enable_hls_playback = 7;- Parameters:
value- The enableHlsPlayback to set.- Returns:
- This builder for chaining.
-
clearEnableHlsPlayback
Whether to enable the HLS playback service on this stream.
bool enable_hls_playback = 7;- Returns:
- This builder for chaining.
-
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;- Specified by:
getMediaWarehouseAssetin interfaceStreamOrBuilder- Returns:
- The mediaWarehouseAsset.
-
getMediaWarehouseAssetBytes
public com.google.protobuf.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;- Specified by:
getMediaWarehouseAssetBytesin interfaceStreamOrBuilder- Returns:
- The bytes for mediaWarehouseAsset.
-
setMediaWarehouseAsset
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;- Parameters:
value- The mediaWarehouseAsset to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setMediaWarehouseAssetBytes
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;- Parameters:
value- The bytes for mediaWarehouseAsset to set.- Returns:
- This builder for chaining.
-